File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -89,8 +89,8 @@ DESTSHARED= $(BINLIBDEST)/lib-dynload
8989# Shell used by make (some versions default to the login shell, which is bad)
9090SHELL = /bin/sh
9191
92- # Use ``EXE= .exe'' for Unix emulations on DOS/ Windows (e.g. GNUWIN32 )
93- EXE =
92+ # Executable suffix ( .exe on Windows and Mac OS X )
93+ EXE = @EXE@
9494
9595# Modes for directories, executables and data files created by the
9696# install process. Default to user-only-writable for all file types.
Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ prefix= @prefix@
4141# Install prefix for architecture-dependent files
4242exec_prefix= @exec_prefix@
4343
44+ # Executable suffix (.exe on Windows and Mac OS X)
45+ EXE= @EXE@
46+
4447# Expanded directories
4548BINDIR= $(exec_prefix)/bin
4649LIBDIR= $(exec_prefix)/lib
@@ -118,13 +121,10 @@ add2lib: $(OBJS)
118121 $(AR) cr $(LIBRARY) $(OBJS)
119122 touch add2lib
120123
121- # Use ``EXE=.exe'' for Unix emulations on DOS/Windows
122- EXE=
123-
124124# This target is used by the master Makefile to link the final binary.
125125link: $(MAINOBJ)
126126 $(LINKCC) $(LDFLAGS) $(LINKFORSHARED) $(MAINOBJ) \
127- $(LDLIBRARY) $(MODLIBS) $(LIBS) $(SYSLIBS) -o python $(LDLAST)
127+ $(LDLIBRARY) $(MODLIBS) $(LIBS) $(SYSLIBS) -o python$(EXE) $(LDLAST)
128128 mv python$(EXE) ../python$(EXE)
129129
130130clean:
You can’t perform that action at this time.
0 commit comments