Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
f6eb8dd1
Commit
f6eb8dd1
authored
Jan 07, 2010
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Py3 fixes for embedded example.
parent
1bc30fdf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Demos/embed/Makefile
Demos/embed/Makefile
+4
-4
No files found.
Demos/embed/Makefile
View file @
f6eb8dd1
# Makefile for creating our standalone Cython program
PYVERSION
=
$(
shell
python
-c
"import sys; print
sys.version[:3]
"
)
PYPREFIX
=
$(
shell
python
-c
"import sys; print
sys.prefix
"
)
LINKFORSHARED
=
$(
shell
python
-c
"import distutils.sysconfig; print
distutils.sysconfig.get_config_var('LINKFORSHARED'
)
"
)
PYVERSION
=
$(
shell
python
-c
"import sys; print
(sys.version[:3]
)
"
)
PYPREFIX
=
$(
shell
python
-c
"import sys; print
(sys.prefix
)
"
)
LINKFORSHARED
=
$(
shell
python
-c
"import distutils.sysconfig; print
(distutils.sysconfig.get_config_var('LINKFORSHARED'
)
)
"
)
INCLUDES
=
-I
$(PYPREFIX)
/include/python
$(PYVERSION)
embedded
:
embedded.o
gcc
-o
$@
$^
$(LINKFORSHARED)
-lpython
$(PYVERSION)
-lm
-lpthread
-ldl
-lutil
gcc
-o
$@
$^
$(LINKFORSHARED)
-lpython
$(PYVERSION)
-lm
-lpthread
-ldl
-lutil
-L
$(PYPREFIX)
/lib
embedded.o
:
embedded.c
gcc
-c
$^
$(INCLUDES)
...
...
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