Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
Beam Positoning Monitor - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Beam Positoning Monitor - Software
Commits
1434a1be
Commit
1434a1be
authored
May 25, 2014
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples/Makefile: compile with libclient
parent
3a0fe8e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
Makefile
examples/Makefile
+5
-8
No files found.
examples/Makefile
View file @
1434a1be
...
...
@@ -34,13 +34,12 @@ CFLAGS_PLATFORM = -Wall -Wextra -Werror
LDFLAGS_PLATFORM
=
# Libraries
LIBS
=
-lzmq
-lczmq
-lmdp
LIBS
=
-l
bpmclient
-l
zmq
-lczmq
-lmdp
# General library flags -L<libdir>
LFLAGS
=
# Include directories
INCLUDE_DIRS
=
-I
.
-Iinclude
-I
../hal/debug
-I
../hal/include
-I
../hal/sm_io
\
-I
../hal/sm_io/modules/acq/
-I
../hal/include/hw
INCLUDE_DIRS
=
-I
.
-I
/usr/local/lib
# Merge all flags. Optimize for size (-Os)
CFLAGS
+=
$(CFLAGS_PLATFORM)
$(CFLAGS_DEBUG)
...
...
@@ -49,17 +48,15 @@ CFLAGS += $(CFLAGS_PLATFORM) $(CFLAGS_DEBUG)
LDFLAGS
=
$(LDFLAGS_PLATFORM)
#-ffunction-sections -fdata-sections -Wl,--gc-sections
OUT
=
acq
OUT
=
client
acq
# Makefile rules
all
:
$(OUT)
client
:
client.c ../hal/debug/debug_print.c ../hal/sm_io/sm_io_err.c
\
../hal/sm_io/modules/acq/ddr3_map.c ../hal/sm_io/modules/acq/sm_io_acq_codes.c
client
:
client.c
$(CC)
$(LFLAGS)
$(CFLAGS)
$(INCLUDE_DIRS)
$^
-o
$@
$(LIBS)
acq
:
acq.c ../hal/debug/debug_print.c ../hal/sm_io/sm_io_err.c
\
../hal/sm_io/modules/acq/ddr3_map.c ../hal/sm_io/modules/acq/sm_io_acq_codes.c
acq
:
acq.c
$(CC)
$(LFLAGS)
$(CFLAGS)
$(INCLUDE_DIRS)
$^
-o
$@
$(LIBS)
#BAD
...
...
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