12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- PFILES=`{builtin cd ../port;echo *.c | sed 's/ /|/g; s/\.c//g'}
- ^($PFILES)\.$O:R: '../port/\1.c'
- $CC $CFLAGS -I. ../port/$stem1.c
- IPFILES=`{builtin cd ../ip;echo *.c | sed 's/ /|/g; s/\.c//g'}
- ^($IPFILES)\.$O:R: '../ip/\1.c' ../ip/ip.h
- $CC $CFLAGS -I. ../ip/$stem1.c
- %.$O: %.s
- $AS $AFLAGS $stem.s
- %.$O: %.c
- $CC $CFLAGS $stem.c
- %.acid: %.c
- $CC $CFLAGS -a $stem.c >$stem.acid
- %.acid: ../ip/%.c
- $CC $CFLAGS -a -I. ../ip/$stem.c >$stem.acid
- %.acid: ../port/%.c
- $CC $CFLAGS -a -I. ../port/$stem.c >$stem.acid
- installall:V:
- for(i in $CONFLIST)
- mk 'CONF='$i install
- all:V:
- for(i in $CONFLIST)
- mk 'CONF='$i
- clean:V:
- rm -f *.[$OS] *.root.s cfs.h fs.h init.h conf.h *.out factotum.hack ipconfig.hack
- for(i in $CONFLIST)
- mk $i.clean
- %.clean:V:
- rm -f $stem.c [9bz]$stem [9bz]$stem.gz boot$stem.*
- %.$O: /$objtype/include/u.h ../port/lib.h mem.h dat.h fns.h io.h ../port/error.h ../port/portdat.h ../port/portfns.h
- ../port/systab.h: /sys/src/libc/9syscall/sys.h ../port/mksystab
- rc ../port/mksystab > ../port/systab.h
- $CONF.$O: $CONF.c
- $CC $CFLAGS '-DKERNDATE='`{date -n} $CONF.c
- $CONF.c: ../port/mkdevc $CONF
- rc ../port/mkdevc $CONF > $CONF.c
- errstr.h: ../port/mkerrstr ../port/error.h
- rc ../port/mkerrstr > errstr.h
- ../port/latin1.h: /lib/keyboard
- aux/mklatinkbd /lib/keyboard > ../port/latin1.h
- %.db: main.$O
- $CC -s$stem main.c | dbfmt > $stem.db
- alloc.$O: /sys/include/pool.h
- devmnt.$O: /sys/include/fcall.h
- proc.$O: errstr.h
- devroot.$O: errstr.h
- trap.$O: /$objtype/include/ureg.h
- devproc.$O: /$objtype/include/ureg.h
- main.$O: init.h
- trap.$O: ../port/systab.h
- devpipe.$O: ../port/netif.h
- netif.$O: ../port/netif.h
- devuart.$O: ../port/netif.h
- devmouse.$O: screen.h
- devdraw.$O: screen.h
- screen.$O: screen.h
- latin1.$O: ../port/latin1.h
- thwack.$O: ../port/thwack.h
- unthwack.$O: ../port/thwack.h
- devsdp.$O: ../port/thwack.h
- devrealtime.$O edf.$O realtime.$O: ../port/edf.h
- boot$CONF.out: $CONF print.$O $BOOTDIR/boot.c $BOOTLIB
- $BOOTDIR/mkboot $CONF > boot$CONF.c
- $CC $CFLAGS boot$CONF.c
- $LD -o boot$CONF.out boot$CONF.$O $BOOTLIB print.$O
- # this lets us say "factotum.hack factotum" instead of "/386/bin/auth/factotum factotum"
- # in the kernel config files. the latter won't work until we have long file names.
- factotum.hack: /$objtype/bin/auth/factotum
- cp $prereq $target
- ipconfig.hack: /$objtype/bin/ip/ipconfig
- cp $prereq $target
|