blob: 383b54429fbca83517e3a9dd23a19adf1a595d05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
<../../../mkconfig
SYSTARG=Inferno
OBJTYPE=arm
<$ROOT/mkfiles/mkfile-$SYSTARG-$OBJTYPE #set vars based on target system
TARGET=${O}boot
OBJ=\
l.$O\
div.$O\
8250.$O\
alarm.$O\
bootp.$O\
clock.$O\
console.$O\
conf.$O\
dosboot.$O\
donprint.$O\
ether.$O\
ether8900.$O\
flash.$O\
kbd.$O\
main.$O\
plan9boot.$O\
puma.$O\
qio.$O\
rmap.$O\
trap.$O\
zqs.$O
HFILES=\
lib.h\
mem.h\
dat.h\
fns.h\
io.h\
boot.h\
armv4.h\
puma.h\
CFLAGS=-w -I.
LFLAGS=-H1 -R4 -T0x00200000 -E_main #-a
#LFLAGS=-H1 -R4 -T0x00008080 -E_main #-a
#LFLAGS = -H1 -R4 -T0xa00000c0 -E_main #-a
all:V: $TARGET
$TARGET: $OBJ
$LD -o $target $LFLAGS -l $prereq -lc
ls -l $target
installall:V: install
install:V: bb $TARGET
cp $TARGET /arm
%.$O: %.s
$AS $stem.s
%.$O: %.c
$CC $CFLAGS $stem.c
%.$O: $HFILES
clock.$O floppy.$O trap.$O: ureg.h
conf.$O dosboot.$O main.$O: dosfs.h
ether.$O ether2000.$O ether509.$O ether8003.$O ether8390.$O: ether.h
bootp.$O: ip.h
clean:
rm -f *.[$OS] [$OS].out y.tab.? y.debug y.output $TARGET
|