1SHELL = /bin/sh 2SRCS = tlsmgr.c 3OBJS = tlsmgr.o 4HDRS = 5TESTSRC = smtpd_token_test.c 6DEFS = -I. -I$(INC_DIR) -D$(SYSTYPE) 7CFLAGS = $(DEBUG) $(OPT) $(DEFS) 8TESTPROG= 9PROG = tlsmgr 10INC_DIR = ../../include 11LIBS = ../../lib/libmaster.a ../../lib/libtls.a ../../lib/libglobal.a \ 12 ../../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 26update: ../../libexec/$(PROG) 27 28../../libexec/$(PROG): $(PROG) 29 cp $(PROG) ../../libexec 30 31printfck: $(OBJS) $(PROG) 32 rm -rf printfck 33 mkdir printfck 34 cp *.h printfck 35 sed '1,/^# do not edit/!d' Makefile >printfck/Makefile 36 set -e; for i in *.c; do printfck -f .printfck $$i >printfck/$$i; done 37 cd printfck; make "INC_DIR=../../../include" `cd ..; ls *.o` 38 39lint: 40 lint $(DEFS) $(SRCS) $(LINTFIX) 41 42clean: 43 rm -f *.o *core $(PROG) $(TESTPROG) junk *.db *.out *.tmp 44 rm -rf printfck 45 46tidy: clean 47 48tests: 49 50root_tests: 51 52depend: $(MAKES) 53 (sed '1,/^# do not edit/!d' Makefile.in; \ 54 set -e; for i in [a-z][a-z0-9]*.c; do \ 55 $(CC) -E $(DEFS) $(INCL) $$i | grep -v '[<>]' | sed -n -e '/^# *1 *"\([^"]*\)".*/{' \ 56 -e 's//'`echo $$i|sed 's/c$$/o/'`': \1/' \ 57 -e 's/o: \.\//o: /' -e p -e '}' ; \ 58 done | sort -u) | grep -v '[.][o][:][ ][/]' >$$$$ && mv $$$$ Makefile.in 59 @$(EXPORT) make -f Makefile.in Makefile 1>&2 60 61# do not edit below this line - it is generated by 'make depend' 62tlsmgr.o: ../../include/argv.h 63tlsmgr.o: ../../include/attr.h 64tlsmgr.o: ../../include/data_redirect.h 65tlsmgr.o: ../../include/dict.h 66tlsmgr.o: ../../include/events.h 67tlsmgr.o: ../../include/htable.h 68tlsmgr.o: ../../include/iostuff.h 69tlsmgr.o: ../../include/mail_conf.h 70tlsmgr.o: ../../include/mail_params.h 71tlsmgr.o: ../../include/mail_proto.h 72tlsmgr.o: ../../include/mail_server.h 73tlsmgr.o: ../../include/mail_version.h 74tlsmgr.o: ../../include/master_proto.h 75tlsmgr.o: ../../include/msg.h 76tlsmgr.o: ../../include/mymalloc.h 77tlsmgr.o: ../../include/name_code.h 78tlsmgr.o: ../../include/name_mask.h 79tlsmgr.o: ../../include/set_eugid.h 80tlsmgr.o: ../../include/stringops.h 81tlsmgr.o: ../../include/sys_defs.h 82tlsmgr.o: ../../include/tls.h 83tlsmgr.o: ../../include/tls_mgr.h 84tlsmgr.o: ../../include/tls_prng.h 85tlsmgr.o: ../../include/tls_scache.h 86tlsmgr.o: ../../include/vbuf.h 87tlsmgr.o: ../../include/vstream.h 88tlsmgr.o: ../../include/vstring.h 89tlsmgr.o: ../../include/vstring_vstream.h 90tlsmgr.o: tlsmgr.c 91