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
e030f86c
Commit
e030f86c
authored
May 17, 2011
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userspace/libswitchhw: cleaned up Makefile
parent
21cfbe43
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
16 deletions
+15
-16
Makefile
userspace/libswitchhw/Makefile
+15
-16
No files found.
userspace/libswitchhw/Makefile
View file @
e030f86c
include
../../Makedefs
CC
=
$(CROSS_COMPILE_ARM
)
gcc
CC
=
$(CROSS_COMPILE
)
gcc
AR
=
$(CROSS_COMPILE_ARM
)
ar
AR
=
$(CROSS_COMPILE
)
ar
OBJS
=
pio.o pio_pins.o trace.o init.o fpga_io.o util.o ad9516.o fpgaboot.o minilzo/minilzo.o clkb_io.o xpoint.o hpll.o mblaster.o phy_calibration.o dmpll.o pps_gen.o watchdog.
o
CFLAGS
=
-I
.
-O2
-I
../include
-DDEBUG
-I
./minilz
o
CFLAGS
=
-I
.
-O2
-I
../include
-I
../include
-DDEBUG
-I
./minilzo
OBJS
=
pio.o pio_pins.o trace.o init.o fpga_io.o util.o ad9516.o
\
OUTPUT
=
libswitchhw.a
fpgaboot.o minilzo/minilzo.o clkb_io.o xpoint.o hpll.o
\
mblaster.o phy_calibration.o dmpll.o pps_gen.o watchdog.o
all
:
$(OBJS)
LIB
=
libswitchhw.a
${
AR
}
rc
$(OUTPUT)
$(OBJS)
%.o
:
%.c
all
:
$(LIB)
${
CC
}
-c
$^
$(CFLAGS)
-o
$@
install
:
all
$(LIB)
:
$(OBJS)
scp
$(OUTPUT)
root@192.168.1.2:/root
$(AR)
rc
$@
$^
install
:
all
install
-d
$(WR_INSTALL_ROOT)
/lib
install
$(LIB)
$(WR_INSTALL_ROOT)
/lib
clean
:
clean
:
rm
-f
$(OUTPUT)
$(OBJS)
rm
-f
$(LIB)
$(OBJS)
deploy
:
\ 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