Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
wr-switch-sw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
white-rabbit
wr-switch-sw
Commits
10910f56
Commit
10910f56
authored
May 17, 2011
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userspace/wrsw_hal: cleanep up Makefile
parent
487888ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
27 deletions
+26
-27
Makefile
userspace/wrsw_hal/Makefile
+26
-27
No files found.
userspace/wrsw_hal/Makefile
View file @
10910f56
include
../../Makedefs
CC
=
$(CROSS_COMPILE)
gcc
OBJS
=
hal_exports.o hal_main.o hal_ports.o hal_config.o
OUTPUT
=
wrsw_hal
CC
=
$(CROSS_COMPILE_ARM)
gcc
CFLAGS
=
-I
.
-g
-Wall
-I
../rubi-repos/ptp-noposix/libwripc
-I
../include
-I
../3rdparty/include
-DDEBUG
LDFLAGS
=
-L
../rubi-repos/ptp-noposix
-L
../libswitchhw
-lswitchhw
-lwripc
-L
../3rdparty/lib
-llua
-lm
all
:
$(OBJS)
make
-C
../libswitchhw
${
CC
}
-o
$(OUTPUT)
$(OBJS)
$(LDFLAGS)
%.o
:
%.c
${
CC
}
-c
$^
$(CFLAGS)
deploy
:
all
mkdir
-p
$(WR_INSTALL_ROOT)
/bin
cp
$(OUTPUT)
$(WR_INSTALL_ROOT)
/bin
upload
:
all
# - scp ../rootfs_override/wr/etc/wrsw_hal.conf root@$(T):/wr/etc
- scp $(OUTPUT) root@$(T)
:
/wr/bin
run
:
upload
#- ssh -t root@
$(T)
"export LD_LIBRARY_PATH=/wr/lib && /wr/bin/
$(OUTPUT)
"
run
:
BINARY
=
wrsw_hal
# We must include stuff from wr_ipc, which is 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
=
-g
-Wall
-DDEBUG
\
-I
.
-I
../include
-I
../3rdparty/include
-I
$(WR_INCLUDE)
LDFLAGS
=
-L
$(WR_INSTALL_ROOT)
/lib
-L
../3rdparty/lib
-L
$(WR_LIB)
\
-L
../rubi-repos/ptp-noposix
\
-lswitchhw
-lwripc
-llua
-lm
all
:
$(BINARY)
$(BINARY)
:
$(OBJS)
$(CC)
-o
$@
$^
$(LDFLAGS)
install
:
all
install
-d
$(WR_INSTALL_ROOT)
/bin
install
$(BINARY)
$(WR_INSTALL_ROOT)
/bin
clean
:
rm
-f
$(OUTPUT)
$(OBJS)
\ No newline at end of file
rm
-f
$(BINARY)
*
.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