Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Simple PCIe FMC carrier SPEC - Software
Commits
cfb9e36f
Commit
cfb9e36f
authored
Feb 06, 2014
by
garcialasheras
Committed by
Federico Vaga
Jul 23, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools: Build speclib.so shared library as an extra
parent
6c9eec38
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
.gitignore
tools/.gitignore
+1
-0
Makefile
tools/Makefile
+10
-5
No files found.
tools/.gitignore
View file @
cfb9e36f
libspec.a
libspec.so
spec-cl
specmem
spec-fwloader
...
...
tools/Makefile
View file @
cfb9e36f
CFLAGS
=
-ggdb
-Wall
-I
../kernel
$(EXTRACFLAGS)
LDFLAGS
=
-L
.
-lspec
CFLAGS
=
-ggdb
-Wall
-
fPIC
-
I
../kernel
$(EXTRACFLAGS)
LDFLAGS
=
-L
.
-lspec
LIB
=
libspec.a
LIBOBJ
=
speclib.o loader-ll.o
LIBSHARED
=
libspec.so
PROGS
=
spec-cl spec-fwloader spec-vuart specmem
PROGS
+=
wr-dio-cmd wr-dio-pps wr-dio-agent wr-dio-ruler
PROGS
+=
stamp-frame
all
:
$(LIB) $(PROGS)
all
:
$(LIB) $(PROGS) $(LIBSHARED)
$(PROGS)
:
$(LIB)
...
...
@@ -20,8 +21,12 @@ $(LIB): $(LIBOBJ)
loader-ll.o
:
../kernel/loader-ll.c
${
CC
}
$(CFLAGS)
-c
$^
-I
.
$(LIBSHARED)
:
$(LIB)
${
CC
}
-shared
-o
$@
-Wl
,--whole-archive
$^
-Wl
,--no-whole-archive
clean
:
rm
-f
*
.o
$(LIB)
$(PROGS)
*
~
rm
-f
*
.o
$(LIB)
$(PROGS)
$(LIBSHARED)
*
~
# add the other unused targets, so the rule in ../Makefile works
modules install modules_install
:
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