source: trunk/athena/bin/discuss/server/Makefile.in @ 25758

Revision 25758, 2.7 KB checked in by jdreed, 12 years ago (diff)
In discuss: * Package discuss server utilities (Trac: #881)
Line 
1#
2# $Id: Makefile.in,v 1.3 2007-08-09 20:41:33 amb Exp $
3#
4
5SHELL=/bin/sh
6VPATH=@srcdir@
7INSTALL=@INSTALL@
8INSTALL_PROGRAM=@INSTALL_PROGRAM@
9MKDIR_P=@MKDIR_P@
10srcdir=@srcdir@
11top_srcdir=@top_srcdir@
12prefix=@prefix@
13exec_prefix=@exec_prefix@
14bindir=@bindir@
15sbindir=@sbindir@
16libexecdir=@libexecdir@
17
18CC=@CC@
19DEFS=@DEFS@
20CPPFLAGS=@CPPFLAGS@
21CFLAGS=@CFLAGS@
22LDFLAGS=@LDFLAGS@
23LIBS=../libds/libdsk.a ../usp/libusp.a @ZEPHYR_LIBS@ @KRB4_LIBS@ @KRB5_LIBS@ @LIBS@
24ALL_CFLAGS=-I../include ${CPPFLAGS} ${CFLAGS} ${DEFS}
25
26DISCUSS_UID=discuss
27OBJS=   disserve.o atom.o dispatch.o acl.o acl_core.o \
28        ../libds/tfile.o ../libds/tnet.o \
29        ../ets/dsc_et.o ../ets/rpc_et.o
30DISCUSSD_OBJS=$(OBJS) rpproc.k.o core.o coreutil.o
31DISSERVE_OBJS=$(OBJS) rpproc.nk.o core.o coreutil.o
32
33.c.o:
34        ${CC} -c ${ALL_CFLAGS} $<
35
36all: debug recover expunge discussd disserve
37
38clean:
39        rm -f *.o *~ \#* disserve recover expunge discussd disdebug
40
41distclean: clean
42        rm -f Makefile
43
44depend:
45
46install:
47        ${MKDIR_P} ${DESTDIR}${sbindir}
48        ${MKDIR_P} ${DESTDIR}${libexecdir}
49        ${INSTALL_PROGRAM} discussd ${DESTDIR}${sbindir}
50        ${INSTALL_PROGRAM} disserve ${DESTDIR}${sbindir}
51        ${INSTALL_PROGRAM} recover ${DESTDIR}${libexecdir}
52        ${INSTALL_PROGRAM} expunge ${DESTDIR}${libexecdir}
53        ${INSTALL_PROGRAM} disdebug ${DESTDIR}${libexecdir}
54
55discussd: $(DISCUSSD_OBJS)
56        ${CC} ${LDFLAGS} -o $@ $(DISCUSSD_OBJS) ${LIBS}
57
58disserve: $(DISSERVE_OBJS)
59        ${CC} ${LDFLAGS} -o $@ $(DISSERVE_OBJS) ${LIBS}
60
61servetest: ../client/discuss.o ../client/cmds.o ../client/libss.a \
62                ../client/discuss_utils.o core.o coreutil.o atom.o acl.o \
63                ../libds/tfile.o glue.o
64        ${CC} ${LDFLAGS} -o servetest ../client/discuss.o ../client/cmds.o \
65                ../client/libss.a ../client/discuss_utils.o core.o coreutil.o \
66                atom.o acl.o ../libds/tfile.o glue.o $(LDLIBS)
67
68recover: recover.o core.o coreutil.o atom.o acl.o ../libds/tunix.o \
69                ../libds/tfile.o glue.o ../ets/dsc_et.o $(COMERR)
70        ${CC} ${LDFLAGS} -o recover recover.o core.o coreutil.o atom.o acl.o \
71                glue.o $(LIBS) $(LDLIBS)
72
73expunge: expunge.o core.o coreutil.o atom.o acl.o acl_core.o \
74                ../libds/tunix.o ../libds/tfile.o glue.o ../ets/dsc_et.o \
75                $(COMERR)
76        ${CC} ${LDFLAGS} -o expunge expunge.o core.o coreutil.o atom.o acl.o \
77                acl_core.o glue.o $(LIBS) $(LDLIBS)
78
79debug:  disdebug
80
81disdebug: $(OBJS) rpproc.debug.o core.o coreutil.o
82        ${CC} ${LDFLAGS} -o disdebug $(OBJS) core.o coreutil.o rpproc.debug.o \
83                $(LIBS) $(LDLIBS)
84
85rpproc.k.o: rpproc.c
86        ${CC} ${ALL_CFLAGS} -DINETD -c rpproc.c
87        mv rpproc.o rpproc.k.o
88
89rpproc.nk.o: rpproc.c
90        ${CC} ${ALL_CFLAGS} -DSUBPROC -DNOKERBEROS -c rpproc.c
91        mv rpproc.o rpproc.nk.o
92
93rpproc.debug.o: rpproc.c
94        ${CC} ${ALL_CFLAGS} -c rpproc.c
95        mv rpproc.o rpproc.debug.o
96
97core.o: core.c
98        ${CC} ${ALL_CFLAGS} -c core.c
99
100coreutil.o: coreutil.c
101        ${CC} ${ALL_CFLAGS} -c coreutil.c
Note: See TracBrowser for help on using the repository browser.