blob: 8bd00ac7bab861a0eb7de73138551c94ff0c52d4 (
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
|
APE=/sys/src/ape
<$APE/config
CFLAGS=-FVwN
BIN=/$objtype/bin
TARG=\
python\
OFILES=\
config.$O\
plan9.$O\
libextra.a$O\
LIB= \
/$objtype/lib/ape/libpython.a\
/$objtype/lib/ape/libssl.a\
/$objtype/lib/ape/libcrypto.a
LIBDIRS=Modules Objects Parser Python
</sys/src/cmd/mkone
CFLAGS=-c -I. -IInclude -DT$objtype -DPy_BUILD_CORE -DNDEBUG
/$objtype/lib/ape/libpython.a:
for (i in $LIBDIRS) @{
cd $i
mk
}
libextra.a$O:
@{
cd Extra
mk
}
Extra/config:
for(i in `{du -a Extra | grep '.c$' | awk '{print $2}' | sed 's/..$//'})
echo `{basename $i} >> Extra/config
config.c: Modules/config Extra/config mkconfig
./mkconfig Modules/config Extra/config >config.c
clean:V:
for(i in $LIBDIRS Extra)@{
cd $i
mk $target
}
rm -f *.[$OS] [$OS].out y.tab.? y.debug y.output $OFILES
rm -f Extra/config config.c
nuke:V:
mk clean
rm -f /$objtype/lib/ape/libpython.a
|