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-str: \ 20load auto-str.o substdio.a error.a str.a 21 ./load auto-str substdio.a error.a str.a 22 23auto-str.o: \ 24compile auto-str.c substdio.h readwrite.h exit.h 25 ./compile auto-str.c 26 27auto_home.c: \ 28auto-str conf-home 29 ./auto-str auto_home `head -1 conf-home` > auto_home.c 30 31auto_home.o: \ 32compile auto_home.c 33 ./compile auto_home.c 34 35auto_home_stage.c: \ 36auto-str conf-stage 37 ./auto-str auto_home `head -1 conf-stage` > auto_home_stage.c 38 39auto_home_stage.o: \ 40compile auto_home_stage.c 41 ./compile auto_home_stage.c 42 43byte_chr.o: \ 44compile byte_chr.c byte.h 45 ./compile byte_chr.c 46 47byte_copy.o: \ 48compile byte_copy.c byte.h 49 ./compile byte_copy.c 50 51byte_cr.o: \ 52compile byte_cr.c byte.h 53 ./compile byte_cr.c 54 55byte_diff.o: \ 56compile byte_diff.c byte.h 57 ./compile byte_diff.c 58 59byte_rchr.o: \ 60compile byte_rchr.c byte.h 61 ./compile byte_rchr.c 62 63byte_zero.o: \ 64compile byte_zero.c byte.h 65 ./compile byte_zero.c 66 67caldate_fmjd.o: \ 68compile caldate_fmjd.c caldate.h 69 ./compile caldate_fmjd.c 70 71caltime_utc.o: \ 72compile caltime_utc.c tai.h uint64.h leapsecs.h caldate.h caltime.h \ 73caldate.h 74 ./compile caltime_utc.c 75 76case.a: \ 77makelib case_diffs.o case_lowerb.o case_startb.o 78 ./makelib case.a case_diffs.o case_lowerb.o case_startb.o 79 80case_diffs.o: \ 81compile case_diffs.c case.h 82 ./compile case_diffs.c 83 84case_lowerb.o: \ 85compile case_lowerb.c case.h 86 ./compile case_lowerb.c 87 88case_startb.o: \ 89compile case_startb.c case.h 90 ./compile case_startb.c 91 92check: \ 93it instcheck 94 ./instcheck 95 96chkshsgr: \ 97load chkshsgr.o 98 ./load chkshsgr 99 100chkshsgr.o: \ 101compile chkshsgr.c exit.h 102 ./compile chkshsgr.c 103 104choose: \ 105warn-auto.sh choose.sh conf-home 106 cat warn-auto.sh choose.sh \ 107 | sed s}HOME}"`head -1 conf-home`"}g \ 108 > choose 109 chmod 755 choose 110 111compile: \ 112warn-auto.sh conf-cc 113 ( cat warn-auto.sh; \ 114 echo exec "`head -1 conf-cc`" '-c $${1+"$$@"}' \ 115 ) > compile 116 chmod 755 compile 117 118configure: \ 119load configure.o auto_home.o strerr.a substdio.a error.a open.a str.a 120 ./load configure auto_home.o strerr.a substdio.a error.a \ 121 open.a str.a 122 123configure.o: \ 124compile configure.c hasdevtcp.h strerr.h substdio.h open.h \ 125readwrite.h exit.h auto_home.h 126 ./compile configure.c 127 128direntry.h: \ 129choose compile trydrent.c direntry.h1 direntry.h2 130 ./choose c trydrent direntry.h1 direntry.h2 > direntry.h 131 132env.a: \ 133makelib env.o 134 ./makelib env.a env.o 135 136env.o: \ 137compile env.c str.h env.h 138 ./compile env.c 139 140error.a: \ 141makelib error.o error_str.o error_temp.o 142 ./makelib error.a error.o error_str.o error_temp.o 143 144error.o: \ 145compile error.c error.h 146 ./compile error.c 147 148error_str.o: \ 149compile error_str.c error.h 150 ./compile error_str.c 151 152error_temp.o: \ 153compile error_temp.c error.h 154 ./compile error_temp.c 155 156fetch.o: \ 157compile fetch.c substdio.h timeoutwrite.h error.h exit.h direntry.h \ 158fmt.h fetch.h 159 ./compile fetch.c 160 161file.o: \ 162compile file.c subfd.h substdio.h error.h file.h tai.h uint64.h \ 163byte.h str.h tai.h env.h 164 ./compile file.c 165 166filetype.o: \ 167compile filetype.c filetype.h stralloc.h gen_alloc.h str.h 168 ./compile filetype.c 169 170fmt_str.o: \ 171compile fmt_str.c fmt.h 172 ./compile fmt_str.c 173 174fmt_uint.o: \ 175compile fmt_uint.c fmt.h 176 ./compile fmt_uint.c 177 178fmt_ulong.o: \ 179compile fmt_ulong.c fmt.h 180 ./compile fmt_ulong.c 181 182fmt_xlong.o: \ 183compile fmt_xlong.c fmt.h 184 ./compile fmt_xlong.c 185 186fs.a: \ 187makelib fmt_str.o fmt_uint.o fmt_ulong.o fmt_xlong.o scan_ulong.o 188 ./makelib fs.a fmt_str.o fmt_uint.o fmt_ulong.o \ 189 fmt_xlong.o scan_ulong.o 190 191ftpd: \ 192load ftpd.o main.o prot.o pathdecode.o file.o fetch.o ip.o \ 193timeoutread.o timeoutwrite.o timeoutconn.o timeoutaccept.o ndelay.a \ 194env.a sig.a substdio.a stralloc.a alloc.a error.a open.a case.a str.a \ 195fs.a socket.lib 196 ./load ftpd main.o prot.o pathdecode.o file.o fetch.o ip.o \ 197 timeoutread.o timeoutwrite.o timeoutconn.o timeoutaccept.o \ 198 ndelay.a env.a sig.a substdio.a stralloc.a alloc.a error.a \ 199 open.a case.a str.a fs.a `cat socket.lib` 200 201ftpd.o: \ 202compile ftpd.c timeoutconn.h timeoutaccept.h timeoutread.h \ 203timeoutwrite.h substdio.h fetch.h pathdecode.h stralloc.h gen_alloc.h \ 204file.h tai.h uint64.h sig.h tai.h stralloc.h str.h error.h case.h \ 205byte.h env.h fmt.h scan.h ip.h 206 ./compile ftpd.c 207 208getln.a: \ 209makelib getln.o getln2.o 210 ./makelib getln.a getln.o getln2.o 211 212getln.o: \ 213compile getln.c substdio.h byte.h stralloc.h gen_alloc.h getln.h 214 ./compile getln.c 215 216getln2.o: \ 217compile getln2.c substdio.h stralloc.h gen_alloc.h byte.h getln.h 218 ./compile getln2.c 219 220hasdevtcp.h: \ 221systype hasdevtcp.h1 hasdevtcp.h2 222 ( case "`cat systype`" in \ 223 sunos-5.*) cat hasdevtcp.h2 ;; \ 224 *) cat hasdevtcp.h1 ;; \ 225 esac ) > hasdevtcp.h 226 227hassgact.h: \ 228choose compile load trysgact.c hassgact.h1 hassgact.h2 229 ./choose cl trysgact hassgact.h1 hassgact.h2 > hassgact.h 230 231hassgprm.h: \ 232choose compile load trysgprm.c hassgprm.h1 hassgprm.h2 233 ./choose cl trysgprm hassgprm.h1 hassgprm.h2 > hassgprm.h 234 235hasshsgr.h: \ 236choose compile load tryshsgr.c hasshsgr.h1 hasshsgr.h2 chkshsgr \ 237warn-shsgr 238 ./chkshsgr || ( cat warn-shsgr; exit 1 ) 239 ./choose clr tryshsgr hasshsgr.h1 hasshsgr.h2 > hasshsgr.h 240 241hier.o: \ 242compile hier.c auto_home_stage.h 243 ./compile hier.c 244 245httpd: \ 246load httpd.o main.o pathdecode.o file.o filetype.o httpdate.o \ 247percent.o prot.o timeoutread.o timeoutwrite.o libtai.a case.a getln.a \ 248stralloc.a alloc.a substdio.a error.a open.a sig.a env.a str.a fs.a \ 249socket.lib 250 ./load httpd main.o pathdecode.o file.o filetype.o \ 251 httpdate.o percent.o prot.o timeoutread.o timeoutwrite.o \ 252 libtai.a case.a getln.a stralloc.a alloc.a substdio.a \ 253 error.a open.a sig.a env.a str.a fs.a `cat socket.lib` 254 255httpd.o: \ 256compile httpd.c pathdecode.h stralloc.h gen_alloc.h file.h tai.h \ 257uint64.h filetype.h stralloc.h percent.h stralloc.h stralloc.h sig.h \ 258exit.h fmt.h case.h str.h tai.h httpdate.h stralloc.h tai.h \ 259timeoutread.h timeoutwrite.h substdio.h error.h getln.h 260 ./compile httpd.c 261 262httpdate.o: \ 263compile httpdate.c caltime.h caldate.h httpdate.h stralloc.h \ 264gen_alloc.h tai.h uint64.h 265 ./compile httpdate.c 266 267install: \ 268load install.o hier.o auto_home_stage.o strerr.a substdio.a open.a error.a \ 269str.a 270 ./load install hier.o auto_home_stage.o strerr.a substdio.a \ 271 open.a error.a str.a 272 273install.o: \ 274compile install.c substdio.h strerr.h error.h open.h readwrite.h \ 275exit.h 276 ./compile install.c 277 278instcheck: \ 279load instcheck.o hier.o auto_home_stage.o strerr.a substdio.a error.a str.a 280 ./load instcheck hier.o auto_home_stage.o strerr.a substdio.a \ 281 error.a str.a 282 283instcheck.o: \ 284compile instcheck.c strerr.h error.h readwrite.h exit.h 285 ./compile instcheck.c 286 287ip.o: \ 288compile ip.c fmt.h scan.h ip.h 289 ./compile ip.c 290 291it: \ 292prog install instcheck 293 294leapsecs_init.o: \ 295compile leapsecs_init.c leapsecs.h 296 ./compile leapsecs_init.c 297 298leapsecs_read.o: \ 299compile leapsecs_read.c tai.h uint64.h leapsecs.h 300 ./compile leapsecs_read.c 301 302leapsecs_sub.o: \ 303compile leapsecs_sub.c leapsecs.h tai.h uint64.h 304 ./compile leapsecs_sub.c 305 306libtai.a: \ 307makelib caldate_fmjd.o caltime_utc.o leapsecs_init.o leapsecs_read.o \ 308leapsecs_sub.o tai_now.o tai_sub.o tai_unpack.o 309 ./makelib libtai.a caldate_fmjd.o caltime_utc.o \ 310 leapsecs_init.o leapsecs_read.o leapsecs_sub.o tai_now.o \ 311 tai_sub.o tai_unpack.o 312 313load: \ 314warn-auto.sh conf-ld 315 ( cat warn-auto.sh; \ 316 echo 'main="$$1"; shift'; \ 317 echo exec "`head -1 conf-ld`" \ 318 '-o "$$main" "$$main".o $${1+"$$@"}' \ 319 ) > load 320 chmod 755 load 321 322main.o: \ 323compile main.c env.h exit.h scan.h 324 ./compile main.c 325 326makelib: \ 327warn-auto.sh systype 328 ( cat warn-auto.sh; \ 329 echo 'main="$$1"; shift'; \ 330 echo 'rm -f "$$main"'; \ 331 echo 'ar cr "$$main" $${1+"$$@"}'; \ 332 case "`cat systype`" in \ 333 sunos-5.*) ;; \ 334 unix_sv*) ;; \ 335 irix64-*) ;; \ 336 irix-*) ;; \ 337 dgux-*) ;; \ 338 hp-ux-*) ;; \ 339 sco*) ;; \ 340 *) echo 'ranlib "$$main"' ;; \ 341 esac \ 342 ) > makelib 343 chmod 755 makelib 344 345ndelay.a: \ 346makelib ndelay_on.o ndelay_off.o 347 ./makelib ndelay.a ndelay_on.o ndelay_off.o 348 349ndelay_off.o: \ 350compile ndelay_off.c ndelay.h 351 ./compile ndelay_off.c 352 353ndelay_on.o: \ 354compile ndelay_on.c ndelay.h 355 ./compile ndelay_on.c 356 357open.a: \ 358makelib open_read.o open_trunc.o 359 ./makelib open.a open_read.o open_trunc.o 360 361open_read.o: \ 362compile open_read.c open.h 363 ./compile open_read.c 364 365open_trunc.o: \ 366compile open_trunc.c open.h 367 ./compile open_trunc.c 368 369pathdecode.o: \ 370compile pathdecode.c pathdecode.h stralloc.h gen_alloc.h 371 ./compile pathdecode.c 372 373percent.o: \ 374compile percent.c percent.h stralloc.h gen_alloc.h 375 ./compile percent.c 376 377prog: \ 378configure httpd ftpd rts utime 379 380prot.o: \ 381compile prot.c hasshsgr.h prot.h 382 ./compile prot.c 383 384rts: \ 385warn-auto.sh rts.sh conf-home 386 cat warn-auto.sh rts.sh \ 387 | sed s}HOME}"`head -1 conf-home`"}g \ 388 > rts 389 chmod 755 rts 390 391scan_ulong.o: \ 392compile scan_ulong.c scan.h 393 ./compile scan_ulong.c 394 395select.h: \ 396choose compile trysysel.c select.h1 select.h2 397 ./choose c trysysel select.h1 select.h2 > select.h 398 399setup: \ 400it install 401 ./install 402 403sig.a: \ 404makelib sig_block.o sig_catch.o sig_pause.o sig_pipe.o 405 ./makelib sig.a sig_block.o sig_catch.o sig_pause.o \ 406 sig_pipe.o 407 408sig_block.o: \ 409compile sig_block.c sig.h hassgprm.h 410 ./compile sig_block.c 411 412sig_catch.o: \ 413compile sig_catch.c sig.h hassgact.h 414 ./compile sig_catch.c 415 416sig_pause.o: \ 417compile sig_pause.c sig.h hassgprm.h 418 ./compile sig_pause.c 419 420sig_pipe.o: \ 421compile sig_pipe.c sig.h 422 ./compile sig_pipe.c 423 424socket.lib: \ 425trylsock.c compile load 426 ( ( ./compile trylsock.c && \ 427 ./load trylsock -lsocket -lnsl ) >/dev/null 2>&1 \ 428 && echo -lsocket -lnsl || exit 0 ) > socket.lib 429 rm -f trylsock.o trylsock 430 431str.a: \ 432makelib byte_chr.o byte_copy.o byte_cr.o byte_diff.o byte_rchr.o \ 433byte_zero.o str_chr.o str_diff.o str_len.o str_rchr.o str_start.o 434 ./makelib str.a byte_chr.o byte_copy.o byte_cr.o \ 435 byte_diff.o byte_rchr.o byte_zero.o str_chr.o str_diff.o \ 436 str_len.o str_rchr.o str_start.o 437 438str_chr.o: \ 439compile str_chr.c str.h 440 ./compile str_chr.c 441 442str_diff.o: \ 443compile str_diff.c str.h 444 ./compile str_diff.c 445 446str_len.o: \ 447compile str_len.c str.h 448 ./compile str_len.c 449 450str_rchr.o: \ 451compile str_rchr.c str.h 452 ./compile str_rchr.c 453 454str_start.o: \ 455compile str_start.c str.h 456 ./compile str_start.c 457 458stralloc.a: \ 459makelib stralloc_cat.o stralloc_catb.o stralloc_cats.o \ 460stralloc_copy.o stralloc_eady.o stralloc_opyb.o stralloc_opys.o \ 461stralloc_pend.o stralloc_num.o 462 ./makelib stralloc.a stralloc_cat.o stralloc_catb.o \ 463 stralloc_cats.o stralloc_copy.o stralloc_eady.o \ 464 stralloc_opyb.o stralloc_opys.o stralloc_pend.o \ 465 stralloc_num.o 466 467stralloc_cat.o: \ 468compile stralloc_cat.c byte.h stralloc.h gen_alloc.h 469 ./compile stralloc_cat.c 470 471stralloc_catb.o: \ 472compile stralloc_catb.c stralloc.h gen_alloc.h byte.h 473 ./compile stralloc_catb.c 474 475stralloc_cats.o: \ 476compile stralloc_cats.c byte.h str.h stralloc.h gen_alloc.h 477 ./compile stralloc_cats.c 478 479stralloc_copy.o: \ 480compile stralloc_copy.c byte.h stralloc.h gen_alloc.h 481 ./compile stralloc_copy.c 482 483stralloc_eady.o: \ 484compile stralloc_eady.c alloc.h stralloc.h gen_alloc.h \ 485gen_allocdefs.h 486 ./compile stralloc_eady.c 487 488stralloc_num.o: \ 489compile stralloc_num.c stralloc.h gen_alloc.h 490 ./compile stralloc_num.c 491 492stralloc_opyb.o: \ 493compile stralloc_opyb.c stralloc.h gen_alloc.h byte.h 494 ./compile stralloc_opyb.c 495 496stralloc_opys.o: \ 497compile stralloc_opys.c byte.h str.h stralloc.h gen_alloc.h 498 ./compile stralloc_opys.c 499 500stralloc_pend.o: \ 501compile stralloc_pend.c alloc.h stralloc.h gen_alloc.h \ 502gen_allocdefs.h 503 ./compile stralloc_pend.c 504 505strerr.a: \ 506makelib strerr_die.o strerr_sys.o 507 ./makelib strerr.a strerr_die.o strerr_sys.o 508 509strerr_die.o: \ 510compile strerr_die.c substdio.h subfd.h substdio.h exit.h strerr.h 511 ./compile strerr_die.c 512 513strerr_sys.o: \ 514compile strerr_sys.c error.h strerr.h 515 ./compile strerr_sys.c 516 517subfderr.o: \ 518compile subfderr.c readwrite.h substdio.h subfd.h substdio.h 519 ./compile subfderr.c 520 521substdi.o: \ 522compile substdi.c substdio.h byte.h error.h 523 ./compile substdi.c 524 525substdio.a: \ 526makelib substdio.o substdi.o substdo.o substdio_copy.o subfderr.o 527 ./makelib substdio.a substdio.o substdi.o substdo.o \ 528 substdio_copy.o subfderr.o 529 530substdio.o: \ 531compile substdio.c substdio.h 532 ./compile substdio.c 533 534substdio_copy.o: \ 535compile substdio_copy.c substdio.h 536 ./compile substdio_copy.c 537 538substdo.o: \ 539compile substdo.c substdio.h str.h byte.h error.h 540 ./compile substdo.c 541 542systype: \ 543find-systype.sh conf-cc conf-ld trycpp.c 544 ( cat warn-auto.sh; \ 545 echo CC=\'`head -1 conf-cc`\'; \ 546 echo LD=\'`head -1 conf-ld`\'; \ 547 cat find-systype.sh; \ 548 ) | sh > systype 549 550tai_now.o: \ 551compile tai_now.c tai.h uint64.h 552 ./compile tai_now.c 553 554tai_sub.o: \ 555compile tai_sub.c tai.h uint64.h 556 ./compile tai_sub.c 557 558tai_unpack.o: \ 559compile tai_unpack.c tai.h uint64.h 560 ./compile tai_unpack.c 561 562timeoutaccept.o: \ 563compile timeoutaccept.c timeoutaccept.h ndelay.h select.h error.h \ 564readwrite.h 565 ./compile timeoutaccept.c 566 567timeoutconn.o: \ 568compile timeoutconn.c ndelay.h select.h error.h readwrite.h ip.h \ 569byte.h timeoutconn.h 570 ./compile timeoutconn.c 571 572timeoutread.o: \ 573compile timeoutread.c timeoutread.h select.h error.h readwrite.h 574 ./compile timeoutread.c 575 576timeoutwrite.o: \ 577compile timeoutwrite.c timeoutwrite.h select.h error.h readwrite.h 578 ./compile timeoutwrite.c 579 580uint64.h: \ 581choose compile load tryulong64.c uint64.h1 uint64.h2 582 ./choose clr tryulong64 uint64.h1 uint64.h2 > uint64.h 583 584utime: \ 585load utime.o fs.a 586 ./load utime fs.a 587 588utime.o: \ 589compile utime.c scan.h exit.h 590 ./compile utime.c 591