summaryrefslogtreecommitdiffstats
path: root/Misc/Makefile.pre.in
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-04-11 15:25:47 (GMT)
committerGuido van Rossum <guido@python.org>1997-04-11 15:25:47 (GMT)
commit24c93591cdd202abeff3629f8ee92cf28711eead (patch)
tree4e6b12b2d7d0b54ee7960a1d9f174127da020cb0 /Misc/Makefile.pre.in
parent5ad7aaf5fb2e10e75bfc39e0fd49cd34ddcb1fc9 (diff)
downloadcpython-24c93591cdd202abeff3629f8ee92cf28711eead.zip
cpython-24c93591cdd202abeff3629f8ee92cf28711eead.tar.gz
cpython-24c93591cdd202abeff3629f8ee92cf28711eead.tar.bz2
(Sjoerd:) Incorporate `build number' stuff.
Diffstat (limited to 'Misc/Makefile.pre.in')
-rw-r--r--Misc/Makefile.pre.in10
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