1# Don't edit Makefile! Use conf-* for configuration. 2 3SHELL=/bin/sh 4 5default: it 6 7alloc.a: \ 8makelib alloc.o alloc_re.o 9 ./makelib alloc.a alloc.o alloc_re.o 10 11alloc.o: \ 12compile alloc.c alloc.h error.h 13 ./compile alloc.c 14 15alloc_re.o: \ 16compile alloc_re.c alloc.h byte.h 17 ./compile alloc_re.c 18 19auto-ccld.sh: \ 20conf-cc conf-ld warn-auto.sh 21 ( cat warn-auto.sh; \ 22 echo CC=\'`head -1 conf-cc`\'; \ 23 echo LD=\'`head -1 conf-ld`\' \ 24 ) > auto-ccld.sh 25 26auto-str: \ 27load auto-str.o substdio.a error.a str.a 28 ./load auto-str substdio.a error.a str.a 29 30auto-str.o: \ 31compile auto-str.c substdio.h readwrite.h exit.h 32 ./compile auto-str.c 33 34auto_qmail.c: \ 35auto-str conf-qmail 36 ./auto-str auto_qmail `head -1 conf-qmail` > auto_qmail.c 37 38auto_qmail.o: \ 39compile auto_qmail.c 40 ./compile auto_qmail.c 41 42byte_chr.o: \ 43compile byte_chr.c byte.h 44 ./compile byte_chr.c 45 46byte_copy.o: \ 47compile byte_copy.c byte.h 48 ./compile byte_copy.c 49 50byte_cr.o: \ 51compile byte_cr.c byte.h 52 ./compile byte_cr.c 53 54case.a: \ 55makelib case_diffb.o 56 ./makelib case.a case_diffb.o 57 58case_diffb.o: \ 59compile case_diffb.c case.h 60 ./compile case_diffb.c 61 62check: \ 63it instcheck 64 ./instcheck 65 66compile: \ 67make-compile warn-auto.sh systype 68 ( cat warn-auto.sh; ./make-compile "`cat systype`" ) > \ 69 compile 70 chmod 755 compile 71 72control.o: \ 73compile control.c readwrite.h open.h getln.h stralloc.h gen_alloc.h \ 74substdio.h error.h control.h alloc.h scan.h 75 ./compile control.c 76 77dot-forward: \ 78load dot-forward.o control.o qmail.o auto_qmail.o token822.o env.a \ 79getln.a getopt.a strerr.a error.a substdio.a stralloc.a alloc.a \ 80case.a str.a sig.a seek.a open.a wait.a fd.a fs.a 81 ./load dot-forward control.o qmail.o auto_qmail.o \ 82 token822.o env.a getln.a getopt.a strerr.a error.a \ 83 substdio.a stralloc.a alloc.a case.a str.a sig.a seek.a \ 84 open.a wait.a fd.a fs.a 85 86dot-forward.0: \ 87dot-forward.1 88 nroff -man dot-forward.1 > dot-forward.0 89 90dot-forward.o: \ 91compile dot-forward.c sgetopt.h subgetopt.h substdio.h readwrite.h \ 92stralloc.h gen_alloc.h getln.h strerr.h error.h exit.h open.h wait.h \ 93seek.h env.h str.h fmt.h token822.h gen_alloc.h control.h qmail.h \ 94substdio.h auto_qmail.h 95 ./compile dot-forward.c 96 97env.a: \ 98makelib envread.o 99 ./makelib env.a envread.o 100 101envread.o: \ 102compile envread.c env.h str.h 103 ./compile envread.c 104 105error.a: \ 106makelib error.o error_str.o 107 ./makelib error.a error.o error_str.o 108 109error.o: \ 110compile error.c error.h 111 ./compile error.c 112 113error_str.o: \ 114compile error_str.c error.h 115 ./compile error_str.c 116 117fd.a: \ 118makelib fd_copy.o fd_move.o 119 ./makelib fd.a fd_copy.o fd_move.o 120 121fd_copy.o: \ 122compile fd_copy.c fd.h 123 ./compile fd_copy.c 124 125fd_move.o: \ 126compile fd_move.c fd.h 127 ./compile fd_move.c 128 129find-systype: \ 130find-systype.sh auto-ccld.sh 131 cat auto-ccld.sh find-systype.sh > find-systype 132 chmod 755 find-systype 133 134fmt_ulong.o: \ 135compile fmt_ulong.c fmt.h 136 ./compile fmt_ulong.c 137 138fork.h: \ 139compile load tryvfork.c fork.h1 fork.h2 140 ( ( ./compile tryvfork.c && ./load tryvfork ) >/dev/null \ 141 2>&1 \ 142 && cat fork.h2 || cat fork.h1 ) > fork.h 143 rm -f tryvfork.o tryvfork 144 145fs.a: \ 146makelib fmt_ulong.o scan_ulong.o 147 ./makelib fs.a fmt_ulong.o scan_ulong.o 148 149getln.a: \ 150makelib getln.o getln2.o 151 ./makelib getln.a getln.o getln2.o 152 153getln.o: \ 154compile getln.c substdio.h byte.h stralloc.h gen_alloc.h getln.h 155 ./compile getln.c 156 157getln2.o: \ 158compile getln2.c substdio.h stralloc.h gen_alloc.h byte.h getln.h 159 ./compile getln2.c 160 161getopt.a: \ 162makelib subgetopt.o sgetopt.o 163 ./makelib getopt.a subgetopt.o sgetopt.o 164 165hassgact.h: \ 166trysgact.c compile load 167 ( ( ./compile trysgact.c && ./load trysgact ) >/dev/null \ 168 2>&1 \ 169 && echo \#define HASSIGACTION 1 || exit 0 ) > hassgact.h 170 rm -f trysgact.o trysgact 171 172haswaitp.h: \ 173trywaitp.c compile load 174 ( ( ./compile trywaitp.c && ./load trywaitp ) >/dev/null \ 175 2>&1 \ 176 && echo \#define HASWAITPID 1 || exit 0 ) > haswaitp.h 177 rm -f trywaitp.o trywaitp 178 179hier.o: \ 180compile hier.c auto_qmail.h 181 ./compile hier.c 182 183install: \ 184load install.o hier.o auto_qmail.o strerr.a substdio.a error.a open.a \ 185str.a 186 ./load install hier.o auto_qmail.o strerr.a substdio.a \ 187 error.a open.a str.a 188 189install.o: \ 190compile install.c substdio.h strerr.h error.h open.h readwrite.h \ 191exit.h 192 ./compile install.c 193 194instcheck: \ 195load instcheck.o hier.o auto_qmail.o strerr.a substdio.a error.a \ 196str.a 197 ./load instcheck hier.o auto_qmail.o strerr.a substdio.a \ 198 error.a str.a 199 200instcheck.o: \ 201compile instcheck.c strerr.h error.h readwrite.h exit.h 202 ./compile instcheck.c 203 204it: \ 205prog man 206 207load: \ 208make-load warn-auto.sh systype 209 ( cat warn-auto.sh; ./make-load "`cat systype`" ) > load 210 chmod 755 load 211 212make-compile: \ 213make-compile.sh auto-ccld.sh 214 cat auto-ccld.sh make-compile.sh > make-compile 215 chmod 755 make-compile 216 217make-load: \ 218make-load.sh auto-ccld.sh 219 cat auto-ccld.sh make-load.sh > make-load 220 chmod 755 make-load 221 222make-makelib: \ 223make-makelib.sh auto-ccld.sh 224 cat auto-ccld.sh make-makelib.sh > make-makelib 225 chmod 755 make-makelib 226 227makelib: \ 228make-makelib warn-auto.sh systype 229 ( cat warn-auto.sh; ./make-makelib "`cat systype`" ) > \ 230 makelib 231 chmod 755 makelib 232 233man: \ 234dot-forward.0 235 236open.a: \ 237makelib open_read.o open_trunc.o 238 ./makelib open.a open_read.o open_trunc.o 239 240open_read.o: \ 241compile open_read.c open.h 242 ./compile open_read.c 243 244open_trunc.o: \ 245compile open_trunc.c open.h 246 ./compile open_trunc.c 247 248prog: \ 249dot-forward 250 251qmail.o: \ 252compile qmail.c substdio.h readwrite.h wait.h exit.h fork.h fd.h \ 253qmail.h substdio.h auto_qmail.h 254 ./compile qmail.c 255 256scan_ulong.o: \ 257compile scan_ulong.c scan.h 258 ./compile scan_ulong.c 259 260seek.a: \ 261makelib seek_set.o 262 ./makelib seek.a seek_set.o 263 264seek_set.o: \ 265compile seek_set.c seek.h 266 ./compile seek_set.c 267 268setup: \ 269it install 270 ./install 271 272sgetopt.o: \ 273compile sgetopt.c substdio.h subfd.h substdio.h sgetopt.h subgetopt.h \ 274subgetopt.h 275 ./compile sgetopt.c 276 277sig.a: \ 278makelib sig_catch.o sig_pipe.o 279 ./makelib sig.a sig_catch.o sig_pipe.o 280 281sig_catch.o: \ 282compile sig_catch.c sig.h hassgact.h 283 ./compile sig_catch.c 284 285sig_pipe.o: \ 286compile sig_pipe.c sig.h 287 ./compile sig_pipe.c 288 289str.a: \ 290makelib str_len.o str_diffn.o byte_chr.o byte_copy.o byte_cr.o 291 ./makelib str.a str_len.o str_diffn.o byte_chr.o \ 292 byte_copy.o byte_cr.o 293 294str_diffn.o: \ 295compile str_diffn.c str.h 296 ./compile str_diffn.c 297 298str_len.o: \ 299compile str_len.c str.h 300 ./compile str_len.c 301 302stralloc.a: \ 303makelib stralloc_eady.o stralloc_pend.o stralloc_copy.o \ 304stralloc_opys.o stralloc_opyb.o stralloc_cat.o stralloc_cats.o \ 305stralloc_catb.o 306 ./makelib stralloc.a stralloc_eady.o stralloc_pend.o \ 307 stralloc_copy.o stralloc_opys.o stralloc_opyb.o \ 308 stralloc_cat.o stralloc_cats.o stralloc_catb.o 309 310stralloc_cat.o: \ 311compile stralloc_cat.c byte.h stralloc.h gen_alloc.h 312 ./compile stralloc_cat.c 313 314stralloc_catb.o: \ 315compile stralloc_catb.c stralloc.h gen_alloc.h byte.h 316 ./compile stralloc_catb.c 317 318stralloc_cats.o: \ 319compile stralloc_cats.c byte.h str.h stralloc.h gen_alloc.h 320 ./compile stralloc_cats.c 321 322stralloc_copy.o: \ 323compile stralloc_copy.c byte.h stralloc.h gen_alloc.h 324 ./compile stralloc_copy.c 325 326stralloc_eady.o: \ 327compile stralloc_eady.c alloc.h stralloc.h gen_alloc.h \ 328gen_allocdefs.h 329 ./compile stralloc_eady.c 330 331stralloc_opyb.o: \ 332compile stralloc_opyb.c stralloc.h gen_alloc.h byte.h 333 ./compile stralloc_opyb.c 334 335stralloc_opys.o: \ 336compile stralloc_opys.c byte.h str.h stralloc.h gen_alloc.h 337 ./compile stralloc_opys.c 338 339stralloc_pend.o: \ 340compile stralloc_pend.c alloc.h stralloc.h gen_alloc.h \ 341gen_allocdefs.h 342 ./compile stralloc_pend.c 343 344strerr.a: \ 345makelib strerr_sys.o strerr_die.o 346 ./makelib strerr.a strerr_sys.o strerr_die.o 347 348strerr_die.o: \ 349compile strerr_die.c substdio.h subfd.h substdio.h exit.h strerr.h 350 ./compile strerr_die.c 351 352strerr_sys.o: \ 353compile strerr_sys.c error.h strerr.h 354 ./compile strerr_sys.c 355 356subfderr.o: \ 357compile subfderr.c readwrite.h substdio.h subfd.h substdio.h 358 ./compile subfderr.c 359 360subgetopt.o: \ 361compile subgetopt.c subgetopt.h 362 ./compile subgetopt.c 363 364substdi.o: \ 365compile substdi.c substdio.h byte.h error.h 366 ./compile substdi.c 367 368substdio.a: \ 369makelib substdio.o substdi.o substdo.o subfderr.o substdio_copy.o 370 ./makelib substdio.a substdio.o substdi.o substdo.o \ 371 subfderr.o substdio_copy.o 372 373substdio.o: \ 374compile substdio.c substdio.h 375 ./compile substdio.c 376 377substdio_copy.o: \ 378compile substdio_copy.c substdio.h 379 ./compile substdio_copy.c 380 381substdo.o: \ 382compile substdo.c substdio.h str.h byte.h error.h 383 ./compile substdo.c 384 385systype: \ 386find-systype trycpp.c 387 ./find-systype > systype 388 389token822.o: \ 390compile token822.c stralloc.h gen_alloc.h alloc.h str.h token822.h \ 391gen_alloc.h gen_allocdefs.h 392 ./compile token822.c 393 394wait.a: \ 395makelib wait_pid.o 396 ./makelib wait.a wait_pid.o 397 398wait_pid.o: \ 399compile wait_pid.c error.h haswaitp.h 400 ./compile wait_pid.c 401