Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Anders Blomdell
LabComm
Commits
26636eec
Commit
26636eec
authored
Jun 22, 2015
by
Sven Gestegård Robertz
Browse files
hacked (DY)LD_LIBRARY_PATH into os_compat.mk
parent
1790d87b
Changes
2
Show whitespace changes
Inline
Side-by-side
examples/user_types/Makefile
View file @
26636eec
...
...
@@ -76,19 +76,19 @@ run:
@
java
-cp
.:
${LCDIR}
/lib/java/labcomm2014.jar:
${GENDIR}
Decoder encoded_data_j
@echo "************ running C decoder
:
*****************"
@
LD_LIBRARY_PATH
=
${LCDIR}
/lib/c/ ./example_decoder encoded_data_j
@
${
LD_LIBRARY_PATH
_NAME}
=
${LCDIR}
/lib/c/ ./example_decoder encoded_data_j
@echo "************ running python decoder (from wiki_example)
:
"
@
PYTHONPATH
=
${LCDIR}
/lib/python ../wiki_example/example_decoder.py encoded_data_j LabComm2014
@echo "************ running C encoder
:
*****************"
@
LD_LIBRARY_PATH
=
${LCDIR}
/lib/c/ ./example_encoder encoded_data_c
@
${
LD_LIBRARY_PATH
_NAME}
=
${LCDIR}
/lib/c/ ./example_encoder encoded_data_c
@echo "************ running Java decoder
:
*****************"
@
java
-cp
.:
${LCDIR}
/lib/java/labcomm2014.jar:
${GENDIR}
Decoder encoded_data_c
@echo "************ running C decoder
:
*****************"
@
LD_LIBRARY_PATH
=
${LCDIR}
/lib/c/ ./example_decoder encoded_data_c
@
${
LD_LIBRARY_PATH
_NAME}
=
${LCDIR}
/lib/c/ ./example_decoder encoded_data_c
@echo "************ running python decoder (from wiki_example)
:
"
@
PYTHONPATH
=
${LCDIR}
/lib/python ../wiki_example/example_decoder.py encoded_data_c LabComm2014
...
...
@@ -100,7 +100,7 @@ run:
@
java
-cp
.:
${LCDIR}
/lib/java/labcomm2014.jar:
${GENDIR}
Decoder encoded_data_p
@echo "************ running C decoder
:
*****************"
@
LD_LIBRARY_PATH
=
${LCDIR}
/lib/c/ ./example_decoder encoded_data_p
@
${
LD_LIBRARY_PATH
_NAME}
=
${LCDIR}
/lib/c/ ./example_decoder encoded_data_p
@echo "************ running python decoder (from wiki_example)
:
"
PYTHONPATH
=
${LCDIR}
/lib/python ../wiki_example/example_decoder.py encoded_data_p LabComm2014
...
...
@@ -118,22 +118,22 @@ runwcs: build ExampleEncoder.exe ExampleDecoder.exe
@
java
-cp
.:
${LCDIR}
/lib/java/labcomm2014.jar:
${GENDIR}
Decoder encoded_data_j
@echo "************ running C decoder
:
*****************"
@
LD_LIBRARY_PATH
=
${LCDIR}
/lib/c/ ./example_decoder encoded_data_j
@
${
LD_LIBRARY_PATH
_NAME}
=
${LCDIR}
/lib/c/ ./example_decoder encoded_data_j
@echo "************ running python decoder (from wiki_example)
:
"
@
PYTHONPATH
=
${LCDIR}
/lib/python ../wiki_example/example_decoder.py encoded_data_j LabComm2014
@echo "************ running C# decoder
:
*****************"
@
LD_LIBRARY_PATH
=
${LCDIR}
/lib/c/ mono ./ExampleDecoder.exe encoded_data_j
@
${
LD_LIBRARY_PATH
_NAME}
=
${LCDIR}
/lib/c/ mono ./ExampleDecoder.exe encoded_data_j
@echo "************ running C encoder
:
*****************"
@
LD_LIBRARY_PATH
=
${LCDIR}
/lib/c/ ./example_encoder encoded_data_c
@
${
LD_LIBRARY_PATH
_NAME}
=
${LCDIR}
/lib/c/ ./example_encoder encoded_data_c
@echo "************ running Java decoder
:
*****************"
@
java
-cp
.:
${LCDIR}
/lib/java/labcomm2014.jar:
${GENDIR}
Decoder encoded_data_c
@echo "************ running C decoder
:
*****************"
@
LD_LIBRARY_PATH
=
${LCDIR}
/lib/c/ ./example_decoder encoded_data_c
@
${
LD_LIBRARY_PATH
_NAME}
=
${LCDIR}
/lib/c/ ./example_decoder encoded_data_c
@echo "************ running python decoder (from wiki_example)
:
"
@
PYTHONPATH
=
${LCDIR}
/lib/python ../wiki_example/example_decoder.py encoded_data_c LabComm2014
...
...
@@ -148,7 +148,7 @@ runwcs: build ExampleEncoder.exe ExampleDecoder.exe
@
java
-cp
.:
${LCDIR}
/lib/java/labcomm2014.jar:
${GENDIR}
Decoder encoded_data_p
@echo "************ running C decoder
:
*****************"
@
LD_LIBRARY_PATH
=
${LCDIR}
/lib/c/ ./example_decoder encoded_data_p
@
${
LD_LIBRARY_PATH
_NAME}
=
${LCDIR}
/lib/c/ ./example_decoder encoded_data_p
@echo "************ running C# decoder
:
*****************"
@
mono ./ExampleDecoder.exe encoded_data_p
...
...
lib/c/os_compat.mk
View file @
26636eec
...
...
@@ -10,6 +10,7 @@ ifeq ($(UNAME_S),Linux)
CFLAGS_TEST
=
$(CFLAGS)
-Itest
LDFLAGS
=
-L
..
LDLIBS
=
-llabcomm
$(LIBVERSION)
-lrt
LD_LIBRARY_PATH_NAME
=
LD_LIBRARY_PATH
MAKESHARED
=
gcc
-o
$1
-shared
-Wl
,-soname,
$2
$3
-lc
-lrt
else
ifeq
($(UNAME_S),Darwin)
#CC=$(CROSS_COMPILE)clang
...
...
@@ -24,6 +25,7 @@ else ifeq ($(UNAME_S),Darwin)
CFLAGS
+=
-std
=
c99
LDFLAGS
=
-L
..
LDLIBS
=
-llabcomm
$(LIBVERSION)
LD_LIBRARY_PATH_NAME
=
DYLD_LIBRARY_PATH
MAKESHARED
=
clang
-o
$1
-shared
-Wl
,-install_name,
$2
$3
-lc
else
ifneq
($(findstring CYGWIN,$(UNAME_S)),)
CC
=
$(CROSS_COMPILE)
gcc
...
...
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