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
46ea2e4d
Commit
46ea2e4d
authored
Feb 06, 2014
by
garcialasheras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build speclib.so shared library as an extra
parent
a8d2f0ed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
.gitignore
tools/.gitignore
+1
-0
Makefile
tools/Makefile
+10
-6
No files found.
tools/.gitignore
View file @
46ea2e4d
libspec.a
libspec.so
spec-cl
specmem
spec-fwloader
...
...
tools/Makefile
View file @
46ea2e4d
CFLAGS
=
-ggdb
-Wall
-
I
../kernel
LDFLAGS
=
-L
.
-lspec
CFLAGS
=
-ggdb
-Wall
-
fPIC
-I
../kernel
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)
...
...
@@ -18,10 +19,13 @@ $(LIB): $(LIBOBJ)
ar r
$@
$^
loader-ll.o
:
../kernel/loader-ll.c
${
CC
}
-c
$^
-I
.
${
CC
}
-fPIC
-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