-
Notifications
You must be signed in to change notification settings - Fork 4
/
mkfile
83 lines (63 loc) · 1.54 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
DIRS=\
src/lib9\
src/libbio\
src/libmach\
src/libregexp\
src/libmath\
src/cmd
# mkconfig is included at this point to allow it to override
# the preceding declarations if need be
<mkconfig
all:V: all-$HOSTMODEL
clean:V: clean-$HOSTMODEL
install:V: install-$HOSTMODEL
installall:V: installall-$HOSTMODEL
nuke:V: nuke-$HOSTMODEL
cleandist:V: clean
rm -f $ROOT/$OBJDIR/lib/lib*.a
nukedist:V: nuke
rm -f $ROOT/$OBJDIR/bin/*.exe
rm -f $ROOT/$OBJDIR/lib/lib*.a
&-Posix:QV:
for j in $DIRS
do
echo "(cd $j; mk $MKFLAGS $stem)"
(cd $j; mk $MKFLAGS $stem) || exit 1
done
&-Nt:QV:
for (j in $DIRS)
{
echo '@{builtin cd' $j '; mk $MKFLAGS $stem}'
@{builtin cd $j; mk.exe $MKFLAGS $stem }
}
&-Inferno:QV:
for (j in $DIRS)
{
echo '@{builtin cd' $j '; mk $MKFLAGS $stem}'
@{builtin cd $j; mk $MKFLAGS $stem }
}
&-Plan9:QV:
for (j in $DIRS)
{
echo '@{builtin cd' $j '; mk $MKFLAGS $stem}'
@{builtin cd $j; mk $MKFLAGS $stem }
}
# Convenience targets
Hp-% hp-%:V:
mk 'SYSHOST=Hp' 'OBJTYPE=s800' $stem
Inferno-% inferno-% Inferno-386-% inferno-386-%:V:
mk 'SYSHOST=Inferno' 'OBJTYPE=386' $stem
Inferno-arm-% inferno-arm-%:V:
mk 'SYSHOST=Inferno' 'OBJTYPE=arm' $stem
Plan9-% plan9-%:V:
mk 'SYSHOST=Plan9' 'OBJTYPE=386' $stem
Irix-% irix-%:V:
mk 'SYSHOST=Irix' 'OBJTYPE=mips' $stem
Linux-% linux-%:V:
mk 'SYSHOST=Linux' 'OBJTYPE=386' $stem
NetBSD-% netbsd-%:V:
mk 'SYSHOST=NetBSD' 'OBJTYPE=386' $stem
Nt-% nt-% Win95-% win95-%:V:
mk 'SYSHOST=Nt' 'OBJTYPE=386' $stem
Solaris-% solaris-%:V:
mk 'SYSHOST=Solaris' 'OBJTYPE=sparc' $stem