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
be6d9869
Commit
be6d9869
authored
Jun 30, 2011
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
on-switch-tests/wr_mon: redone Makefile
parent
ab63b0f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
16 deletions
+17
-16
Makefile
on-switch-tests/wr_mon/Makefile
+17
-16
No files found.
on-switch-tests/wr_mon/Makefile
View file @
be6d9869
include
../../../Makedefs
# # Standard stanza for cross-compilation (courtesy of the linux makefile)
AS
=
$(CROSS_COMPILE)
as
LD
=
$(CROSS_COMPILE)
ld
CC
=
$(CROSS_COMPILE)
gcc
CPP
=
$(CC)
-E
AR
=
$(CROSS_COMPILE)
ar
NM
=
$(CROSS_COMPILE)
nm
STRIP
=
$(CROSS_COMPILE)
strip
OBJCOPY
=
$(CROSS_COMPILE)
objcopy
OBJDUMP
=
$(CROSS_COMPILE)
objdump
CC
=
$(CROSS_COMPILE_ARM)
gcc
OBJS
=
wr_mon.o term.o
LDFLAGS
=
-lswitchhw
-L
../../libswitchhw
-L
../../libwripc
-L
../../libptpnetif
-lwripc
-lptpnetif
CFLAGS
=
-I
.
-O2
-I
../../include
-DDEBUG
-I
../../../kernel/include
-I
../../libptpnetif
-I
../../PTPWRd
-I
../../wrsw_hal
-I
../../libwripc
-g
OUTPUT
=
wr_mon
all
:
$(OBJS)
make
-C
../../libswitchhw
${
CC
}
-o
$(OUTPUT)
$(OBJS)
$(LDFLAGS)
MON_OBJS
=
wr_mon.o term.o
%.o
:
%.c
${
CC
}
-c
$^
$(CFLAGS)
CFLAGS
+=
-O2
-DDEBUG
-I
$(LINUX)
/include
run
:
all
-
scp
$(OUTPUT)
root@192.168.1.16:/tmp
ALL
=
wr_mon
deploy
:
cp
$(OUTPUT)
../../rootfs_override/wr/bin
all
:
$(ALL)
wr_mon
:
$(MON_OBJS)
${
CC
}
$^
$(LDFLAGS)
-o
$@
clean
:
rm
-f
$(OUTPUT)
$(OBJS)
\ No newline at end of file
rm
-f
$(ALL)
*
.o
*
~
\ No newline at end of file
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