mirror of https://github.com/python/cpython
Add unsupported variable EXE which can be set to .exe on systems where
the executable must have that suffix. Note that there is no corresponding support in the top-level Makefile because I'm not sure that the install targets there make sense under these circumstances.
This commit is contained in:
parent
1171ee6aaf
commit
d14c06819e
|
@ -123,11 +123,14 @@ add2lib: $(OBJS)
|
||||||
$(AR) cr $(LIBRARY) $(OBJS)
|
$(AR) cr $(LIBRARY) $(OBJS)
|
||||||
touch add2lib
|
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.
|
# This target is used by the master Makefile to link the final binary.
|
||||||
link: $(MAINOBJ)
|
link: $(MAINOBJ)
|
||||||
$(LINKCC) $(LDFLAGS) $(OPT) $(LINKFORSHARED) $(MAINOBJ) \
|
$(LINKCC) $(LDFLAGS) $(OPT) $(LINKFORSHARED) $(MAINOBJ) \
|
||||||
$(LIBRARY) $(MODLIBS) $(LIBS) $(SYSLIBS) -o python $(LDLAST)
|
$(LIBRARY) $(MODLIBS) $(LIBS) $(SYSLIBS) -o python $(LDLAST)
|
||||||
mv python ../python
|
mv python$(EXE) ../python$(EXE)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-rm -f *.o python core *~ [@,#]* *.old *.orig *.rej add2lib
|
-rm -f *.o python core *~ [@,#]* *.old *.orig *.rej add2lib
|
||||||
|
|
Loading…
Reference in New Issue