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 | MKDIR_P=@MKDIR_P@ |
---|
10 | srcdir=@srcdir@ |
---|
11 | top_srcdir=@top_srcdir@ |
---|
12 | prefix=@prefix@ |
---|
13 | exec_prefix=@exec_prefix@ |
---|
14 | bindir=@bindir@ |
---|
15 | sbindir=@sbindir@ |
---|
16 | libexecdir=@libexecdir@ |
---|
17 | |
---|
18 | CC=@CC@ |
---|
19 | DEFS=@DEFS@ |
---|
20 | CPPFLAGS=@CPPFLAGS@ |
---|
21 | CFLAGS=@CFLAGS@ |
---|
22 | LDFLAGS=@LDFLAGS@ |
---|
23 | LIBS=../libds/libdsk.a ../usp/libusp.a @ZEPHYR_LIBS@ @KRB4_LIBS@ @KRB5_LIBS@ @LIBS@ |
---|
24 | ALL_CFLAGS=-I../include ${CPPFLAGS} ${CFLAGS} ${DEFS} |
---|
25 | |
---|
26 | DISCUSS_UID=discuss |
---|
27 | OBJS= 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 |
---|
30 | DISCUSSD_OBJS=$(OBJS) rpproc.k.o core.o coreutil.o |
---|
31 | DISSERVE_OBJS=$(OBJS) rpproc.nk.o core.o coreutil.o |
---|
32 | |
---|
33 | .c.o: |
---|
34 | ${CC} -c ${ALL_CFLAGS} $< |
---|
35 | |
---|
36 | all: debug recover expunge discussd disserve |
---|
37 | |
---|
38 | clean: |
---|
39 | rm -f *.o *~ \#* disserve recover expunge discussd disdebug |
---|
40 | |
---|
41 | distclean: clean |
---|
42 | rm -f Makefile |
---|
43 | |
---|
44 | depend: |
---|
45 | |
---|
46 | install: |
---|
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 | |
---|
55 | discussd: $(DISCUSSD_OBJS) |
---|
56 | ${CC} ${LDFLAGS} -o $@ $(DISCUSSD_OBJS) ${LIBS} |
---|
57 | |
---|
58 | disserve: $(DISSERVE_OBJS) |
---|
59 | ${CC} ${LDFLAGS} -o $@ $(DISSERVE_OBJS) ${LIBS} |
---|
60 | |
---|
61 | servetest: ../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 | |
---|
68 | recover: 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 | |
---|
73 | expunge: 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 | |
---|
79 | debug: disdebug |
---|
80 | |
---|
81 | disdebug: $(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 | |
---|
85 | rpproc.k.o: rpproc.c |
---|
86 | ${CC} ${ALL_CFLAGS} -DINETD -c rpproc.c |
---|
87 | mv rpproc.o rpproc.k.o |
---|
88 | |
---|
89 | rpproc.nk.o: rpproc.c |
---|
90 | ${CC} ${ALL_CFLAGS} -DSUBPROC -DNOKERBEROS -c rpproc.c |
---|
91 | mv rpproc.o rpproc.nk.o |
---|
92 | |
---|
93 | rpproc.debug.o: rpproc.c |
---|
94 | ${CC} ${ALL_CFLAGS} -c rpproc.c |
---|
95 | mv rpproc.o rpproc.debug.o |
---|
96 | |
---|
97 | core.o: core.c |
---|
98 | ${CC} ${ALL_CFLAGS} -c core.c |
---|
99 | |
---|
100 | coreutil.o: coreutil.c |
---|
101 | ${CC} ${ALL_CFLAGS} -c coreutil.c |
---|