diff options
author | Gerrit Pape <pape@smarden.org> | 2002-05-18 17:30:16 +0000 |
---|---|---|
committer | Gerrit Pape <pape@smarden.org> | 2002-05-18 17:30:16 +0000 |
commit | 9cc46dc719566d4665f2e584cbd0b3b250d4b7d9 (patch) | |
tree | 3102f6853180830c6ad48d40c3e5fa5ef3d21d49 /src/Makefile | |
parent | a3b07af346564647eb28477c80cc0d1b6929246b (diff) | |
download | runit-9cc46dc719566d4665f2e584cbd0b3b250d4b7d9.tar.gz runit-9cc46dc719566d4665f2e584cbd0b3b250d4b7d9.tar.xz runit-9cc46dc719566d4665f2e584cbd0b3b250d4b7d9.zip |
* src/: include public domain sources to build byte.a, unix.a, time.a:
runit builds without having daemontools' sources installed. 0.3.3.
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 382 |
1 files changed, 365 insertions, 17 deletions
diff --git a/src/Makefile b/src/Makefile index 2bdaad0..8b1eba2 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,31 +1,379 @@ -DESTDIR= +IT=runit runit-init svwaitup svwaitdown -CC=./support/compile -LD=./support/load +default: $(IT) -CFLAGS=-Isupport +runit: load runit.o unix.a byte.a + ./load runit unix.a byte.a -static -all: runit runit-init svwaitup svwaitdown +runit-init: load runit-init.o unix.a byte.a + ./load runit-init unix.a byte.a -static -runit: djb-publicdomain runit.o - $(LD) runit support/unix.a support/byte.a -static +svwaitup: load svwaitup.o unix.a byte.a time.a + ./load svwaitup unix.a byte.a time.a -runit-init: djb-publicdomain runit-init.o - $(LD) runit-init support/unix.a support/byte.a -static +svwaitdown: load svwaitdown.o unix.a byte.a time.a + ./load svwaitdown unix.a byte.a time.a -svwaitup: djb-publicdomain svwaitup.o - $(LD) svwaitup support/unix.a support/byte.a support/time.a +runit.o: compile runit.c iopause.h uint64.h + ./compile runit.c -svwaitdown: djb-publicdomain svwaitdown.o - $(LD) svwaitdown support/unix.a support/byte.a support/time.a +runit-init.o: compile runit-init.c + ./compile runit-init.c -djb-publicdomain: - ( cd support ; make ) +svwaitup.o: compile svwaitup.c uint64.h + ./compile svwaitup.c + +svwaitdown.o: compile svwaitdown.c uint64.h + ./compile svwaitdown.c clean: find . -name \*~ -exec rm -f {} \; find . -name .??*~ -exec rm -f {} \; find . -name \#?* -exec rm -f {} \; - if test -h support; \ - then ( cd support ; $(MAKE) clean ); fi rm -f `cat TARGETS` + +alloc.o: alloc.c alloc.h compile error.h + ./compile alloc.c + +alloc_re.o: alloc.h alloc_re.c byte.h compile + ./compile alloc_re.c + +buffer.o: buffer.c buffer.h compile + ./compile buffer.c + +buffer_0.o: buffer.h buffer_0.c compile + ./compile buffer_0.c + +buffer_1.o: buffer.h buffer_1.c compile + ./compile buffer_1.c + +buffer_2.o: buffer.h buffer_2.c compile + ./compile buffer_2.c + +buffer_get.o: buffer.h buffer_get.c byte.h compile error.h + ./compile buffer_get.c + +buffer_put.o: buffer.h buffer_put.c byte.h compile error.h str.h + ./compile buffer_put.c + +buffer_read.o: buffer.h buffer_read.c compile + ./compile buffer_read.c + +buffer_write.o: buffer.h buffer_write.c compile + ./compile buffer_write.c + +byte.a: byte_chr.o byte_copy.o byte_cr.o byte_diff.o byte_rchr.o \ +fmt_uint.o fmt_uint0.o fmt_ulong.o makelib scan_ulong.o str_chr.o \ +str_diff.o str_len.o str_start.o + ./makelib byte.a byte_chr.o byte_copy.o byte_cr.o byte_diff.o \ + byte_rchr.o fmt_uint.o fmt_uint0.o fmt_ulong.o scan_ulong.o str_chr.o \ + str_diff.o str_len.o str_start.o + +byte_chr.o: byte.h byte_chr.c compile + ./compile byte_chr.c + +byte_copy.o: byte.h byte_copy.c compile + ./compile byte_copy.c + +byte_cr.o: byte.h byte_cr.c compile + ./compile byte_cr.c + +byte_diff.o: byte.h byte_diff.c compile + ./compile byte_diff.c + +byte_rchr.o: byte.h byte_rchr.c compile + ./compile byte_rchr.c + +#chkshsgr: chkshsgr.o load +# ./load chkshsgr +# +#chkshsgr.o: chkshsgr.c compile +# ./compile chkshsgr.c + +choose: choose.sh warn-auto.sh + rm -f choose + cat warn-auto.sh choose.sh \ + > choose + chmod 555 choose + +coe.o: coe.c coe.h compile + ./compile coe.c + +compile: conf-cc print-cc.sh systype warn-auto.sh + rm -f compile + sh print-cc.sh > compile + chmod 555 compile + +#direntry.h: choose compile direntry.h1 direntry.h2 trydrent.c +# ./choose c trydrent direntry.h1 direntry.h2 > direntry.h + +env.o: compile env.c env.h str.h + ./compile env.c + +error.o: compile error.c error.h + ./compile error.c + +error_str.o: compile error.h error_str.c + ./compile error_str.c + +fd_copy.o: compile fd.h fd_copy.c + ./compile fd_copy.c + +fd_move.o: compile fd.h fd_move.c + ./compile fd_move.c + +fifo.o: compile fifo.c fifo.h hasmkffo.h + ./compile fifo.c + +fmt_uint.o: compile fmt.h fmt_uint.c + ./compile fmt_uint.c + +fmt_uint0.o: compile fmt.h fmt_uint0.c + ./compile fmt_uint0.c + +fmt_ulong.o: compile fmt.h fmt_ulong.c + ./compile fmt_ulong.c + +hasflock.h: choose compile hasflock.h1 hasflock.h2 load tryflock.c + ./choose cl tryflock hasflock.h1 hasflock.h2 > hasflock.h + +hasmkffo.h: choose compile hasmkffo.h1 hasmkffo.h2 load trymkffo.c + ./choose cl trymkffo hasmkffo.h1 hasmkffo.h2 > hasmkffo.h + +hassgact.h: choose compile hassgact.h1 hassgact.h2 load trysgact.c + ./choose cl trysgact hassgact.h1 hassgact.h2 > hassgact.h + +hassgprm.h: choose compile hassgprm.h1 hassgprm.h2 load trysgprm.c + ./choose cl trysgprm hassgprm.h1 hassgprm.h2 > hassgprm.h + +hasshsgr.h: chkshsgr choose compile hasshsgr.h1 hasshsgr.h2 load \ +tryshsgr.c warn-shsgr + ./chkshsgr || ( cat warn-shsgr; exit 1 ) + ./choose clr tryshsgr hasshsgr.h1 hasshsgr.h2 > hasshsgr.h + +haswaitp.h: choose compile haswaitp.h1 haswaitp.h2 load trywaitp.c + ./choose cl trywaitp haswaitp.h1 haswaitp.h2 > haswaitp.h + +iopause.h: choose compile iopause.h1 iopause.h2 load trypoll.c + ./choose clr trypoll iopause.h1 iopause.h2 > iopause.h + +iopause.o: compile iopause.c iopause.h select.h tai.h taia.h uint64.h + ./compile iopause.c + +load: conf-ld print-ld.sh systype warn-auto.sh + rm -f load + sh print-ld.sh > load + chmod 555 load + +lock_ex.o: compile hasflock.h lock.h lock_ex.c + ./compile lock_ex.c + +lock_exnb.o: compile hasflock.h lock.h lock_exnb.c + ./compile lock_exnb.c + +makelib: print-ar.sh systype warn-auto.sh + rm -f makelib + sh print-ar.sh > makelib + chmod 555 makelib + +ndelay_off.o: compile ndelay.h ndelay_off.c + ./compile ndelay_off.c + +ndelay_on.o: compile ndelay.h ndelay_on.c + ./compile ndelay_on.c + +open_append.o: compile open.h open_append.c + ./compile open_append.c + +open_read.o: compile open.h open_read.c + ./compile open_read.c + +open_trunc.o: compile open.h open_trunc.c + ./compile open_trunc.c + +open_write.o: compile open.h open_write.c + ./compile open_write.c + +openreadclose.o: compile error.h gen_alloc.h open.h openreadclose.c \ +openreadclose.h readclose.h stralloc.h + ./compile openreadclose.c + +pathexec_env.o: alloc.h byte.h compile env.h gen_alloc.h pathexec.h \ +pathexec_env.c str.h stralloc.h + ./compile pathexec_env.c + +pathexec_run.o: compile env.h error.h gen_alloc.h pathexec.h \ +pathexec_run.c str.h stralloc.h + ./compile pathexec_run.c + +prot.o: compile hasshsgr.h prot.c prot.h + ./compile prot.c + +readclose.o: compile error.h gen_alloc.h readclose.c readclose.h \ +stralloc.h + ./compile readclose.c + +scan_ulong.o: compile scan.h scan_ulong.c + ./compile scan_ulong.c + +seek_set.o: compile seek.h seek_set.c + ./compile seek_set.c + +select.h: choose compile select.h1 select.h2 trysysel.c + ./choose c trysysel select.h1 select.h2 > select.h + +sgetopt.o: buffer.h compile sgetopt.c sgetopt.h subgetopt.h + ./compile sgetopt.c + +sig.o: compile sig.c sig.h + ./compile sig.c + +sig_block.o: compile hassgprm.h sig.h sig_block.c + ./compile sig_block.c + +sig_catch.o: compile hassgact.h sig.h sig_catch.c + ./compile sig_catch.c + +sig_pause.o: compile hassgprm.h sig.h sig_pause.c + ./compile sig_pause.c + +str_chr.o: compile str.h str_chr.c + ./compile str_chr.c + +str_diff.o: compile str.h str_diff.c + ./compile str_diff.c + +str_len.o: compile str.h str_len.c + ./compile str_len.c + +str_start.o: compile str.h str_start.c + ./compile str_start.c + +stralloc_cat.o: byte.h compile gen_alloc.h stralloc.h stralloc_cat.c + ./compile stralloc_cat.c + +stralloc_catb.o: byte.h compile gen_alloc.h stralloc.h \ +stralloc_catb.c + ./compile stralloc_catb.c + +stralloc_cats.o: byte.h compile gen_alloc.h str.h stralloc.h \ +stralloc_cats.c + ./compile stralloc_cats.c + +stralloc_eady.o: alloc.h compile gen_alloc.h gen_allocdefs.h \ +stralloc.h stralloc_eady.c + ./compile stralloc_eady.c + +stralloc_opyb.o: byte.h compile gen_alloc.h stralloc.h \ +stralloc_opyb.c + ./compile stralloc_opyb.c + +stralloc_opys.o: byte.h compile gen_alloc.h str.h stralloc.h \ +stralloc_opys.c + ./compile stralloc_opys.c + +stralloc_pend.o: alloc.h compile gen_alloc.h gen_allocdefs.h \ +stralloc.h stralloc_pend.c + ./compile stralloc_pend.c + +strerr_die.o: buffer.h compile strerr.h strerr_die.c + ./compile strerr_die.c + +strerr_sys.o: compile error.h strerr.h strerr_sys.c + ./compile strerr_sys.c + +subgetopt.o: compile subgetopt.c subgetopt.h + ./compile subgetopt.c + +sysdeps: compile direntry.h hasflock.h hasmkffo.h hassgact.h \ +hassgprm.h hasshsgr.h haswaitp.h iopause.h load select.h systype \ +uint64.h + rm -f sysdeps + cat systype compile load >> sysdeps + grep sysdep direntry.h >> sysdeps + grep sysdep haswaitp.h >> sysdeps + grep sysdep hassgact.h >> sysdeps + grep sysdep hassgprm.h >> sysdeps + grep sysdep select.h >> sysdeps + grep sysdep uint64.h >> sysdeps + grep sysdep iopause.h >> sysdeps + grep sysdep hasmkffo.h >> sysdeps + grep sysdep hasflock.h >> sysdeps + grep sysdep hasshsgr.h >> sysdeps + +systype: find-systype.sh trycpp.c x86cpuid.c + sh find-systype.sh > systype + +tai_now.o: compile tai.h tai_now.c uint64.h + ./compile tai_now.c + +tai_pack.o: compile tai.h tai_pack.c uint64.h + ./compile tai_pack.c + +tai_sub.o: compile tai.h tai_sub.c uint64.h + ./compile tai_sub.c + +tai_unpack.o: compile tai.h tai_unpack.c uint64.h + ./compile tai_unpack.c + +taia_add.o: compile tai.h taia.h taia_add.c uint64.h + ./compile taia_add.c + +taia_approx.o: compile tai.h taia.h taia_approx.c uint64.h + ./compile taia_approx.c + +taia_frac.o: compile tai.h taia.h taia_frac.c uint64.h + ./compile taia_frac.c + +taia_less.o: compile tai.h taia.h taia_less.c uint64.h + ./compile taia_less.c + +taia_now.o: compile tai.h taia.h taia_now.c uint64.h + ./compile taia_now.c + +taia_pack.o: compile tai.h taia.h taia_pack.c uint64.h + ./compile taia_pack.c + +taia_sub.o: compile tai.h taia.h taia_sub.c uint64.h + ./compile taia_sub.c + +taia_uint.o: compile tai.h taia.h taia_uint.c uint64.h + ./compile taia_uint.c + +time.a: iopause.o makelib tai_now.o tai_pack.o tai_sub.o tai_unpack.o \ +taia_add.o taia_approx.o taia_frac.o taia_less.o taia_now.o \ +taia_pack.o taia_sub.o taia_uint.o + ./makelib time.a iopause.o tai_now.o tai_pack.o tai_sub.o \ + tai_unpack.o taia_add.o taia_approx.o taia_frac.o taia_less.o \ + taia_now.o taia_pack.o taia_sub.o taia_uint.o + +uint64.h: choose compile load tryulong64.c uint64.h1 uint64.h2 + ./choose clr tryulong64 uint64.h1 uint64.h2 > uint64.h + +unix.a: alloc.o alloc_re.o buffer.o buffer_0.o buffer_1.o buffer_2.o \ +buffer_get.o buffer_put.o buffer_read.o buffer_write.o coe.o env.o \ +error.o error_str.o fd_copy.o fd_move.o fifo.o lock_ex.o lock_exnb.o \ +makelib ndelay_off.o ndelay_on.o open_append.o open_read.o \ +open_trunc.o open_write.o openreadclose.o pathexec_env.o \ +pathexec_run.o prot.o readclose.o seek_set.o sgetopt.o sig.o \ +sig_block.o sig_catch.o sig_pause.o stralloc_cat.o stralloc_catb.o \ +stralloc_cats.o stralloc_eady.o stralloc_opyb.o stralloc_opys.o \ +stralloc_pend.o strerr_die.o strerr_sys.o subgetopt.o wait_nohang.o \ +wait_pid.o + ./makelib unix.a alloc.o alloc_re.o buffer.o buffer_0.o buffer_1.o \ + buffer_2.o buffer_get.o buffer_put.o buffer_read.o buffer_write.o \ + coe.o env.o error.o error_str.o fd_copy.o fd_move.o fifo.o lock_ex.o \ + lock_exnb.o ndelay_off.o ndelay_on.o open_append.o open_read.o \ + open_trunc.o open_write.o openreadclose.o pathexec_env.o \ + pathexec_run.o prot.o readclose.o seek_set.o sgetopt.o sig.o \ + sig_block.o sig_catch.o sig_pause.o stralloc_cat.o stralloc_catb.o \ + stralloc_cats.o stralloc_eady.o stralloc_opyb.o stralloc_opys.o \ + stralloc_pend.o strerr_die.o strerr_sys.o subgetopt.o wait_nohang.o \ + wait_pid.o + +wait_nohang.o: compile haswaitp.h wait_nohang.c + ./compile wait_nohang.c + +wait_pid.o: compile error.h haswaitp.h wait_pid.c + ./compile wait_pid.c + |