summaryrefslogtreecommitdiff
path: root/sys/src/cmd/python/Python/mkfile
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@localhost>2011-05-03 11:25:13 +0000
committercinap_lenrek <cinap_lenrek@localhost>2011-05-03 11:25:13 +0000
commit458120dd40db6b4df55a4e96b650e16798ef06a0 (patch)
tree8f82685be24fef97e715c6f5ca4c68d34d5074ee /sys/src/cmd/python/Python/mkfile
parent3a742c699f6806c1145aea5149bf15de15a0afd7 (diff)
add hg and python
Diffstat (limited to 'sys/src/cmd/python/Python/mkfile')
-rw-r--r--sys/src/cmd/python/Python/mkfile64
1 files changed, 64 insertions, 0 deletions
diff --git a/sys/src/cmd/python/Python/mkfile b/sys/src/cmd/python/Python/mkfile
new file mode 100644
index 000000000..bab94765b
--- /dev/null
+++ b/sys/src/cmd/python/Python/mkfile
@@ -0,0 +1,64 @@
+</$cputype/mkfile
+cpuO=$O
+APE=/sys/src/ape
+<$APE/config
+
+LIB=/$objtype/lib/ape/libpython.a
+
+OFILES=\
+ Python-ast.$O\
+ asdl.$O\
+ ast.$O\
+ bltinmodule.$O\
+ ceval.$O\
+ codecs.$O\
+ compile.$O\
+ dynload_stub.$O\
+ errors.$O\
+# fmod.$O\
+ frozen.$O\
+ frozenmain.$O\
+ future.$O\
+ getargs.$O\
+ getcompiler.$O\
+ getcopyright.$O\
+ getmtime.$O\
+ getopt.$O\
+ getplatform.$O\
+ getversion.$O\
+ import.$O\
+ importdl.$O\
+ marshal.$O\
+ modsupport.$O\
+ mysnprintf.$O\
+ mystrtoul.$O\
+ pyarena.$O\
+ pyfpe.$O\
+ pystate.$O\
+ pystrtod.$O\
+ pythonrun.$O\
+# sigcheck.$O\
+ structmember.$O\
+ symtable.$O\
+ sysmodule.$O\
+ thread.$O\
+ traceback.$O\
+ graminit.$O\
+
+</sys/src/cmd/mksyslib
+
+CFLAGS=-c -I.. -I../Include -DT$objtype -DPy_BUILD_CORE -DNDEBUG
+
+graminit.c ../Include/graminit.h:V: ../Parser/$cpuO.pgen
+ ../Parser/$cpuO.pgen ../Grammar/Grammar graminit.h graminit.c
+ mv graminit.h ../Include
+
+
+# when cputype!=objtype, $PGENO causes unnecessary object files to be created.
+# but when cputype==objtype, it keeps this mkfile from fighting with mkfile.pgen
+# over creating some of these.
+../Parser/$cpuO.pgen:V: $PGENO
+ @{
+ cd ../Parser
+ objtype=$cputype mk $cpuO.pgen
+ }