]> git.lizzy.rs Git - plan9front.git/blob - sys/src/cmd/python/mkfile
sshfs: usage
[plan9front.git] / sys / src / cmd / python / mkfile
1 APE=/sys/src/ape
2 <$APE/config
3
4 CFLAGS=-FVwN
5 BIN=/$objtype/bin
6
7 TARG=\
8         python\
9
10 OFILES=\
11         config.$O\
12         plan9.$O\
13         libextra.a$O\
14
15 LIB= \
16         /$objtype/lib/ape/libpython.a\
17
18 LIBDIRS=Modules Objects Parser Python
19
20 </sys/src/cmd/mkone
21
22 CFLAGS=-c -I. -IInclude -DT$objtype -DPy_BUILD_CORE -DNDEBUG
23
24 /$objtype/lib/ape/libpython.a:
25         for (i in $LIBDIRS) @{
26                 cd $i
27                 mk 
28         }
29
30 libextra.a$O:
31         @{
32                 cd Extra
33                 mk
34         }
35
36 Extra/config:
37         for(i in `{du -a Extra | grep '.c$'  | awk '{print $2}' | sed 's/..$//'})
38                 echo `{basename $i} >> Extra/config
39
40 config.c: Modules/config Extra/config mkconfig
41         ./mkconfig Modules/config Extra/config >config.c
42
43 clean:V:
44         for(i in $LIBDIRS Extra)@{
45                 cd $i
46                 mk $target
47         }
48         rm -f *.[$OS] [$OS].out y.tab.? y.debug y.output $OFILES
49         rm -f Extra/config config.c
50
51 nuke:V:
52         mk clean
53         rm -f /$objtype/lib/ape/libpython.a