@@ -164,10 +164,10 @@ LIBRARY= libpython$(VERSION).a
164
164
LDLIBRARY= @LDLIBRARY@
165
165
166
166
# Default target
167
-
all: $(LIBRARY) python sharedmods
167
+
all: $(LIBRARY) python$(EXE) sharedmods
168
168
169
169
# Build the interpreter
170
-
python: $(LIBRARY) buildno Modules/python.o
170
+
python$(EXE): $(LIBRARY) buildno Modules/python.o
171
171
expr `cat buildno` + 1 >buildno1
172
172
mv -f buildno1 buildno
173
173
$(CC) -c $(CFLAGS) -DBUILD=`cat buildno` \
@@ -186,7 +186,7 @@ buildno:
186
186
echo 0 >buildno
187
187
188
188
# Build the shared modules
189
-
sharedmods: python
189
+
sharedmods: python$(EXE)
190
190
cd Modules; $(MAKE) OPT="$(OPT)" VERSION="$(VERSION)" \
191
191
prefix="$(prefix)" exec_prefix="$(exec_prefix)" \
192
192
sharedmods
@@ -201,9 +201,13 @@ $(LIBRARY): $(SUBDIRS)
201
201
202
202
# This rule is only here for DG/UX!!!
203
203
libpython$(VERSION).so: $(LIBRARY)
204
-
test -d dgux || mkdir dgux
205
-
(cd dgux;ar x ../$^;ld -G -o ../$@ * )
206
-
/bin/rm -rf ./dgux
204
+
case `uname -s | tr -d '/ ' | tr '[A-Z]' '[a-z]'` in \
205
+
*dgux*) \
206
+
test -d dgux || mkdir dgux; \
207
+
(cd dgux;ar x ../$^;ld -G -o ../$@ * ); \
208
+
/bin/rm -rf ./dgux \
209
+
;; \
210
+
esac
207
211
208
212
# This rule is here for OPENSTEP/Rhapsody/MacOSX
209
213
libpython$(VERSION).dylib: $(LIBRARY)
@@ -230,8 +234,8 @@ Modules: Parser Python Objects
230
234
# Test the interpreter (twice, once without .pyc files, once with)
231
235
TESTOPTS=
232
236
TESTPROG= $(srcdir)/Lib/test/regrtest.py
233
-
TESTPYTHON= ./python
234
-
test: python
237
+
TESTPYTHON= ./python$(EXE)
238
+
test: python$(EXE)
235
239
-rm -f $(srcdir)/Lib/test/*.py[co]
236
240
-PYTHONPATH= $(TESTPYTHON) $(TESTPROG) $(TESTOPTS)
237
241
PYTHONPATH= $(TESTPYTHON) $(TESTPROG) $(TESTOPTS)
@@ -244,15 +248,15 @@ altinstall: altbininstall libinstall inclinstall libainstall sharedinstall
244
248
245
249
# Install the interpreter (by creating a hard link to python$(VERSION))
246
250
bininstall: altbininstall
247
-
-if test -f $(BINDIR)/python; \
248
-
then rm -f $(BINDIR)/python; \
251
+
-if test -f $(BINDIR)/python$(EXE); \
252
+
then rm -f $(BINDIR)/python$(EXE); \
249
253
else true; \
250
254
fi
251
255
(cd $(BINDIR); $(LN) python$(VERSION)$(EXE) python$(EXE))
252
256
253
257
# Install the interpreter with $(VERSION) affixed
254
258
# This goes into $(exec_prefix)
255
-
altbininstall: python
259
+
altbininstall: python$(EXE)
256
260
@for i in $(BINDIR); \
257
261
do \
258
262
if test ! -d $$i; then \
@@ -342,9 +346,9 @@ libinstall: python $(srcdir)/Lib/$(PLATDIR)
342
346
done; \
343
347
done
344
348
PYTHONPATH=$(LIBDEST) \
345
-
./python $(LIBDEST)/compileall.py $(LIBDEST)
349
+
./python$(EXE) $(LIBDEST)/compileall.py $(LIBDEST)
346
350
PYTHONPATH=$(LIBDEST) \
347
-
./python -O $(LIBDEST)/compileall.py $(LIBDEST)
351
+
./python$(EXE) -O $(LIBDEST)/compileall.py $(LIBDEST)
348
352
349
353
# Create the PLATDIR source directory, if one wasn't distributed..
350
354
$(srcdir)/Lib/$(PLATDIR):
@@ -459,7 +463,7 @@ config.status: $(srcdir)/configure
459
463
else $(SHELL) $(srcdir)/configure $(WITH); \
460
464
fi
461
465
462
-
.PRECIOUS: config.status python
466
+
.PRECIOUS: config.status python$(EXE)
463
467
464
468
# Rerun configure with the same options as it was run last time,
465
469
# provided the config.status script exists
@@ -508,7 +512,7 @@ clean: localclean
508
512
done
509
513
510
514
localclobber: localclean
511
-
-rm -f tags TAGS python $(LIBRARY) $(LDLIBRARY) *.o
515
+
-rm -f tags TAGS python$(EXE) $(LIBRARY) $(LDLIBRARY) *.o
512
516
-rm -f config.log config.cache config.h
513
517
514
518
clobber: localclobber
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4