summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-10-08 17:21:11 (GMT)
committerGuido van Rossum <guido@python.org>1996-10-08 17:21:11 (GMT)
commit434882e6e9a6b8285b180818c2b508058c4af355 (patch)
tree6926244023be0c2596929c8f874aba311a173491 /Misc
parent8a91302cf114d88598a6a3267b8b9f01ef8b5c62 (diff)
downloadcpython-434882e6e9a6b8285b180818c2b508058c4af355.zip
cpython-434882e6e9a6b8285b180818c2b508058c4af355.tar.gz
cpython-434882e6e9a6b8285b180818c2b508058c4af355.tar.bz2
Added 'static' target; add variable TARGET replacing python
Diffstat (limited to 'Misc')
-rw-r--r--Misc/Makefile.pre.in11
1 files changed, 8 insertions, 3 deletions
diff --git a/Misc/Makefile.pre.in b/Misc/Makefile.pre.in
index 3621314..dcc57f2 100644
--- a/Misc/Makefile.pre.in
+++ b/Misc/Makefile.pre.in
@@ -83,6 +83,9 @@ VPATH= .
# === Variables that you may want to customize (rarely) ===
+# (Static) build target
+TARGET= python
+
# Add more -I and -D options here
CFLAGS= $(OPT) -I$(INCLUDEPY) -I$(LIBPL) $(DEFS)
@@ -159,15 +162,17 @@ ADDOBJS= $(LIBPL)/main.o getpath.o config.o
default: sharedmods
# Build everything
-all: python sharedmods
+all: static sharedmods
# Build shared libraries from our extension modules
sharedmods: $(SHAREDMODS)
# Build a static Python binary containing our extension modules
-python: $(ADDOBJS) lib.a $(PYTHONLIBS) Makefile $(BASELIB)
+static: $(TARGET)
+$(TARGET): $(ADDOBJS) lib.a $(PYTHONLIBS) Makefile $(BASELIB)
$(CC) $(LDFLAGS) $(ADDOBJS) lib.a $(PYTHONLIBS) \
- $(LINKPATH) $(BASELIB) $(MODLIBS) $(LIBS) $(SYSLIBS) -o python
+ $(LINKPATH) $(BASELIB) $(MODLIBS) $(LIBS) $(SYSLIBS) \
+ -o $(TARGET)
# Build the library containing our extension modules
lib.a: $(MODOBJS)