summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-09-22 15:38:21 (GMT)
committerGuido van Rossum <guido@python.org>2000-09-22 15:38:21 (GMT)
commitff555e383d41e1069e9943dbabad227a1d9065bb (patch)
tree232669af8a2d7aad15a34f03ad26becf8b008114 /Modules
parentef5f2b9dbbfade547daf1e360371a59e80006462 (diff)
downloadcpython-ff555e383d41e1069e9943dbabad227a1d9065bb.zip
cpython-ff555e383d41e1069e9943dbabad227a1d9065bb.tar.gz
cpython-ff555e383d41e1069e9943dbabad227a1d9065bb.tar.bz2
Address Bug #115057: add a --with-suffix option to set the EXE
variable in the Makefiles from the configure script. Usefil for Cygwin and Mac OS X builds.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Makefile.pre.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/Makefile.pre.in b/Modules/Makefile.pre.in
index 7555abf..5602d30 100644
--- a/Modules/Makefile.pre.in
+++ b/Modules/Makefile.pre.in
@@ -41,6 +41,9 @@ prefix= @prefix@
# Install prefix for architecture-dependent files
exec_prefix= @exec_prefix@
+# Executable suffix (.exe on Windows and Mac OS X)
+EXE= @EXE@
+
# Expanded directories
BINDIR= $(exec_prefix)/bin
LIBDIR= $(exec_prefix)/lib
@@ -118,13 +121,10 @@ add2lib: $(OBJS)
$(AR) cr $(LIBRARY) $(OBJS)
touch add2lib
-# Use ``EXE=.exe'' for Unix emulations on DOS/Windows
-EXE=
-
# This target is used by the master Makefile to link the final binary.
link: $(MAINOBJ)
$(LINKCC) $(LDFLAGS) $(LINKFORSHARED) $(MAINOBJ) \
- $(LDLIBRARY) $(MODLIBS) $(LIBS) $(SYSLIBS) -o python $(LDLAST)
+ $(LDLIBRARY) $(MODLIBS) $(LIBS) $(SYSLIBS) -o python$(EXE) $(LDLAST)
mv python$(EXE) ../python$(EXE)
clean: