Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zenroom
Zenroom
Commits
432e84a8
Commit
432e84a8
authored
Sep 14, 2018
by
Jaromil
Browse files
general python flags
if -fPIC error arises again, that's due to make clean needed
parent
ba6c107f
Changes
3
Show whitespace changes
Inline
Side-by-side
Makefile
View file @
432e84a8
...
...
@@ -136,14 +136,14 @@ linux-lib: cflags += -shared -DLIBRARY
linux-python
:
apply-patches lua53 milagro lpeglabel
swig
-python
${pwd}
/build/swig.i
${gcc}
${cflags}
-c
${pwd}
/build/swig_wrap.c
\
-o
src/zen_python.o
$(
shell
pkg-config python
--cflags
)
-o
src/zen_python.o
CC
=
${gcc}
CFLAGS
=
"
${cflags}
"
LDFLAGS
=
"
${ldflags}
"
LDADD
=
"
${ldadd}
"
\
make
-C
src python
osx-python
:
apply-patches lua53 milagro lpeglabel
swig
-python
${pwd}
/build/swig.i
${gcc}
${cflags}
-c
${pwd}
/build/swig_wrap.c
\
-o
src/zen_python.o
$(
shell
pkg-config python
--cflags
)
-o
src/zen_python.o
CC
=
${gcc}
CFLAGS
=
"
${cflags}
"
LDFLAGS
=
"
${ldflags}
"
LDADD
=
"
${ldadd}
"
\
make
-C
src python
...
...
build/config.mk
View file @
432e84a8
...
...
@@ -68,6 +68,11 @@ ldflags := -lm
system
:=
Darwin
endif
ifneq
(,$(findstring python,$(MAKECMDGOALS)))
cflags
+=
$(
shell
pkg-config python
--cflags
)
ldflags
+=
$(
shell
pkg-config python
--libs
)
endif
ifneq
(,$(findstring javascript,$(MAKECMDGOALS)))
gcc
:=
${EMSCRIPTEN}
/emcc
ar
:=
${EMSCRIPTEN}
/emar
...
...
src/Makefile
View file @
432e84a8
...
...
@@ -55,7 +55,7 @@ linux-lib: ${SOURCES}
${CC}
${CFLAGS}
${SOURCES}
-o
libzenroom-
${ARCH}
-
${VERSION}
-
${BRANCH}
-
${HASH}
.so
${LDFLAGS}
${LDADD}
python
:
${SOURCES}
${LD}
-shared
${SOURCES}
zen_python.o
-o
_zenroom.so
${LDFLAGS}
${LDADD}
${LD}
-shared
${SOURCES}
zen_python.o
-o
_zenroom.so
${LDFLAGS}
${LDADD}
$(
shell
pkg-config python
--libs
)
go
:
${SOURCES}
${LD}
-shared
${SOURCES}
zen_go.o
-o
libzenroomgo.so
${LDFLAGS}
${LDADD}
...
...
Write
Preview
Supports
Markdown
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