xref: /netbsd-src/external/ibm-public/postfix/dist/src/showq/Makefile.in (revision f3bc92a4f25066883a5d85d66df30605583c883c)
1SHELL	= /bin/sh
2SRCS	= showq.c
3OBJS	= showq.o
4HDRS	=
5TESTSRC	=
6DEFS	= -I. -I$(INC_DIR) -D$(SYSTYPE)
7CFLAGS	= $(DEBUG) $(OPT) $(DEFS)
8TESTPROG=
9PROG	= showq
10INC_DIR = ../../include
11LIBS	= ../../lib/lib$(LIB_PREFIX)master$(LIB_SUFFIX) \
12	../../lib/lib$(LIB_PREFIX)global$(LIB_SUFFIX) \
13	../../lib/lib$(LIB_PREFIX)util$(LIB_SUFFIX)
14
15.c.o:;	$(CC) $(CFLAGS) -c $*.c
16
17$(PROG): $(OBJS) $(LIBS)
18	$(CC) $(CFLAGS) $(SHLIB_RPATH) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
19
20$(OBJS): ../../conf/makedefs.out
21
22Makefile: Makefile.in
23	cat ../../conf/makedefs.out $? >$@
24
25test:	$(TESTPROG)
26
27tests:
28
29root_tests:
30
31update: ../../libexec/$(PROG)
32
33../../libexec/$(PROG): $(PROG)
34	cp $(PROG) ../../libexec
35
36printfck: $(OBJS) $(PROG)
37	rm -rf printfck
38	mkdir printfck
39	sed '1,/^# do not edit/!d' Makefile >printfck/Makefile
40	set -e; for i in *.c; do printfck -f .printfck $$i >printfck/$$i; done
41	cd printfck; make "INC_DIR=../../../include" `cd ..; ls *.o`
42
43lint:
44	lint $(DEFS) $(SRCS) $(LINTFIX)
45
46clean:
47	rm -f *.o *core $(PROG) $(TESTPROG) junk
48	rm -rf printfck
49
50tidy:	clean
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 | LANG=C 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'
62showq.o: ../../include/attr.h
63showq.o: ../../include/bounce_log.h
64showq.o: ../../include/check_arg.h
65showq.o: ../../include/dsn.h
66showq.o: ../../include/dsn_buf.h
67showq.o: ../../include/htable.h
68showq.o: ../../include/iostuff.h
69showq.o: ../../include/mail_addr.h
70showq.o: ../../include/mail_conf.h
71showq.o: ../../include/mail_date.h
72showq.o: ../../include/mail_open_ok.h
73showq.o: ../../include/mail_params.h
74showq.o: ../../include/mail_proto.h
75showq.o: ../../include/mail_queue.h
76showq.o: ../../include/mail_scan_dir.h
77showq.o: ../../include/mail_server.h
78showq.o: ../../include/mail_version.h
79showq.o: ../../include/msg.h
80showq.o: ../../include/mymalloc.h
81showq.o: ../../include/nvtable.h
82showq.o: ../../include/quote_822_local.h
83showq.o: ../../include/quote_flags.h
84showq.o: ../../include/rcpt_buf.h
85showq.o: ../../include/rec_type.h
86showq.o: ../../include/recipient_list.h
87showq.o: ../../include/record.h
88showq.o: ../../include/scan_dir.h
89showq.o: ../../include/stringops.h
90showq.o: ../../include/sys_defs.h
91showq.o: ../../include/vbuf.h
92showq.o: ../../include/vstream.h
93showq.o: ../../include/vstring.h
94showq.o: ../../include/vstring_vstream.h
95showq.o: showq.c
96