summaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-07-19 19:38:43 (GMT)
committerGuido van Rossum <guido@python.org>1997-07-19 19:38:43 (GMT)
commit914fbd9ae67fd86cfe99e5e5139f2af82deb44e3 (patch)
treeb2aaea62bebda3ee1fddff9cb0b8be20da2636c9 /Makefile.in
parent1fd74a713ddcff0950c9bb4dca8d911ffc29324e (diff)
downloadcpython-914fbd9ae67fd86cfe99e5e5139f2af82deb44e3.zip
cpython-914fbd9ae67fd86cfe99e5e5139f2af82deb44e3.tar.gz
cpython-914fbd9ae67fd86cfe99e5e5139f2af82deb44e3.tar.bz2
New build procedure, using a single library libpython$(VERSION) at
this level. The old libraries Modules/libModules.a etc. don't exist any more. The libainstall target is updated to match.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in34
1 files changed, 21 insertions, 13 deletions
diff --git a/Makefile.in b/Makefile.in
index 7260f16..e903816 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -76,10 +76,8 @@
#
# See also the section "Build instructions" in the README file.
-# Interpreter version number, for library destination pathnames
-VERSION= 1.5
-
# Substitutions by configure
+VERSION= @VERSION@
srcdir= @srcdir@
VPATH= @srcdir@
RANLIB= @RANLIB@
@@ -141,11 +139,24 @@ DISTFILES= README ChangeLog $(CONFIGFILES)
DISTDIRS= $(SUBDIRS) $(SUBDIRSTOO) Ext-dummy
DIST= $(DISTFILES) $(DISTDIRS)
+LIBRARY= libpython$(VERSION).a
+
# Default target
-all: python
+all: $(LIBRARY) python
# Build the interpreter
-python: $(SUBDIRS)
+python: $(LIBRARY)
+ cd Modules; $(MAKE) OPT="$(OPT)" VERSION="$(VERSION)" \
+ prefix="$(prefix)" exec_prefix="$(exec_prefix)" \
+ LIBRARY=../$(LIBRARY) link
+
+# Build the library
+$(LIBRARY): $(SUBDIRS)
+ if test ! -f $(LIBRARY); \
+ then for i in $(SUBDIRS); do rm -f $$i/add2lib; done; true; \
+ else true; fi
+ for i in $(SUBDIRS); do \
+ (cd $$i; $(MAKE) VERSION="$(VERSION)" add2lib); done
$(SUBDIRS): Makefiles
@@ -161,7 +172,7 @@ Objects:
cd Objects ; $(MAKE) OPT="$(OPT)" VERSION="$(VERSION)" \
prefix="$(prefix)" exec_prefix="$(exec_prefix)" all
-Modules: Parser Python Objects
+Modules: Parser Python Objects
cd Modules ; $(MAKE) OPT="$(OPT)" VERSION="$(VERSION)" \
prefix="$(prefix)" exec_prefix="$(exec_prefix)" all
@@ -302,7 +313,7 @@ inclinstall:
$(INSTALL_DATA) $$i $(INCLUDEPY); \
done
-# Install the lib*.a files and miscellaneous stuff needed by extensions
+# Install the library and miscellaneous stuff needed for extending/embedding
# This goes into $(exec_prefix)
LIBPL= $(LIBP)/config
libainstall: all
@@ -315,11 +326,8 @@ libainstall: all
else true; \
fi; \
done
- @for i in $(SUBDIRS); do \
- echo Installing in subdirectory $$i; \
- $(INSTALL_DATA) $$i/lib$$i.a $(LIBPL)/lib$$i.a; \
- $(RANLIB) $(LIBPL)/lib$$i.a; \
- done
+ $(INSTALL_DATA) $(LIBRARY) $(LIBPL)/$(LIBRARY)
+ $(RANLIB) $(LIBPL)/$(LIBRARY)
$(INSTALL_DATA) Modules/config.c $(LIBPL)/config.c
$(INSTALL_DATA) $(srcdir)/Modules/getpath.c $(LIBPL)/getpath.c
$(INSTALL_DATA) $(srcdir)/Modules/getbuildinfo.c $(LIBPL)/getbuildinfo.c
@@ -420,7 +428,7 @@ clean: localclean
done
localclobber: localclean
- -rm -f tags TAGS python
+ -rm -f tags TAGS python $(LIBRARY)
-rm -f config.log config.cache config.h
clobber: localclobber