-
Notifications
You must be signed in to change notification settings - Fork 1
/
mkfile
65 lines (55 loc) · 1.07 KB
/
mkfile
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
</$objtype/mkfile
SUB = parse \
mi \
6 \
muse \
rt \
doc
all:V: $SUB config.h
for(dir in $SUB)@{
cd $dir
mk $MKFLAGS
}
ape/psh mbldwrap.sh
nuke:V: $SUB
rm -f config.h
rm -f config.mk
for(dir in $SUB)@{
cd $dir
mk $MKFLAGS nuke
}
ape/psh mbldwrap.sh clean
clean:V: $SUB config.h
for(dir in $SUB)@{
cd $dir
mk $MKFLAGS clean
}
ape/psh mbldwrap.sh clean
install:V: $SUB config.h
for(dir in $SUB)@{
cd $dir
mk $MKFLAGS install
}
ape/psh mbldwrap.sh install
bootstrap:V:
ape/psh genbootstrap.sh
uninstall:V: $SUB config.h
for(dir in $SUB)@{
cd $dir
mk $MKFLAGS uninstall
}
ape/psh mbldwrap.sh uninstall
check:V: all
@{
cd test
mk check
}
ape/psh mbldwrap.sh test
config.h:
echo '#define Instroot "/amd64"' > config.h
echo '#define Asmcmd {"6a", "-o", NULL}' >> config.h
echo '#define Arcmd {"ar", "ru", NULL}' >> config.h
echo '#define Ldcmd {"6l", "-l", "-o", NULL}' >> config.h
echo '#define Symprefix ""' >> config.h
echo '#define Defaultasm Plan9' >> config.h
echo '#define Objsuffix ".6"' >> config.h