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