Subversion Repositories planix.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
PORTFILES=`{../port/mkfilelist ../port}
2
^($PORTFILES)\.$O:R:	'../port/\1.c'
3
	$CC $CFLAGS -I. ../port/$stem1.c
4
 
5
IPFILES=`{../port/mkfilelist ../ip}
6
^($IPFILES)\.$O:R:	'../ip/\1.c' ../ip/ip.h ../ip/ipv6.h
7
	$CC $CFLAGS -I. ../ip/$stem1.c
8
 
9
%.$O:	%.s
10
	$AS $AFLAGS $stem.s
11
 
12
%.$O:	%.c
13
	$CC $CFLAGS $stem.c
14
 
15
%.acid:	%.c
16
	$CC $CFLAGS -a $stem.c >$stem.acid
17
 
18
%.acid:	../ip/%.c
19
	$CC $CFLAGS -a -I.  ../ip/$stem.c >$stem.acid
20
 
21
%.acid:	../port/%.c
22
	$CC $CFLAGS -a -I. ../port/$stem.c >$stem.acid
23
 
24
installall:V:
25
	for(i in $CONFLIST)
26
		mk 'CONF='$i install
27
 
28
all:V:
29
	for(i in $CONFLIST)
30
		mk 'CONF='$i
31
 
32
clean:V:
33
	rm -f *.[$OS] *.root.s *.rootc.c cfs.h fs.h init.h conf.h reboot.h reboot.list *.out *.m errstr.h
34
	for(i in $CONFLIST $CRAPLIST)
35
		mk $i.clean
36
 
37
%.clean:V:
38
	rm -f $stem.c [9bz]$stem [9bz]$stem.gz s[9bz]$stem boot$stem.* *.acid
39
 
40
nuke:V:	clean
41
	rm -f ../boot/libboot.a$O *.elf *.rr
42
 
43
%.$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
44
 
45
../port/systab.h:	/sys/src/libc/9syscall/sys.h ../port/mksystab
46
	rc ../port/mksystab > ../port/systab.h
47
 
48
$CONF.$O:	$CONF.c
49
	$CC $CFLAGS '-DKERNDATE='`{date -n} $CONF.c
50
 
51
$CONF.c:	../port/mkdevc $CONF
52
	rc ../port/mkdevc $CONF > $CONF.c
53
	{echo 'uchar configfile[]={'
54
	 xd -1x $CONF |
55
		sed -e 's/^[0-9a-f]+ //' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'
56
	 echo 0,
57
	 echo '};'} >> $CONF.c
58
 
59
errstr.h:	../port/mkerrstr ../port/error.h
60
	rc ../port/mkerrstr > errstr.h
61
 
62
../port/latin1.h:	/lib/keyboard
63
	aux/mklatinkbd /lib/keyboard > ../port/latin1.h
64
 
65
%.db:		main.$O
66
	$CC -s$stem main.c | dbfmt > $stem.db
67
 
68
alloc.$O:	/sys/include/pool.h
69
devmnt.$O:	/sys/include/fcall.h
70
proc.$O:	errstr.h
71
devroot.$O:	errstr.h
72
devaoe.$O:	/$objtype/include/ureg.h
73
devfs.$O:	/$objtype/include/ureg.h
74
devsd.$O:	/$objtype/include/ureg.h
75
sdscsi.$O:	/$objtype/include/ureg.h
76
trap.$O:	/$objtype/include/ureg.h
77
devproc.$O:	/$objtype/include/ureg.h
78
main.$O:	init.h
79
trap.$O:	../port/systab.h
80
devpipe.$O:	../port/netif.h
81
netif.$O:	../port/netif.h
82
devuart.$O:	../port/netif.h
83
devmouse.$O:	screen.h /sys/include/memdraw.h
84
devdraw.$O:	screen.h /sys/include/memdraw.h
85
screen.$O:	screen.h /sys/include/memdraw.h
86
latin1.$O:	../port/latin1.h
87
thwack.$O:	../port/thwack.h
88
unthwack.$O:	../port/thwack.h
89
devsdp.$O:	../port/thwack.h
90
devproc.$O sysproc.$O:	/sys/include/tos.h
91
devproc.$O edf.$O proc.$O: /sys/include/trace.h
92
 
93
boot$CONF.out: $CONF print.$O $BOOTDIR/boot.c $BOOTLIB
94
	$BOOTDIR/mkboot $CONF > boot$CONF.c
95
	$CC $CFLAGS boot$CONF.c
96
	$CC $CFLAGS ../boot/printstub.c
97
	$LD -o boot$CONF.out boot$CONF.$O $BOOTLIB printstub.$O