mirror of https://github.com/python/cpython.git
(Sjoerd:) Incorporate `build number' stuff.
This commit is contained in:
parent
5ad7aaf5fb
commit
24c93591cd
|
@ -179,11 +179,17 @@ sharedmods: $(SHAREDMODS)
|
||||||
|
|
||||||
# Build a static Python binary containing our extension modules
|
# Build a static Python binary containing our extension modules
|
||||||
static: $(TARGET)
|
static: $(TARGET)
|
||||||
$(TARGET): $(ADDOBJS) lib.a $(PYTHONLIBS) Makefile $(BASELIB)
|
$(TARGET): $(ADDOBJS) lib.a $(PYTHONLIBS) Makefile $(BASELIB) buildno
|
||||||
$(CC) $(LDFLAGS) $(ADDOBJS) lib.a $(PYTHONLIBS) \
|
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) \
|
$(LINKPATH) $(BASELIB) $(MODLIBS) $(LIBS) $(SYSLIBS) \
|
||||||
-o $(TARGET)
|
-o $(TARGET)
|
||||||
|
|
||||||
|
buildno:
|
||||||
|
echo 0 >buildno
|
||||||
|
|
||||||
# Build the library containing our extension modules
|
# Build the library containing our extension modules
|
||||||
lib.a: $(MODOBJS)
|
lib.a: $(MODOBJS)
|
||||||
-rm -f lib.a
|
-rm -f lib.a
|
||||||
|
|
Loading…
Reference in New Issue