Commit 339672b3 authored by Guido van Rossum's avatar Guido van Rossum

Moved the special compile of getbuildno.o to ../Makefile.in.

A dummy getbuildno.o (with a number of 0) still gets built here,
to make the library complete.
parent f214edf5
...@@ -113,11 +113,7 @@ $(ASHAREDMODULE)$(SO): $(ASHAREDMODULESOBS) ...@@ -113,11 +113,7 @@ $(ASHAREDMODULE)$(SO): $(ASHAREDMODULESOBS)
# This target is used by the master Makefile to add the objects to the library. # This target is used by the master Makefile to add the objects to the library.
# To deal with the conflict between signalmodule.o and sigcheck.o, # To deal with the conflict between signalmodule.o and sigcheck.o,
# we remove the latter if we have the former. # we remove the latter if we have the former.
add2lib: $(OBJS) buildno add2lib: $(OBJS)
expr `cat buildno` + 1 >@buildno
mv @buildno buildno
$(CC) -c $(CFLAGS) -DBUILD=`cat buildno` \
$(srcdir)/getbuildinfo.c
$(AR) cr $(LIBRARY) $(OBJS) $(AR) cr $(LIBRARY) $(OBJS)
-if ar x $(LIBRARY) signalmodule.o 2>/dev/null; \ -if ar x $(LIBRARY) signalmodule.o 2>/dev/null; \
then ar d $(LIBRARY) sigcheck.o 2>/dev/null; true; \ then ar d $(LIBRARY) sigcheck.o 2>/dev/null; true; \
...@@ -130,9 +126,6 @@ link: $(MAINOBJ) ...@@ -130,9 +126,6 @@ link: $(MAINOBJ)
$(LIBRARY) $(MODLIBS) $(LIBS) $(SYSLIBS) -o python $(LDLAST) $(LIBRARY) $(MODLIBS) $(LIBS) $(SYSLIBS) -o python $(LDLAST)
mv python ../python mv python ../python
buildno:
echo 0 >buildno
clean: clean:
-rm -f *.o python core *~ [@,#]* *.old *.orig *.rej add2lib -rm -f *.o python core *~ [@,#]* *.old *.orig *.rej add2lib
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment