Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
434882e6
Commit
434882e6
authored
Oct 08, 1996
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added 'static' target; add variable TARGET replacing python
parent
8a91302c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
Misc/Makefile.pre.in
Misc/Makefile.pre.in
+8
-3
No files found.
Misc/Makefile.pre.in
View file @
434882e6
...
...
@@ -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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment