1SHELL = /bin/sh 2SRCS = bounce.c bounce_append_service.c bounce_notify_service.c \ 3 bounce_cleanup.c bounce_notify_util.c bounce_notify_verp.c \ 4 bounce_one_service.c bounce_warn_service.c bounce_trace_service.c \ 5 bounce_template.c bounce_templates.c 6OBJS = bounce.o bounce_append_service.o bounce_notify_service.o \ 7 bounce_cleanup.o bounce_notify_util.o bounce_notify_verp.o \ 8 bounce_one_service.o bounce_warn_service.o bounce_trace_service.o \ 9 bounce_template.o bounce_templates.o 10HDRS = 11TESTSRC = 12DEFS = -I. -I$(INC_DIR) -D$(SYSTYPE) 13CFLAGS = $(DEBUG) $(OPT) $(DEFS) 14TESTPROG= 15PROG = bounce 16SAMPLES = ../../conf/bounce.cf.default 17INC_DIR = ../../include 18LIBS = ../../lib/lib$(LIB_PREFIX)master$(LIB_SUFFIX) \ 19 ../../lib/lib$(LIB_PREFIX)global$(LIB_SUFFIX) \ 20 ../../lib/lib$(LIB_PREFIX)util$(LIB_SUFFIX) 21 22.c.o:; $(CC) $(CFLAGS) -c $*.c 23 24all: $(PROG) ../../conf/bounce.cf.default 25 26$(PROG): $(OBJS) $(LIBS) 27 $(CC) $(CFLAGS) $(SHLIB_RPATH) -o $@ $(OBJS) $(LIBS) $(SYSLIBS) 28 29# Eliminate dependency on installed Postfix. 30../../conf/bounce.cf.default: template_test.ref annotate.sh 31 rm -f $@ 32 ./annotate.sh <template_test.ref >$@ 33 34main.cf: 35 echo queue_directory=. >main.cf 36 echo myhostname=example.com >>main.cf 37 38$(OBJS): ../../conf/makedefs.out 39 40Makefile: Makefile.in 41 cat ../../conf/makedefs.out $? >$@ 42 43test: $(TESTPROG) 44 45tests: update template_test 2template_test 46 47root_tests: 48 49update: ../../libexec/$(PROG) $(SAMPLES) 50 51../../libexec/$(PROG): $(PROG) 52 cp $(PROG) ../../libexec 53 54printfck: $(OBJS) $(PROG) 55 rm -rf printfck 56 mkdir printfck 57 cp *.h printfck 58 sed '1,/^# do not edit/!d' Makefile > printfck/Makefile 59 set -e; for i in *.c; do printfck -f .printfck $$i >printfck/$$i; done 60 cd printfck; make "INC_DIR=../../../include" `cd ..; ls *.o` 61 62lint: 63 lint $(DEFS) $(SRCS) $(LINTFIX) 64 65clean: 66 rm -f *.o *core $(PROG) $(TESTPROG) junk main.cf 67 rm -rf printfck 68 69tidy: clean 70 71# Avoid dependency on installed Postfix. 72# XXX This still requires that default_privs, mail_owner etc. accounts exist. 73template_test: $(PROG) main.cf template_test.ref 74 MAIL_CONFIG=. ./$(PROG) -SVzndump_templates >template_test.tmp 75 diff template_test.ref template_test.tmp 76 MAIL_CONFIG=. ./$(PROG) -SVzndump_templates \ 77 -o bounce_template_file=template_test.ref > template_test.tmp 78 diff template_test.ref template_test.tmp 79 rm -f template_test.tmp 80 812template_test: $(PROG) main.cf template_test.ref 2template_test.in 82 MAIL_CONFIG=. ./$(PROG) -SVzndump_templates \ 83 -o bounce_template_file=2template_test.in > template_test.tmp 84 diff template_test.ref template_test.tmp 85 rm -f template_test.tmp 86 87depend: $(MAKES) 88 (sed '1,/^# do not edit/!d' Makefile.in; \ 89 set -e; for i in [a-z][a-z0-9]*.c; do \ 90 $(CC) -E $(DEFS) $(INCL) $$i | grep -v '[<>]' | sed -n -e '/^# *1 *"\([^"]*\)".*/{' \ 91 -e 's//'`echo $$i|sed 's/c$$/o/'`': \1/' \ 92 -e 's/o: \.\//o: /' -e p -e '}' ; \ 93 done | sort -u) | grep -v '[.][o][:][ ][/]' >$$$$ && mv $$$$ Makefile.in 94 @$(EXPORT) make -f Makefile.in Makefile 1>&2 95 96# do not edit below this line - it is generated by 'make depend' 97bounce.o: ../../include/attr.h 98bounce.o: ../../include/bounce.h 99bounce.o: ../../include/bounce_log.h 100bounce.o: ../../include/check_arg.h 101bounce.o: ../../include/deliver_request.h 102bounce.o: ../../include/dsb_scan.h 103bounce.o: ../../include/dsn.h 104bounce.o: ../../include/dsn_buf.h 105bounce.o: ../../include/htable.h 106bounce.o: ../../include/iostuff.h 107bounce.o: ../../include/load_file.h 108bounce.o: ../../include/mail_addr.h 109bounce.o: ../../include/mail_conf.h 110bounce.o: ../../include/mail_params.h 111bounce.o: ../../include/mail_proto.h 112bounce.o: ../../include/mail_queue.h 113bounce.o: ../../include/mail_server.h 114bounce.o: ../../include/mail_version.h 115bounce.o: ../../include/msg.h 116bounce.o: ../../include/msg_stats.h 117bounce.o: ../../include/mymalloc.h 118bounce.o: ../../include/nvtable.h 119bounce.o: ../../include/rcpt_buf.h 120bounce.o: ../../include/recipient_list.h 121bounce.o: ../../include/stringops.h 122bounce.o: ../../include/sys_defs.h 123bounce.o: ../../include/vbuf.h 124bounce.o: ../../include/vstream.h 125bounce.o: ../../include/vstring.h 126bounce.o: bounce.c 127bounce.o: bounce_service.h 128bounce.o: bounce_template.h 129bounce_append_service.o: ../../include/attr.h 130bounce_append_service.o: ../../include/bounce_log.h 131bounce_append_service.o: ../../include/check_arg.h 132bounce_append_service.o: ../../include/deliver_flock.h 133bounce_append_service.o: ../../include/dsn.h 134bounce_append_service.o: ../../include/dsn_buf.h 135bounce_append_service.o: ../../include/htable.h 136bounce_append_service.o: ../../include/iostuff.h 137bounce_append_service.o: ../../include/mail_params.h 138bounce_append_service.o: ../../include/mail_proto.h 139bounce_append_service.o: ../../include/mail_queue.h 140bounce_append_service.o: ../../include/msg.h 141bounce_append_service.o: ../../include/myflock.h 142bounce_append_service.o: ../../include/mymalloc.h 143bounce_append_service.o: ../../include/nvtable.h 144bounce_append_service.o: ../../include/quote_822_local.h 145bounce_append_service.o: ../../include/quote_flags.h 146bounce_append_service.o: ../../include/rcpt_buf.h 147bounce_append_service.o: ../../include/recipient_list.h 148bounce_append_service.o: ../../include/stringops.h 149bounce_append_service.o: ../../include/sys_defs.h 150bounce_append_service.o: ../../include/vbuf.h 151bounce_append_service.o: ../../include/vstream.h 152bounce_append_service.o: ../../include/vstring.h 153bounce_append_service.o: bounce_append_service.c 154bounce_append_service.o: bounce_service.h 155bounce_append_service.o: bounce_template.h 156bounce_cleanup.o: ../../include/attr.h 157bounce_cleanup.o: ../../include/bounce_log.h 158bounce_cleanup.o: ../../include/check_arg.h 159bounce_cleanup.o: ../../include/dsn.h 160bounce_cleanup.o: ../../include/dsn_buf.h 161bounce_cleanup.o: ../../include/htable.h 162bounce_cleanup.o: ../../include/mail_queue.h 163bounce_cleanup.o: ../../include/msg.h 164bounce_cleanup.o: ../../include/mymalloc.h 165bounce_cleanup.o: ../../include/nvtable.h 166bounce_cleanup.o: ../../include/rcpt_buf.h 167bounce_cleanup.o: ../../include/recipient_list.h 168bounce_cleanup.o: ../../include/sys_defs.h 169bounce_cleanup.o: ../../include/vbuf.h 170bounce_cleanup.o: ../../include/vstream.h 171bounce_cleanup.o: ../../include/vstring.h 172bounce_cleanup.o: bounce_cleanup.c 173bounce_cleanup.o: bounce_service.h 174bounce_cleanup.o: bounce_template.h 175bounce_notify_service.o: ../../include/attr.h 176bounce_notify_service.o: ../../include/bounce.h 177bounce_notify_service.o: ../../include/bounce_log.h 178bounce_notify_service.o: ../../include/check_arg.h 179bounce_notify_service.o: ../../include/cleanup_user.h 180bounce_notify_service.o: ../../include/deliver_request.h 181bounce_notify_service.o: ../../include/dsn.h 182bounce_notify_service.o: ../../include/dsn_buf.h 183bounce_notify_service.o: ../../include/dsn_mask.h 184bounce_notify_service.o: ../../include/htable.h 185bounce_notify_service.o: ../../include/int_filt.h 186bounce_notify_service.o: ../../include/iostuff.h 187bounce_notify_service.o: ../../include/mail_addr.h 188bounce_notify_service.o: ../../include/mail_error.h 189bounce_notify_service.o: ../../include/mail_params.h 190bounce_notify_service.o: ../../include/mail_proto.h 191bounce_notify_service.o: ../../include/mail_queue.h 192bounce_notify_service.o: ../../include/msg.h 193bounce_notify_service.o: ../../include/msg_stats.h 194bounce_notify_service.o: ../../include/mymalloc.h 195bounce_notify_service.o: ../../include/name_mask.h 196bounce_notify_service.o: ../../include/nvtable.h 197bounce_notify_service.o: ../../include/post_mail.h 198bounce_notify_service.o: ../../include/rcpt_buf.h 199bounce_notify_service.o: ../../include/rec_type.h 200bounce_notify_service.o: ../../include/recipient_list.h 201bounce_notify_service.o: ../../include/smtputf8.h 202bounce_notify_service.o: ../../include/stringops.h 203bounce_notify_service.o: ../../include/sys_defs.h 204bounce_notify_service.o: ../../include/vbuf.h 205bounce_notify_service.o: ../../include/vstream.h 206bounce_notify_service.o: ../../include/vstring.h 207bounce_notify_service.o: bounce_notify_service.c 208bounce_notify_service.o: bounce_service.h 209bounce_notify_service.o: bounce_template.h 210bounce_notify_util.o: ../../include/attr.h 211bounce_notify_util.o: ../../include/bounce_log.h 212bounce_notify_util.o: ../../include/check_arg.h 213bounce_notify_util.o: ../../include/cleanup_user.h 214bounce_notify_util.o: ../../include/deliver_completed.h 215bounce_notify_util.o: ../../include/dsn.h 216bounce_notify_util.o: ../../include/dsn_buf.h 217bounce_notify_util.o: ../../include/dsn_mask.h 218bounce_notify_util.o: ../../include/events.h 219bounce_notify_util.o: ../../include/htable.h 220bounce_notify_util.o: ../../include/int_filt.h 221bounce_notify_util.o: ../../include/iostuff.h 222bounce_notify_util.o: ../../include/is_header.h 223bounce_notify_util.o: ../../include/lex_822.h 224bounce_notify_util.o: ../../include/line_wrap.h 225bounce_notify_util.o: ../../include/mail_addr.h 226bounce_notify_util.o: ../../include/mail_date.h 227bounce_notify_util.o: ../../include/mail_error.h 228bounce_notify_util.o: ../../include/mail_params.h 229bounce_notify_util.o: ../../include/mail_proto.h 230bounce_notify_util.o: ../../include/mail_queue.h 231bounce_notify_util.o: ../../include/msg.h 232bounce_notify_util.o: ../../include/myflock.h 233bounce_notify_util.o: ../../include/mymalloc.h 234bounce_notify_util.o: ../../include/name_mask.h 235bounce_notify_util.o: ../../include/nvtable.h 236bounce_notify_util.o: ../../include/post_mail.h 237bounce_notify_util.o: ../../include/quote_822_local.h 238bounce_notify_util.o: ../../include/quote_flags.h 239bounce_notify_util.o: ../../include/rcpt_buf.h 240bounce_notify_util.o: ../../include/rec_type.h 241bounce_notify_util.o: ../../include/recipient_list.h 242bounce_notify_util.o: ../../include/record.h 243bounce_notify_util.o: ../../include/smtputf8.h 244bounce_notify_util.o: ../../include/stringops.h 245bounce_notify_util.o: ../../include/sys_defs.h 246bounce_notify_util.o: ../../include/vbuf.h 247bounce_notify_util.o: ../../include/vstream.h 248bounce_notify_util.o: ../../include/vstring.h 249bounce_notify_util.o: bounce_notify_util.c 250bounce_notify_util.o: bounce_service.h 251bounce_notify_util.o: bounce_template.h 252bounce_notify_verp.o: ../../include/attr.h 253bounce_notify_verp.o: ../../include/bounce.h 254bounce_notify_verp.o: ../../include/bounce_log.h 255bounce_notify_verp.o: ../../include/check_arg.h 256bounce_notify_verp.o: ../../include/cleanup_user.h 257bounce_notify_verp.o: ../../include/deliver_request.h 258bounce_notify_verp.o: ../../include/dsn.h 259bounce_notify_verp.o: ../../include/dsn_buf.h 260bounce_notify_verp.o: ../../include/dsn_mask.h 261bounce_notify_verp.o: ../../include/htable.h 262bounce_notify_verp.o: ../../include/int_filt.h 263bounce_notify_verp.o: ../../include/iostuff.h 264bounce_notify_verp.o: ../../include/mail_addr.h 265bounce_notify_verp.o: ../../include/mail_error.h 266bounce_notify_verp.o: ../../include/mail_params.h 267bounce_notify_verp.o: ../../include/mail_proto.h 268bounce_notify_verp.o: ../../include/mail_queue.h 269bounce_notify_verp.o: ../../include/msg.h 270bounce_notify_verp.o: ../../include/msg_stats.h 271bounce_notify_verp.o: ../../include/mymalloc.h 272bounce_notify_verp.o: ../../include/name_mask.h 273bounce_notify_verp.o: ../../include/nvtable.h 274bounce_notify_verp.o: ../../include/post_mail.h 275bounce_notify_verp.o: ../../include/rcpt_buf.h 276bounce_notify_verp.o: ../../include/rec_type.h 277bounce_notify_verp.o: ../../include/recipient_list.h 278bounce_notify_verp.o: ../../include/smtputf8.h 279bounce_notify_verp.o: ../../include/stringops.h 280bounce_notify_verp.o: ../../include/sys_defs.h 281bounce_notify_verp.o: ../../include/vbuf.h 282bounce_notify_verp.o: ../../include/verp_sender.h 283bounce_notify_verp.o: ../../include/vstream.h 284bounce_notify_verp.o: ../../include/vstring.h 285bounce_notify_verp.o: bounce_notify_verp.c 286bounce_notify_verp.o: bounce_service.h 287bounce_notify_verp.o: bounce_template.h 288bounce_one_service.o: ../../include/attr.h 289bounce_one_service.o: ../../include/bounce.h 290bounce_one_service.o: ../../include/bounce_log.h 291bounce_one_service.o: ../../include/check_arg.h 292bounce_one_service.o: ../../include/cleanup_user.h 293bounce_one_service.o: ../../include/deliver_request.h 294bounce_one_service.o: ../../include/dsn.h 295bounce_one_service.o: ../../include/dsn_buf.h 296bounce_one_service.o: ../../include/dsn_mask.h 297bounce_one_service.o: ../../include/htable.h 298bounce_one_service.o: ../../include/int_filt.h 299bounce_one_service.o: ../../include/iostuff.h 300bounce_one_service.o: ../../include/mail_addr.h 301bounce_one_service.o: ../../include/mail_error.h 302bounce_one_service.o: ../../include/mail_params.h 303bounce_one_service.o: ../../include/mail_proto.h 304bounce_one_service.o: ../../include/msg.h 305bounce_one_service.o: ../../include/msg_stats.h 306bounce_one_service.o: ../../include/mymalloc.h 307bounce_one_service.o: ../../include/name_mask.h 308bounce_one_service.o: ../../include/nvtable.h 309bounce_one_service.o: ../../include/post_mail.h 310bounce_one_service.o: ../../include/rcpt_buf.h 311bounce_one_service.o: ../../include/rec_type.h 312bounce_one_service.o: ../../include/recipient_list.h 313bounce_one_service.o: ../../include/smtputf8.h 314bounce_one_service.o: ../../include/stringops.h 315bounce_one_service.o: ../../include/sys_defs.h 316bounce_one_service.o: ../../include/vbuf.h 317bounce_one_service.o: ../../include/vstream.h 318bounce_one_service.o: ../../include/vstring.h 319bounce_one_service.o: bounce_one_service.c 320bounce_one_service.o: bounce_service.h 321bounce_one_service.o: bounce_template.h 322bounce_template.o: ../../include/attr.h 323bounce_template.o: ../../include/check_arg.h 324bounce_template.o: ../../include/htable.h 325bounce_template.o: ../../include/iostuff.h 326bounce_template.o: ../../include/is_header.h 327bounce_template.o: ../../include/mac_expand.h 328bounce_template.o: ../../include/mac_parse.h 329bounce_template.o: ../../include/mail_conf.h 330bounce_template.o: ../../include/mail_params.h 331bounce_template.o: ../../include/mail_proto.h 332bounce_template.o: ../../include/midna_domain.h 333bounce_template.o: ../../include/msg.h 334bounce_template.o: ../../include/mymalloc.h 335bounce_template.o: ../../include/nvtable.h 336bounce_template.o: ../../include/split_at.h 337bounce_template.o: ../../include/stringops.h 338bounce_template.o: ../../include/sys_defs.h 339bounce_template.o: ../../include/vbuf.h 340bounce_template.o: ../../include/vstream.h 341bounce_template.o: ../../include/vstring.h 342bounce_template.o: bounce_template.c 343bounce_template.o: bounce_template.h 344bounce_templates.o: ../../include/attr.h 345bounce_templates.o: ../../include/check_arg.h 346bounce_templates.o: ../../include/htable.h 347bounce_templates.o: ../../include/iostuff.h 348bounce_templates.o: ../../include/mail_addr.h 349bounce_templates.o: ../../include/mail_proto.h 350bounce_templates.o: ../../include/msg.h 351bounce_templates.o: ../../include/mymalloc.h 352bounce_templates.o: ../../include/nvtable.h 353bounce_templates.o: ../../include/stringops.h 354bounce_templates.o: ../../include/sys_defs.h 355bounce_templates.o: ../../include/vbuf.h 356bounce_templates.o: ../../include/vstream.h 357bounce_templates.o: ../../include/vstring.h 358bounce_templates.o: ../../include/vstring_vstream.h 359bounce_templates.o: bounce_template.h 360bounce_templates.o: bounce_templates.c 361bounce_trace_service.o: ../../include/attr.h 362bounce_trace_service.o: ../../include/bounce_log.h 363bounce_trace_service.o: ../../include/check_arg.h 364bounce_trace_service.o: ../../include/cleanup_user.h 365bounce_trace_service.o: ../../include/deliver_request.h 366bounce_trace_service.o: ../../include/dsn.h 367bounce_trace_service.o: ../../include/dsn_buf.h 368bounce_trace_service.o: ../../include/dsn_mask.h 369bounce_trace_service.o: ../../include/htable.h 370bounce_trace_service.o: ../../include/int_filt.h 371bounce_trace_service.o: ../../include/iostuff.h 372bounce_trace_service.o: ../../include/mail_addr.h 373bounce_trace_service.o: ../../include/mail_error.h 374bounce_trace_service.o: ../../include/mail_params.h 375bounce_trace_service.o: ../../include/mail_proto.h 376bounce_trace_service.o: ../../include/mail_queue.h 377bounce_trace_service.o: ../../include/msg.h 378bounce_trace_service.o: ../../include/msg_stats.h 379bounce_trace_service.o: ../../include/mymalloc.h 380bounce_trace_service.o: ../../include/name_mask.h 381bounce_trace_service.o: ../../include/nvtable.h 382bounce_trace_service.o: ../../include/post_mail.h 383bounce_trace_service.o: ../../include/rcpt_buf.h 384bounce_trace_service.o: ../../include/rec_type.h 385bounce_trace_service.o: ../../include/recipient_list.h 386bounce_trace_service.o: ../../include/smtputf8.h 387bounce_trace_service.o: ../../include/stringops.h 388bounce_trace_service.o: ../../include/sys_defs.h 389bounce_trace_service.o: ../../include/vbuf.h 390bounce_trace_service.o: ../../include/vstream.h 391bounce_trace_service.o: ../../include/vstring.h 392bounce_trace_service.o: bounce_service.h 393bounce_trace_service.o: bounce_template.h 394bounce_trace_service.o: bounce_trace_service.c 395bounce_warn_service.o: ../../include/attr.h 396bounce_warn_service.o: ../../include/bounce_log.h 397bounce_warn_service.o: ../../include/check_arg.h 398bounce_warn_service.o: ../../include/cleanup_user.h 399bounce_warn_service.o: ../../include/dsn.h 400bounce_warn_service.o: ../../include/dsn_buf.h 401bounce_warn_service.o: ../../include/dsn_mask.h 402bounce_warn_service.o: ../../include/htable.h 403bounce_warn_service.o: ../../include/int_filt.h 404bounce_warn_service.o: ../../include/iostuff.h 405bounce_warn_service.o: ../../include/mail_addr.h 406bounce_warn_service.o: ../../include/mail_error.h 407bounce_warn_service.o: ../../include/mail_params.h 408bounce_warn_service.o: ../../include/mail_proto.h 409bounce_warn_service.o: ../../include/mail_queue.h 410bounce_warn_service.o: ../../include/msg.h 411bounce_warn_service.o: ../../include/mymalloc.h 412bounce_warn_service.o: ../../include/name_mask.h 413bounce_warn_service.o: ../../include/nvtable.h 414bounce_warn_service.o: ../../include/post_mail.h 415bounce_warn_service.o: ../../include/rcpt_buf.h 416bounce_warn_service.o: ../../include/rec_type.h 417bounce_warn_service.o: ../../include/recipient_list.h 418bounce_warn_service.o: ../../include/smtputf8.h 419bounce_warn_service.o: ../../include/stringops.h 420bounce_warn_service.o: ../../include/sys_defs.h 421bounce_warn_service.o: ../../include/vbuf.h 422bounce_warn_service.o: ../../include/vstream.h 423bounce_warn_service.o: ../../include/vstring.h 424bounce_warn_service.o: bounce_service.h 425bounce_warn_service.o: bounce_template.h 426bounce_warn_service.o: bounce_warn_service.c 427