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