1SHELL	= /bin/sh
2SRCS	= tlsproxy.c tlsproxy_state.c
3OBJS	= tlsproxy.o tlsproxy_state.o
4HDRS	= 
5TESTSRC	=
6DEFS	= -I. -I$(INC_DIR) -D$(SYSTYPE)
7CFLAGS	= $(DEBUG) $(OPT) $(DEFS)
8TESTPROG= 
9PROG	= tlsproxy
10INC_DIR = ../../include
11LIBS	= ../../lib/lib$(LIB_PREFIX)master$(LIB_SUFFIX) \
12	../../lib/lib$(LIB_PREFIX)tls$(LIB_SUFFIX) \
13	../../lib/lib$(LIB_PREFIX)dns$(LIB_SUFFIX) \
14	../../lib/lib$(LIB_PREFIX)global$(LIB_SUFFIX) \
15	../../lib/lib$(LIB_PREFIX)util$(LIB_SUFFIX)
16
17.c.o:;	$(CC) $(CFLAGS) -c $*.c
18
19$(PROG): $(OBJS) $(LIBS)
20	$(CC) $(CFLAGS) $(SHLIB_RPATH) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
21
22$(OBJS): ../../conf/makedefs.out
23
24Makefile: Makefile.in
25	cat ../../conf/makedefs.out $? >$@
26
27test:	$(TESTPROG)
28
29tests:	test
30
31root_tests:
32
33update: ../../libexec/$(PROG)
34
35../../libexec/$(PROG): $(PROG)
36	cp $(PROG) ../../libexec
37
38printfck: $(OBJS) $(PROG)
39	rm -rf printfck
40	mkdir printfck
41	sed '1,/^# do not edit/!d' Makefile >printfck/Makefile
42	set -e; for i in *.c; do printfck -f .printfck $$i >printfck/$$i; done
43	cd printfck; make "INC_DIR=../../../include" `cd ..; ls *.o`
44
45lint:
46	lint $(DEFS) $(SRCS) $(LINTFIX)
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 | LANG=C 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'
64tlsproxy.o: ../../include/argv.h
65tlsproxy.o: ../../include/attr.h
66tlsproxy.o: ../../include/been_here.h
67tlsproxy.o: ../../include/check_arg.h
68tlsproxy.o: ../../include/dns.h
69tlsproxy.o: ../../include/events.h
70tlsproxy.o: ../../include/htable.h
71tlsproxy.o: ../../include/iostuff.h
72tlsproxy.o: ../../include/mail_conf.h
73tlsproxy.o: ../../include/mail_params.h
74tlsproxy.o: ../../include/mail_proto.h
75tlsproxy.o: ../../include/mail_server.h
76tlsproxy.o: ../../include/mail_version.h
77tlsproxy.o: ../../include/msg.h
78tlsproxy.o: ../../include/myaddrinfo.h
79tlsproxy.o: ../../include/mymalloc.h
80tlsproxy.o: ../../include/name_code.h
81tlsproxy.o: ../../include/name_mask.h
82tlsproxy.o: ../../include/nbbio.h
83tlsproxy.o: ../../include/nvtable.h
84tlsproxy.o: ../../include/sock_addr.h
85tlsproxy.o: ../../include/split_at.h
86tlsproxy.o: ../../include/sys_defs.h
87tlsproxy.o: ../../include/tls.h
88tlsproxy.o: ../../include/tls_proxy.h
89tlsproxy.o: ../../include/vbuf.h
90tlsproxy.o: ../../include/vstream.h
91tlsproxy.o: ../../include/vstring.h
92tlsproxy.o: tlsproxy.c
93tlsproxy.o: tlsproxy.h
94tlsproxy_state.o: ../../include/argv.h
95tlsproxy_state.o: ../../include/attr.h
96tlsproxy_state.o: ../../include/check_arg.h
97tlsproxy_state.o: ../../include/dns.h
98tlsproxy_state.o: ../../include/events.h
99tlsproxy_state.o: ../../include/htable.h
100tlsproxy_state.o: ../../include/mail_conf.h
101tlsproxy_state.o: ../../include/mail_server.h
102tlsproxy_state.o: ../../include/msg.h
103tlsproxy_state.o: ../../include/myaddrinfo.h
104tlsproxy_state.o: ../../include/mymalloc.h
105tlsproxy_state.o: ../../include/name_code.h
106tlsproxy_state.o: ../../include/name_mask.h
107tlsproxy_state.o: ../../include/nbbio.h
108tlsproxy_state.o: ../../include/nvtable.h
109tlsproxy_state.o: ../../include/sock_addr.h
110tlsproxy_state.o: ../../include/sys_defs.h
111tlsproxy_state.o: ../../include/tls.h
112tlsproxy_state.o: ../../include/tls_proxy.h
113tlsproxy_state.o: ../../include/vbuf.h
114tlsproxy_state.o: ../../include/vstream.h
115tlsproxy_state.o: ../../include/vstring.h
116tlsproxy_state.o: tlsproxy.h
117tlsproxy_state.o: tlsproxy_state.c
118