summaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1994-09-12 10:56:06 (GMT)
committerGuido van Rossum <guido@python.org>1994-09-12 10:56:06 (GMT)
commitac405f6c4ec7215b7d8f88e4002a1322eaba3df1 (patch)
treececf1c7e225bbb1f6540a912e5158d76ee2a8651 /Makefile.in
parent7cc5abd4548629cc41d3951576f41ff2ddd7b5f7 (diff)
downloadcpython-ac405f6c4ec7215b7d8f88e4002a1322eaba3df1.zip
cpython-ac405f6c4ec7215b7d8f88e4002a1322eaba3df1.tar.gz
cpython-ac405f6c4ec7215b7d8f88e4002a1322eaba3df1.tar.bz2
Shared library support
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in21
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in
index 1fe5701..3f12b40 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -29,6 +29,9 @@ srcdir= @srcdir@
VPATH= @srcdir@
INSTALL= @INSTALL@
+# Machine-dependent subdirectories
+MACHDEP= @MACHDEP@
+
# Install prefixes are treated specially by the configure script:
# it only changes these lines if it has received a --prefix=... or
# --exec-prefix=... command line option. Note that $(prefix) is
@@ -42,6 +45,13 @@ prefix= /usr/local
# Install prefix for architecture-dependent files
exec_prefix= $(prefix)
+# Symbols used for using shared libraries
+SO= @SO@
+LDSHARED= @LDSHARED@
+CCSHARED= @CCSHARED@
+LINKFORSHARED= @LINKFORSHARED@
+DESTSHARED= $(prefix)/lib/python/$(MACHDEP)
+
# Programs
SHELL= /bin/sh
@@ -132,6 +142,17 @@ libainstall: all
$(INSTALL) config.h $(LIBPL)/config.h
$(INSTALL) $(srcdir)/Python/frozenmain.c $(LIBPL)/frozenmain.c
+# install the dynamically loadable modules
+sharedinstall:
+ cd Modules; $(MAKE) \
+ OPT="$(OPT)" \
+ SO="$(SO)" \
+ LDSHARED="$(LDSHARED)" \
+ CCSHARED="$(CCSHARED)" \
+ LINKFORSHARED="$(LINKFORSHARED)" \
+ DESTSHARED="$(DESTSHARED)" \
+ sharedinstall
+
# Build the sub-Makefiles
Makefiles: config.status
(cd Modules; $(MAKE) -f Makefile.pre Makefile)