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
86
Issues
86
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
eb6246c5
Commit
eb6246c5
authored
May 17, 2011
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userspace/wrsw_rtud: cleaned up Makefile
parent
a6513e44
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
18 deletions
+19
-18
Makefile
userspace/wrsw_rtud/Makefile
+19
-18
No files found.
userspace/wrsw_rtud/Makefile
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
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