Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
83
Issues
83
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
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
White Rabbit Switch - Software
Commits
48228ed6
Commit
48228ed6
authored
Jun 12, 2014
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userspace: don't use -DDEBUG unless requested at build time
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
fa862196
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
3 deletions
+16
-3
Makefile
userspace/tools/Makefile
+5
-1
Makefile
userspace/wrsw_hal/Makefile
+5
-1
Makefile
userspace/wrsw_rtud/Makefile
+6
-1
No files found.
userspace/tools/Makefile
View file @
48228ed6
...
...
@@ -19,7 +19,7 @@ GIT_VER = $(shell git describe --always --dirty=+ | sed 's;^wr-switch-sw-;;')
GIT_USR
=
$(
shell
git config
--get-all
user.name
)
# LOTs of includes
CFLAGS
=
-O2
-
DDEBUG
-
g
-Wall
\
CFLAGS
=
-O2
-g
-Wall
\
-I
$(LINUX)
/include
\
-I
$(LINUX)
/arch/arm/mach-at91/include
\
-I
../libptpnetif
\
...
...
@@ -29,6 +29,10 @@ CFLAGS = -O2 -DDEBUG -g -Wall \
-I
../ptp-noposix/PTPWRd
\
-I
../include
ifdef
WRS_TOOLS_DEBUG
CFLAGS
+=
-DDEBUG
endif
LDFLAGS
=
-L
../mini-rpc
\
-L
../libptpnetif
\
-L
../libswitchhw
\
...
...
userspace/wrsw_hal/Makefile
View file @
48228ed6
...
...
@@ -11,9 +11,13 @@ WR_INSTALL_ROOT ?= /usr/lib/white-rabbit
WR_INCLUDE
=
$(WR_INSTALL_ROOT)
/include
WR_LIB
=
$(WR_INSTALL_ROOT)
/lib
CFLAGS
=
-g
-Wall
-D
DEBUG
-D
RT_CLIENT
\
CFLAGS
=
-g
-Wall
-DRT_CLIENT
\
-I
../include
-I
../mini-rpc
-I
$(WR_INCLUDE)
ifdef
WRS_HAL_DEBUG
CFLAGS
+=
-DDEBUG
endif
LDFLAGS
=
-L
../libswitchhw
-L
../mini-rpc
\
-lminipc
-llua
-lm
-ldl
-lswitchhw
...
...
userspace/wrsw_rtud/Makefile
View file @
48228ed6
...
...
@@ -12,11 +12,16 @@ WR_INSTALL_ROOT ?= /usr/lib/white-rabbit
WR_INCLUDE
=
$(WR_INSTALL_ROOT)
/include
WR_LIB
=
$(WR_INSTALL_ROOT)
/lib
CFLAGS
=
-O2
-
DDEBUG
-
Wall
-ggdb
\
CFLAGS
=
-O2
-Wall
-ggdb
\
-I
../libptpnetif
-I
../wrsw_hal
\
-I
../mini-rpc
-I
../include
-I
$(WR_INCLUDE)
-I
$(LINUX)
/include
# -I$(CROSS_COMPILE_ARM_PATH)/../include
ifdef
WRS_RTUD_DEBUG
CFLAGS
+=
-DDEBUG
endif
LDFLAGS
:=
-L
../libptpnetif
-L
../libswitchhw
-L
../mini-rpc
\
-lswitchhw
-lptpnetif
-lpthread
-lminipc
...
...
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