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
fa59201e
Commit
fa59201e
authored
Jun 30, 2011
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
on-switch-tests/libs/Makefile: new file for libs
parent
d5443f9a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
0 deletions
+48
-0
Makefile
on-switch-tests/libs/Makefile
+48
-0
No files found.
on-switch-tests/libs/Makefile
0 → 100644
View file @
fa59201e
# Makefile based on ptp-noposix, whence libs have been lifted
# # 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
# Flags for standalone compilation
TOPDIR
=
$(
shell
/bin/pwd
)
CFLAGS
+=
-Wall
-ggdb
-I
$(TOPDIR)
/wrsw_hal
-I
$(TOPDIR)
/libwripc
\
-I
$(TOPDIR)
/libptpnetif
-I
$(TOPDIR)
/PTPWRd
-I
$(LINUX)
/include
\
-include
compat.h
-include
ptpd-wrappers.h
# These are lifted in the ptp.o temporary object file, for me to see the size
CORELIBS
=
libwripc.a libptpnetif.a
all libs
:
check $(CORELIBS)
# we only support cross-compilation (if you want force CROSS_COMPILE to " ")
# similarly, we need a kernel at this time
CHECKVARS
=
LINUX
check
:
@
for
n
in
$(CHECKVARS)
;
do
\
if
[
-z
"
$$
(eval echo
\$
$$$n
)"
]
;
then
\
echo
"Please set
$$
n"
>
& 2
;
exit
1
;
\
fi
\
done
libwripc.a
:
libwripc/wr_ipc.o libwripc/helper_arm.o
$(AR)
r
$@
$^
libptpnetif.a
:
libptpnetif/hal_client.o libptpnetif/ptpd_netif.o
$(AR)
r
$@
$^
# clean and so on.
clean
:
rm
-f
*
.a
*
/
*
.o
*
/dep/
*
.o
*
~
*
/
*
~
# even if there are files with these names, ignore them
.PHONY
:
all check libs clean
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