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
eb6246c5
Commit
eb6246c5
authored
13 years ago
by
Alessandro Rubini
Browse files
Options
Downloads
Patches
Plain Diff
userspace/wrsw_rtud: cleaned up Makefile
parent
a6513e44
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
userspace/wrsw_rtud/Makefile
+19
-18
19 additions, 18 deletions
userspace/wrsw_rtud/Makefile
with
19 additions
and
18 deletions
userspace/wrsw_rtud/Makefile
+
19
−
18
View file @
eb6246c5
include
../../Makedefs
PROGRAM
:=
wrsw_rtud
SRCFILES
:=
mac.c rtu_drv.c rtu_hash.c rtu_fd.c rtud.c rtud_exports.c utils.c
OBJFILES
:=
$(
patsubst %.c,%.o,
$(
SRCFILES
))
PROGRAM
=
wrsw_rtud
SRCFILES
=
mac.c rtu_drv.c rtu_hash.c rtu_fd.c rtud.c
\
rtud_exports.c utils.c
OBJFILES
=
$(
patsubst %.c,%.o,
$(
SRCFILES
))
CC
:=
$(
CROSS_COMPILE_ARM
)
gcc
INCLUDES
:=
-I
.
-I
../include
-I
../rubi-repos/ptp-noposix/libptpnetif
-I
../wrsw_hal
-I
../rubi-repos/ptp-noposix/libwripc
\
-I
../../kernel/include
-I
$(
CROSS_COMPILE_ARM_PATH
)
/../include
CFLAGS
:=
-O2
-DDEBUG
-Wall
-ggdb
-DTRACE_ALL
LDFLAGS
:=
-L
../libswitchhw
-L
../rubi-repos/ptp-noposix
-lswitchhw
\
-lptpnetif
-lwripc
-lpthread
CC
=
$(
CROSS_COMPILE
)
gcc
RM
:=
rm
-f
# We must include stuff from various headers, which are installed.
# If this is build under build scripts, it's $WRS_OUTPUT_DIR/images/wr
WR_INSTALL_ROOT
?=
/usr/lib/white-rabbit
WR_INCLUDE
=
$(
WR_INSTALL_ROOT
)
/include
WR_LIB
=
$(
WR_INSTALL_ROOT
)
/lib
CFLAGS
=
-O2
-DDEBUG
-Wall
-ggdb
-DTRACE_ALL
\
-I
.
-I
../include
-I
$(
WR_INCLUDE
)
-I
$(
LINUX
)
/include
# -I$(CROSS_COMPILE_ARM_PATH)/../include
LDFLAGS
:=
-L
$(
WR_LIB
)
-lswitchhw
-lptpnetif
-lwripc
-lpthread
RM
:=
rm
-f
.PHONY
:
all
...
...
@@ -21,14 +28,8 @@ all: $(PROGRAM)
$(PROGRAM)
:
$(OBJFILES)
$(
CC
)
-o
$@
$(
OBJFILES
)
$(
LDFLAGS
)
run
:
all
scp
$(
PROGRAM
)
root@
$(
T
)
:/tmp
clean
:
$(
RM
)
$(
PROGRAM
)
$(
OBJFILES
)
.c.o
:
$(
CC
)
-c
$(
CFLAGS
)
$(
INCLUDES
)
-o
$@
$<
deploy
:
all
install
:
all
cp
$(
PROGRAM
)
$(
WR_INSTALL_ROOT
)
/bin
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