1SHELL = /bin/sh 2SRCS = postmulti.c 3OBJS = postmulti.o 4HDRS = 5TESTSRC = 6DEFS = -I. -I$(INC_DIR) -D$(SYSTYPE) 7CFLAGS = $(DEBUG) $(OPT) $(DEFS) 8FILES = Makefile $(SRCS) $(HDRS) 9INC_DIR = ../../include 10TESTPROG= 11PROG = postmulti 12LIBS = ../../lib/libglobal.a ../../lib/libutil.a 13 14.c.o:; $(CC) $(CFLAGS) -c $*.c 15 16$(PROG): $(OBJS) $(LIBS) 17 $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS) 18 19$(OBJS): ../../conf/makedefs.out 20 21Makefile: Makefile.in 22 cat ../../conf/makedefs.out $? >$@ 23 24test: $(TESTPROG) 25 26tests: 27 28root_tests: 29 30update: ../../bin/$(PROG) 31 32../../bin/$(PROG): $(PROG) 33 cp $(PROG) ../../bin 34 35printfck: $(OBJS) $(PROG) 36 rm -rf printfck 37 mkdir printfck 38 sed '1,/^# do not edit/!d' Makefile >printfck/Makefile 39 set -e; for i in *.c; do printfck -f .printfck $$i >printfck/$$i; done 40 cd printfck; make "INC_DIR=../../../include" `cd ..; ls *.o` 41 42shar: 43 @shar $(FILES) 44 45lint: 46 lint $(SRCS) 47 48clean: 49 rm -f *.o *core $(PROG) $(TESTPROG) junk 50 rm -rf printfck 51 52tidy: clean 53 54depend: $(MAKES) 55 (sed '1,/^# do not edit/!d' Makefile.in; \ 56 set -e; for i in [a-z][a-z0-9]*.c; do \ 57 $(CC) -E $(DEFS) $(INCL) $$i | grep -v '[<>]' | sed -n -e '/^# *1 *"\([^"]*\)".*/{' \ 58 -e 's//'`echo $$i|sed 's/c$$/o/'`': \1/' \ 59 -e 's/o: \.\//o: /' -e p -e '}' ; \ 60 done | sort -u) | grep -v '[.][o][:][ ][/]' >$$$$ && mv $$$$ Makefile.in 61 @$(EXPORT) make -f Makefile.in Makefile 1>&2 62 63# do not edit below this line - it is generated by 'make depend' 64postmulti.o: ../../include/argv.h 65postmulti.o: ../../include/clean_env.h 66postmulti.o: ../../include/htable.h 67postmulti.o: ../../include/mail_conf.h 68postmulti.o: ../../include/mail_params.h 69postmulti.o: ../../include/mail_version.h 70postmulti.o: ../../include/msg.h 71postmulti.o: ../../include/msg_syslog.h 72postmulti.o: ../../include/msg_vstream.h 73postmulti.o: ../../include/mymalloc.h 74postmulti.o: ../../include/name_code.h 75postmulti.o: ../../include/ring.h 76postmulti.o: ../../include/safe.h 77postmulti.o: ../../include/stringops.h 78postmulti.o: ../../include/sys_defs.h 79postmulti.o: ../../include/vbuf.h 80postmulti.o: ../../include/vstream.h 81postmulti.o: ../../include/vstring.h 82postmulti.o: ../../include/vstring_vstream.h 83postmulti.o: ../../include/warn_stat.h 84postmulti.o: postmulti.c 85