]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Moved the special compile of getbuildno.o to ../Makefile.in.
authorGuido van Rossum <guido@python.org>
Fri, 25 Jul 1997 22:35:24 +0000 (22:35 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 25 Jul 1997 22:35:24 +0000 (22:35 +0000)
A dummy getbuildno.o (with a number of 0) still gets built here,
to make the library complete.

Modules/Makefile.pre.in

index 4c6b3154545de1c6851673f6569abe593d857df2..21f22b9c9e92df5d2d441a2ad4858af2d4cd38b9 100644 (file)
@@ -113,11 +113,7 @@ $(ASHAREDMODULE)$(SO): $(ASHAREDMODULESOBS)
 # 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,
 # we remove the latter if we have the former.
-add2lib:       $(OBJS) buildno
-               expr `cat buildno` + 1 >@buildno
-               mv @buildno buildno
-               $(CC) -c $(CFLAGS) -DBUILD=`cat buildno` \
-                     $(srcdir)/getbuildinfo.c
+add2lib:       $(OBJS)
                $(AR) cr $(LIBRARY) $(OBJS)
                -if ar x $(LIBRARY) signalmodule.o 2>/dev/null; \
                then ar d $(LIBRARY) sigcheck.o 2>/dev/null; true; \
@@ -130,9 +126,6 @@ link:               $(MAINOBJ)
                  $(LIBRARY) $(MODLIBS) $(LIBS) $(SYSLIBS) -o python $(LDLAST)
                mv python ../python
 
-buildno:
-               echo 0 >buildno
-
 clean:
                -rm -f *.o python core *~ [@,#]* *.old *.orig *.rej add2lib