]> granicus.if.org Git - python/commitdiff
Correctly add dependencies and build rules for Modules/python.o.
authorGuido van Rossum <guido@python.org>
Thu, 1 Oct 1998 16:42:41 +0000 (16:42 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 1 Oct 1998 16:42:41 +0000 (16:42 +0000)
Makefile.in

index 14eab14b830338765367ffda32381ac99e97c41e..aec17f0895d8d9c7603cd22b0dd8517123e6b98e 100644 (file)
@@ -166,7 +166,7 @@ LIBRARY=    libpython$(VERSION).a
 all:           $(LIBRARY) python sharedmods
 
 # Build the interpreter
-python:                $(LIBRARY) buildno
+python:                $(LIBRARY) buildno Modules/python.o
                expr `cat buildno` + 1 >buildno1
                mv -f buildno1 buildno
                $(CC) -c $(CFLAGS) -DBUILD=`cat buildno` \
@@ -178,6 +178,9 @@ python:             $(LIBRARY) buildno
                        prefix="$(prefix)" exec_prefix="$(exec_prefix)" \
                        LIBRARY=../$(LIBRARY) link
 
+Modules/python.o: $(srcdir)/Modules/python.c
+               cd Modules; $(MAKE) OPT="$(OPT)" python.o
+
 buildno:
                echo 0 >buildno