From 6d47c25f6fd64dd0681477ff248419fe70e495c4 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Tue, 4 Dec 2012 03:05:01 +0100 Subject: [PATCH] python: fix pgen build for other archs --- sys/src/cmd/python/Parser/mkfile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/sys/src/cmd/python/Parser/mkfile b/sys/src/cmd/python/Parser/mkfile index 01557576e..78edcd21d 100644 --- a/sys/src/cmd/python/Parser/mkfile +++ b/sys/src/cmd/python/Parser/mkfile @@ -22,6 +22,12 @@ CLEANFILES=$O.pgen CFLAGS=-c -I.. -I../Include -DT$objtype -DPy_BUILD_CORE -DNDEBUG +obmalloc.$O: ../Objects/obmalloc.c + $CC $CFLAGS $prereq + +mysnprintf.$O: ../Python/mysnprintf.c + $CC $CFLAGS $prereq + PGENOFILES=\ acceler.$O\ bitset.$O\ @@ -37,8 +43,9 @@ PGENOFILES=\ pgenmain.$O\ printgrammar.$O\ tokenizer_pgen.$O\ - ../Objects/obmalloc.$O\ - ../Python/mysnprintf.$O\ + obmalloc.$O\ + mysnprintf.$O\ $O.pgen: $PGENOFILES $LD -o $target $prereq +