Showing the changes to sys/src/cmd/python/Python/mkfile (1 of 3706 files). Show all
Unified · Split
| @@ -0,0 +1,64 @@ | ||
| 1 | +</$cputype/mkfile | |
| 2 | +cpuO=$O | |
| 3 | +APE=/sys/src/ape | |
| 4 | +<$APE/config | |
| 5 | + | |
| 6 | +LIB=/$objtype/lib/ape/libpython.a | |
| 7 | + | |
| 8 | +OFILES=\ | |
| 9 | + Python-ast.$O\ | |
| 10 | + asdl.$O\ | |
| 11 | + ast.$O\ | |
| 12 | + bltinmodule.$O\ | |
| 13 | + ceval.$O\ | |
| 14 | + codecs.$O\ | |
| 15 | + compile.$O\ | |
| 16 | + dynload_stub.$O\ | |
| 17 | + errors.$O\ | |
| 18 | +# fmod.$O\ | |
| 19 | + frozen.$O\ | |
| 20 | + frozenmain.$O\ | |
| 21 | + future.$O\ | |
| 22 | + getargs.$O\ | |
| 23 | + getcompiler.$O\ | |
| 24 | + getcopyright.$O\ | |
| 25 | + getmtime.$O\ | |
| 26 | + getopt.$O\ | |
| 27 | + getplatform.$O\ | |
| 28 | + getversion.$O\ | |
| 29 | + import.$O\ | |
| 30 | + importdl.$O\ | |
| 31 | + marshal.$O\ | |
| 32 | + modsupport.$O\ | |
| 33 | + mysnprintf.$O\ | |
| 34 | + mystrtoul.$O\ | |
| 35 | + pyarena.$O\ | |
| 36 | + pyfpe.$O\ | |
| 37 | + pystate.$O\ | |
| 38 | + pystrtod.$O\ | |
| 39 | + pythonrun.$O\ | |
| 40 | +# sigcheck.$O\ | |
| 41 | + structmember.$O\ | |
| 42 | + symtable.$O\ | |
| 43 | + sysmodule.$O\ | |
| 44 | + thread.$O\ | |
| 45 | + traceback.$O\ | |
| 46 | + graminit.$O\ | |
| 47 | + | |
| 48 | +</sys/src/cmd/mksyslib | |
| 49 | + | |
| 50 | +CFLAGS=-c -I.. -I../Include -DT$objtype -DPy_BUILD_CORE -DNDEBUG | |
| 51 | + | |
| 52 | +graminit.c ../Include/graminit.h:V: ../Parser/$cpuO.pgen | |
| 53 | + ../Parser/$cpuO.pgen ../Grammar/Grammar graminit.h graminit.c | |
| 54 | + mv graminit.h ../Include | |
| 55 | + | |
| 56 | + | |
| 57 | +# when cputype!=objtype, $PGENO causes unnecessary object files to be created. | |
| 58 | +# but when cputype==objtype, it keeps this mkfile from fighting with mkfile.pgen | |
| 59 | +# over creating some of these. | |
| 60 | +../Parser/$cpuO.pgen:V: $PGENO | |
| 61 | + @{ | |
| 62 | + cd ../Parser | |
| 63 | + objtype=$cputype mk $cpuO.pgen | |
| 64 | + } | |