CONF=k8cpu
CONFLIST=k8aoe k8cpu k8root k8pf

objtype=amd64
</$objtype/mkfile
p=9

9k:V:	$p$CONF

<| awk -f ../mk/parse $CONF
<../mk/bootmkfile
<../mk/portmkfile

OBJ=$MACH $CONF.root.$O $DEVS $PORT

$p$CONF:	$CONF.c $OBJ $LIB
	$CC $CFLAGS '-DKERNDATE='`{date -n} $CONF.c
	$LD -p -o $target -T0xFFFFFFFF80110000 -l $OBJ $CONF.$O $LIB
	size $target

$p$CONF.gz:	$p$CONF
	strip -o /fd/1 $p$CONF | gzip -9 > $p$CONF.gz

install:V:	$p$CONF $p$CONF.gz
	#cp $p$CONF $p$CONF.gz /$objtype/
	#import lookout / /n/lookout && cp $p$CONF $p$CONF.gz /n/lookout/$objtype/

init.out:	init9.$O initcode.$O /$objtype/lib/libc.a
	$LD -l -R1 -o init.out init9.$O initcode.$O -lc

apic.$O:	apic.h io.h
devarch.$O:	../port/error.h /$objtype/include/ureg.h
fpu.$O:		amd64.h
fpu.$O:		/$objtype/include/ureg.h
ioapic.$O:	apic.h io.h
main.$O:	/sys/include/pool.h init.h
memory.$O:	amd64.h
mmu.$O:		amd64.h
mp.$O:		apic.h
svm.$O:		amd64.h
svm.$O:		/$objtype/include/ureg.h
syscall.$O:	../port/error.h ../port/systab.h
syscall.$O:	/sys/include/tos.h /$objtype/include/ureg.h
trap.$O:	../port/error.h io.h
trap.$O:	/sys/include/tos.h /$objtype/include/ureg.h

devaoe.$O:	../port/error.h ../port/netif.h ../ip/ip.h
devaoe.$O:	../386/aoe.h ../386/etherif.h
devether.$O:	../port/error.h ../port/netif.h
devether.$O:	../386/etherif.h
devrtc.$O:	../port/error.h
ether8169.$O:	../port/error.h ../port/ethermii.h ../port/netif.h
ether8169.$O:	../386/etherif.h
ether82557.$O:	../port/netif.h
ether82557.$O:	../386/etherif.h io.h
etherigbe.$O:	../port/error.h ../port/ethermii.h ../port/netif.h
etherigbe.$O:	../386/etherif.h io.h
etherm10g.$O:	../port/error.h ../port/netif.h
etherm10g.$O:	../386/etherif.h io.h
etherm10g.$O:	../386/etherm10g2k.i ../386/etherm10g4k.i
kbd.$O:		../port/error.h io.h
pci.$O:		io.h
sdaoe.$O:	../port/error.h ../port/netif.h ../port/sd.h
sdaoe.$O:	../386/aoe.h ../386/etherif.h io.h
sdscsi.$O:	../port/error.h

random.$O:	../port/error.h
