261 lines
8.4 KiB
Makefile
261 lines
8.4 KiB
Makefile
SHELL = /bin/sh
|
|
SRCS = qmgr.c qmgr_active.c qmgr_transport.c qmgr_queue.c qmgr_entry.c \
|
|
qmgr_message.c qmgr_deliver.c qmgr_move.c qmgr_rcpt_list.c \
|
|
qmgr_defer.c qmgr_enable.c qmgr_scan.c qmgr_bounce.c
|
|
OBJS = qmgr.o qmgr_active.o qmgr_transport.o qmgr_queue.o qmgr_entry.o \
|
|
qmgr_message.o qmgr_deliver.o qmgr_move.o qmgr_rcpt_list.o \
|
|
qmgr_defer.o qmgr_enable.o qmgr_scan.o qmgr_bounce.o
|
|
HDRS = qmgr.h
|
|
TESTSRC =
|
|
WARN = -W -Wformat -Wimplicit -Wmissing-prototypes \
|
|
-Wparentheses -Wstrict-prototypes -Wswitch -Wuninitialized \
|
|
-Wunused
|
|
DEFS = -I. -I$(INC_DIR) -D$(SYSTYPE)
|
|
CFLAGS = $(DEBUG) $(OPT) $(DEFS)
|
|
TESTPROG=
|
|
PROG = qmgr
|
|
INC_DIR = ../include
|
|
LIBS = ../lib/libmaster.a ../lib/libglobal.a ../lib/libutil.a
|
|
|
|
.c.o:; $(CC) $(CFLAGS) -c $*.c
|
|
|
|
$(PROG): $(OBJS) $(LIBS)
|
|
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
|
|
|
|
Makefile: Makefile.in
|
|
(set -e; echo "# DO NOT EDIT"; $(OPTS) $(SHELL) ../makedefs; cat $?) >$@
|
|
|
|
test: $(TESTPROG)
|
|
|
|
update: ../libexec/$(PROG)
|
|
|
|
../libexec/$(PROG): $(PROG)
|
|
cp $(PROG) ../libexec
|
|
|
|
printfck: $(OBJS) $(PROG)
|
|
rm -rf printfck
|
|
mkdir printfck
|
|
cp *.h printfck
|
|
sed '1,/^# do not edit/!d' Makefile >printfck/Makefile
|
|
set -e; for i in *.c; do printfck -f .printfck $$i >printfck/$$i; done
|
|
cd printfck; make "INC_DIR=../../include" `cd ..; ls *.o`
|
|
|
|
lint:
|
|
lint $(DEFS) $(SRCS) $(LINTFIX)
|
|
|
|
clean:
|
|
rm -f *.o *core $(PROG) $(TESTPROG) junk
|
|
rm -rf printfck
|
|
|
|
tidy: clean
|
|
|
|
depend: $(MAKES)
|
|
(sed '1,/^# do not edit/!d' Makefile.in; \
|
|
set -e; for i in [a-z][a-z0-9]*.c; do \
|
|
$(CC) -E $(DEFS) $(INCL) $$i | sed -n -e '/^# *1 *"\([^"]*\)".*/{' \
|
|
-e 's//'`echo $$i|sed 's/c$$/o/'`': \1/' -e 'p' -e '}'; \
|
|
done) | grep -v '[.][o][:][ ][/]' >$$$$ && mv $$$$ Makefile.in
|
|
@make -f Makefile.in Makefile
|
|
|
|
# do not edit below this line - it is generated by 'make depend'
|
|
qmgr.o: qmgr.c
|
|
qmgr.o: ../include/sys_defs.h
|
|
qmgr.o: ../include/msg.h
|
|
qmgr.o: ../include/events.h
|
|
qmgr.o: ../include/vstream.h
|
|
qmgr.o: ../include/vbuf.h
|
|
qmgr.o: ../include/dict.h
|
|
qmgr.o: ../include/argv.h
|
|
qmgr.o: ../include/mail_queue.h
|
|
qmgr.o: ../include/vstring.h
|
|
qmgr.o: ../include/recipient_list.h
|
|
qmgr.o: ../include/mail_conf.h
|
|
qmgr.o: ../include/mail_params.h
|
|
qmgr.o: ../include/mail_proto.h
|
|
qmgr.o: ../include/iostuff.h
|
|
qmgr.o: ../include/master_proto.h
|
|
qmgr.o: ../include/mail_server.h
|
|
qmgr.o: qmgr.h
|
|
qmgr.o: ../include/scan_dir.h
|
|
qmgr.o: ../include/maps.h
|
|
qmgr_active.o: qmgr_active.c
|
|
qmgr_active.o: ../include/sys_defs.h
|
|
qmgr_active.o: ../include/msg.h
|
|
qmgr_active.o: ../include/events.h
|
|
qmgr_active.o: ../include/mymalloc.h
|
|
qmgr_active.o: ../include/vstream.h
|
|
qmgr_active.o: ../include/vbuf.h
|
|
qmgr_active.o: ../include/mail_params.h
|
|
qmgr_active.o: ../include/mail_open_ok.h
|
|
qmgr_active.o: ../include/mail_queue.h
|
|
qmgr_active.o: ../include/vstring.h
|
|
qmgr_active.o: ../include/recipient_list.h
|
|
qmgr_active.o: ../include/bounce.h
|
|
qmgr_active.o: ../include/defer.h
|
|
qmgr_active.o: ../include/rec_type.h
|
|
qmgr_active.o: qmgr.h
|
|
qmgr_active.o: ../include/scan_dir.h
|
|
qmgr_active.o: ../include/maps.h
|
|
qmgr_active.o: ../include/dict.h
|
|
qmgr_active.o: ../include/argv.h
|
|
qmgr_bounce.o: qmgr_bounce.c
|
|
qmgr_bounce.o: ../include/sys_defs.h
|
|
qmgr_bounce.o: ../include/bounce.h
|
|
qmgr_bounce.o: ../include/deliver_completed.h
|
|
qmgr_bounce.o: ../include/vstream.h
|
|
qmgr_bounce.o: ../include/vbuf.h
|
|
qmgr_bounce.o: qmgr.h
|
|
qmgr_bounce.o: ../include/scan_dir.h
|
|
qmgr_bounce.o: ../include/maps.h
|
|
qmgr_bounce.o: ../include/dict.h
|
|
qmgr_bounce.o: ../include/argv.h
|
|
qmgr_defer.o: qmgr_defer.c
|
|
qmgr_defer.o: ../include/sys_defs.h
|
|
qmgr_defer.o: ../include/msg.h
|
|
qmgr_defer.o: ../include/vstream.h
|
|
qmgr_defer.o: ../include/vbuf.h
|
|
qmgr_defer.o: ../include/defer.h
|
|
qmgr_defer.o: ../include/bounce.h
|
|
qmgr_defer.o: qmgr.h
|
|
qmgr_defer.o: ../include/scan_dir.h
|
|
qmgr_defer.o: ../include/maps.h
|
|
qmgr_defer.o: ../include/dict.h
|
|
qmgr_defer.o: ../include/argv.h
|
|
qmgr_deliver.o: qmgr_deliver.c
|
|
qmgr_deliver.o: ../include/sys_defs.h
|
|
qmgr_deliver.o: ../include/msg.h
|
|
qmgr_deliver.o: ../include/vstring.h
|
|
qmgr_deliver.o: ../include/vbuf.h
|
|
qmgr_deliver.o: ../include/vstream.h
|
|
qmgr_deliver.o: ../include/vstring_vstream.h
|
|
qmgr_deliver.o: ../include/events.h
|
|
qmgr_deliver.o: ../include/iostuff.h
|
|
qmgr_deliver.o: ../include/mail_queue.h
|
|
qmgr_deliver.o: ../include/mail_proto.h
|
|
qmgr_deliver.o: ../include/recipient_list.h
|
|
qmgr_deliver.o: ../include/mail_params.h
|
|
qmgr_deliver.o: qmgr.h
|
|
qmgr_deliver.o: ../include/scan_dir.h
|
|
qmgr_deliver.o: ../include/maps.h
|
|
qmgr_deliver.o: ../include/dict.h
|
|
qmgr_deliver.o: ../include/argv.h
|
|
qmgr_enable.o: qmgr_enable.c
|
|
qmgr_enable.o: ../include/sys_defs.h
|
|
qmgr_enable.o: ../include/msg.h
|
|
qmgr_enable.o: ../include/vstream.h
|
|
qmgr_enable.o: ../include/vbuf.h
|
|
qmgr_enable.o: qmgr.h
|
|
qmgr_enable.o: ../include/scan_dir.h
|
|
qmgr_enable.o: ../include/maps.h
|
|
qmgr_enable.o: ../include/dict.h
|
|
qmgr_enable.o: ../include/argv.h
|
|
qmgr_entry.o: qmgr_entry.c
|
|
qmgr_entry.o: ../include/sys_defs.h
|
|
qmgr_entry.o: ../include/msg.h
|
|
qmgr_entry.o: ../include/mymalloc.h
|
|
qmgr_entry.o: ../include/events.h
|
|
qmgr_entry.o: ../include/vstream.h
|
|
qmgr_entry.o: ../include/vbuf.h
|
|
qmgr_entry.o: ../include/mail_params.h
|
|
qmgr_entry.o: qmgr.h
|
|
qmgr_entry.o: ../include/scan_dir.h
|
|
qmgr_entry.o: ../include/maps.h
|
|
qmgr_entry.o: ../include/dict.h
|
|
qmgr_entry.o: ../include/argv.h
|
|
qmgr_message.o: qmgr_message.c
|
|
qmgr_message.o: ../include/sys_defs.h
|
|
qmgr_message.o: ../include/msg.h
|
|
qmgr_message.o: ../include/mymalloc.h
|
|
qmgr_message.o: ../include/vstring.h
|
|
qmgr_message.o: ../include/vbuf.h
|
|
qmgr_message.o: ../include/vstream.h
|
|
qmgr_message.o: ../include/split_at.h
|
|
qmgr_message.o: ../include/valid_hostname.h
|
|
qmgr_message.o: ../include/argv.h
|
|
qmgr_message.o: ../include/stringops.h
|
|
qmgr_message.o: ../include/myflock.h
|
|
qmgr_message.o: ../include/dict.h
|
|
qmgr_message.o: ../include/mail_queue.h
|
|
qmgr_message.o: ../include/mail_params.h
|
|
qmgr_message.o: ../include/canon_addr.h
|
|
qmgr_message.o: ../include/record.h
|
|
qmgr_message.o: ../include/rec_type.h
|
|
qmgr_message.o: ../include/sent.h
|
|
qmgr_message.o: ../include/deliver_completed.h
|
|
qmgr_message.o: ../include/mail_addr_find.h
|
|
qmgr_message.o: ../include/maps.h
|
|
qmgr_message.o: ../include/opened.h
|
|
qmgr_message.o: ../include/resolve_local.h
|
|
qmgr_message.o: ../include/resolve_clnt.h
|
|
qmgr_message.o: qmgr.h
|
|
qmgr_message.o: ../include/scan_dir.h
|
|
qmgr_move.o: qmgr_move.c
|
|
qmgr_move.o: ../include/sys_defs.h
|
|
qmgr_move.o: ../include/msg.h
|
|
qmgr_move.o: ../include/scan_dir.h
|
|
qmgr_move.o: ../include/recipient_list.h
|
|
qmgr_move.o: ../include/mail_queue.h
|
|
qmgr_move.o: ../include/vstring.h
|
|
qmgr_move.o: ../include/vbuf.h
|
|
qmgr_move.o: ../include/vstream.h
|
|
qmgr_move.o: ../include/mail_scan_dir.h
|
|
qmgr_move.o: qmgr.h
|
|
qmgr_move.o: ../include/maps.h
|
|
qmgr_move.o: ../include/dict.h
|
|
qmgr_move.o: ../include/argv.h
|
|
qmgr_queue.o: qmgr_queue.c
|
|
qmgr_queue.o: ../include/sys_defs.h
|
|
qmgr_queue.o: ../include/msg.h
|
|
qmgr_queue.o: ../include/mymalloc.h
|
|
qmgr_queue.o: ../include/events.h
|
|
qmgr_queue.o: ../include/htable.h
|
|
qmgr_queue.o: ../include/mail_params.h
|
|
qmgr_queue.o: ../include/recipient_list.h
|
|
qmgr_queue.o: qmgr.h
|
|
qmgr_queue.o: ../include/vstream.h
|
|
qmgr_queue.o: ../include/vbuf.h
|
|
qmgr_queue.o: ../include/scan_dir.h
|
|
qmgr_queue.o: ../include/maps.h
|
|
qmgr_queue.o: ../include/dict.h
|
|
qmgr_queue.o: ../include/argv.h
|
|
qmgr_rcpt_list.o: qmgr_rcpt_list.c
|
|
qmgr_rcpt_list.o: ../include/sys_defs.h
|
|
qmgr_rcpt_list.o: ../include/mymalloc.h
|
|
qmgr_rcpt_list.o: qmgr.h
|
|
qmgr_rcpt_list.o: ../include/vstream.h
|
|
qmgr_rcpt_list.o: ../include/vbuf.h
|
|
qmgr_rcpt_list.o: ../include/scan_dir.h
|
|
qmgr_rcpt_list.o: ../include/maps.h
|
|
qmgr_rcpt_list.o: ../include/dict.h
|
|
qmgr_rcpt_list.o: ../include/argv.h
|
|
qmgr_scan.o: qmgr_scan.c
|
|
qmgr_scan.o: ../include/sys_defs.h
|
|
qmgr_scan.o: ../include/msg.h
|
|
qmgr_scan.o: ../include/mymalloc.h
|
|
qmgr_scan.o: ../include/scan_dir.h
|
|
qmgr_scan.o: ../include/mail_scan_dir.h
|
|
qmgr_scan.o: qmgr.h
|
|
qmgr_scan.o: ../include/vstream.h
|
|
qmgr_scan.o: ../include/vbuf.h
|
|
qmgr_scan.o: ../include/maps.h
|
|
qmgr_scan.o: ../include/dict.h
|
|
qmgr_scan.o: ../include/argv.h
|
|
qmgr_transport.o: qmgr_transport.c
|
|
qmgr_transport.o: ../include/sys_defs.h
|
|
qmgr_transport.o: ../include/msg.h
|
|
qmgr_transport.o: ../include/htable.h
|
|
qmgr_transport.o: ../include/events.h
|
|
qmgr_transport.o: ../include/mymalloc.h
|
|
qmgr_transport.o: ../include/vstream.h
|
|
qmgr_transport.o: ../include/vbuf.h
|
|
qmgr_transport.o: ../include/iostuff.h
|
|
qmgr_transport.o: ../include/mail_proto.h
|
|
qmgr_transport.o: ../include/recipient_list.h
|
|
qmgr_transport.o: ../include/mail_conf.h
|
|
qmgr_transport.o: ../include/mail_params.h
|
|
qmgr_transport.o: qmgr.h
|
|
qmgr_transport.o: ../include/scan_dir.h
|
|
qmgr_transport.o: ../include/maps.h
|
|
qmgr_transport.o: ../include/dict.h
|
|
qmgr_transport.o: ../include/argv.h
|