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.
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 @@
# Compiler options
OPT= @OPT@
-CFLAGS= $(OPT)
+BASECFLAGS= @BASECFLAGS@
+CFLAGS= $(BASECFLAGS) $(OPT)
CPPFLAGS= -I. -I$(srcdir)/Include
LDFLAGS= @LDFLAGS@
LDLAST= @LDLAST@
@@ -844,6 +845,13 @@
--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