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