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
b398d96e
Commit
b398d96e
authored
Jul 19, 1997
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated the Makefile to work with the new build strategy.
parent
23797301
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
19 deletions
+18
-19
Demo/embed/Makefile
Demo/embed/Makefile
+18
-19
No files found.
Demo/embed/Makefile
View file @
b398d96e
# Makefile for embedded Python use demo
# Makefile for embedded Python use demo.
# (This version tailored for CNRI and Solaris; edit lines marked with XXX.)
# Top of the build tree and source tree
# XXX The compiler you are using
CC
=
gcc
# XXX Top of the build tree and source tree
blddir
=
../..
srcdir
=
../..
# Python version
VERSION
=
1.5
# Compiler flags
OPT
=
-g
INCLUDES
=
-I
$(srcdir)
/Include
-I
$(blddir)
DEFINES
=
-DHAVE_CONFIG_H
CFLAGS
=
$(OPT)
$(DEFINES)
$(INCLUDES)
CFLAGS
=
$(OPT)
$(INCLUDES)
# Libraries (must be in this order!)
MYLIBS
=
$(blddir)
/Modules/libModules.a
\
$(blddir)
/Python/libPython.a
\
$(blddir)
/Objects/libObjects.a
\
$(blddir)
/Parser/libParser.a
# The Python library
LIBPYTHON
=
$(blddir)
/libpython
$(VERSION)
.a
# XXX edit MODLIBS, LIBS and SYSLIBS to match $(blddir)/Modules/Makefile
MODLIBS
=
LIBS
=
# XXX edit LIBS (in particular) to match $(blddir)/Modules/Makefile
LIBS
=
-lsocket
-lnsl
-ldl
-lreadline
-ltermcap
SYSLIBS
=
-lm
ALLLIBS
=
$(MYLIBS)
$(MODLIBS)
$(LIBS)
$(SYSLIBS)
MODLIBS
=
ALLLIBS
=
$(LIBPYTHON)
$(MODLIBS)
$(LIBS)
$(SYSLIBS)
# Build the demo application
all
:
demo
demo
:
demo.o config.o
$(CC)
demo.o config.o
$(ALLLIBS)
-o
demo
# Build config.o, suppressing the main() function
config.o
:
$(blddir)/Modules/config.c
$(CC)
$(CFLAGS)
-DNO_MAIN
-c
$(blddir)
/Modules/config.c
demo
:
demo.o
$(CC)
demo.o
$(ALLLIBS)
-o
demo
# Administrative targets
...
...
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