summaryrefslogtreecommitdiffstats
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2003-01-01 20:07:49 (GMT)
committerSkip Montanaro <skip@pobox.com>2003-01-01 20:07:49 (GMT)
commitdecc6a47df823a988845d3753a4cfb7a85b80828 (patch)
tree8ba9542f81b234b72bd5a71eeee38ef80e75fe7b /Makefile.pre.in
parentdc392e31439d9992ea0101abaca09bcb78ebc311 (diff)
downloadcpython-decc6a47df823a988845d3753a4cfb7a85b80828.zip
cpython-decc6a47df823a988845d3753a4cfb7a85b80828.tar.gz
cpython-decc6a47df823a988845d3753a4cfb7a85b80828.tar.bz2
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
compiler flags which are necessary to get a clean compile. The former is for user-specified optimizer, debug, trace fiddling. See patch 640843. Add /sw/lib and /sw/include to setup.py search paths on Darwin to take advantage of fink goodies. Add scriptsinstall target to Makefile to install certain scripts from Tools/scripts directory.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 2dde4af..6683c88 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -54,7 +54,8 @@ MAKESETUP= $(srcdir)/Modules/makesetup
# Compiler options
OPT= @OPT@
-CFLAGS= $(OPT)
+BASECFLAGS= @BASECFLAGS@
+CFLAGS= $(BASECFLAGS) $(OPT)
CPPFLAGS= -I. -I$(srcdir)/Include
LDFLAGS= @LDFLAGS@
LDLAST= @LDLAST@
@@ -844,6 +845,13 @@ idleinstall:
--install-scripts=$(BINDIR) \
--install-platlib=$(DESTSHARED)
+# This installs a few of the useful scripts in Tools/scripts
+scriptsinstall:
+ SRCDIR=$(srcdir) \
+ ./$(BUILDPYTHON) $(srcdir)/Tools/scripts/setup.py install \
+ --prefix=$(prefix) \
+ --install-scripts=$(BINDIR)
+
# Build the toplevel Makefile
Makefile.pre: Makefile.pre.in config.status
CONFIG_FILES=Makefile.pre CONFIG_HEADERS= $(SHELL) config.status