diff options
-rw-r--r-- | Misc/Makefile.pre.in | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Misc/Makefile.pre.in b/Misc/Makefile.pre.in index cda9685..8954e6a 100644 --- a/Misc/Makefile.pre.in +++ b/Misc/Makefile.pre.in @@ -179,11 +179,17 @@ sharedmods: $(SHAREDMODS) # Build a static Python binary containing our extension modules static: $(TARGET) -$(TARGET): $(ADDOBJS) lib.a $(PYTHONLIBS) Makefile $(BASELIB) - $(CC) $(LDFLAGS) $(ADDOBJS) lib.a $(PYTHONLIBS) \ +$(TARGET): $(ADDOBJS) lib.a $(PYTHONLIBS) Makefile $(BASELIB) buildno + expr `cat buildno` + 1 >@buildno + mv @buildno buildno + $(CC) -c $(CFLAGS) -DBUILD=`cat buildno` $(LIBPL)/getbuildinfo.c + $(CC) $(LDFLAGS) $(ADDOBJS) getbuildinfo.o lib.a $(PYTHONLIBS) \ $(LINKPATH) $(BASELIB) $(MODLIBS) $(LIBS) $(SYSLIBS) \ -o $(TARGET) +buildno: + echo 0 >buildno + # Build the library containing our extension modules lib.a: $(MODOBJS) -rm -f lib.a |