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