Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
White Rabbit Switch - Software
Manage
Activity
Members
Labels
Plan
Issues
87
Issue boards
Milestones
Wiki
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
White Rabbit Switch - Software
Commits
48228ed6
Commit
48228ed6
authored
10 years ago
by
Alessandro Rubini
Browse files
Options
Downloads
Patches
Plain Diff
userspace: don't use -DDEBUG unless requested at build time
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
fa862196
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
userspace/tools/Makefile
+5
-1
5 additions, 1 deletion
userspace/tools/Makefile
userspace/wrsw_hal/Makefile
+5
-1
5 additions, 1 deletion
userspace/wrsw_hal/Makefile
userspace/wrsw_rtud/Makefile
+6
-1
6 additions, 1 deletion
userspace/wrsw_rtud/Makefile
with
16 additions
and
3 deletions
userspace/tools/Makefile
+
5
−
1
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
\
...
...
This diff is collapsed.
Click to expand it.
userspace/wrsw_hal/Makefile
+
5
−
1
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
-DDEBUG
-DRT_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
...
...
This diff is collapsed.
Click to expand it.
userspace/wrsw_rtud/Makefile
+
6
−
1
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment