Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Trigger Distribution
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
White Rabbit Trigger Distribution
Commits
4a9dc0cb
Commit
4a9dc0cb
authored
Feb 14, 2019
by
Milosz Malczak
Committed by
Dimitris Lampridis
May 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw: Modified lib Makefile to also produce the .so file
parent
ad76433e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
.gitignore
.gitignore
+1
-0
Makefile
software/lib/Makefile
+9
-4
No files found.
.gitignore
0 → 100644
View file @
4a9dc0cb
*.so
software/lib/Makefile
View file @
4a9dc0cb
...
...
@@ -10,6 +10,7 @@ REPO_PARENT ?= ..
WRTD_DEP_TRTL
?=
../../dependencies/mock-turtle/
LIBSO
=
libwrtd.so
LIB
=
libwrtd.a
OBJS
:=
libwrtd-base.o libwrtd-attributes.o libwrtd-rules.o
...
...
@@ -19,16 +20,20 @@ INCFLAGS=-I. -I../include -I$(WRTD_DEP_TRTL)/software/include \
CFLAGS
+=
-fno-strict-aliasing
$(INCFLAGS)
CFLAGS
+=
-Wall
-Werror
CFLAGS
+=
-g
CFLAGS
+=
-fPIC
CFLAGS
+=
$(EXTRACFLAGS)
ARFLAGS
=
rc
all
:
$(LIB)
all
:
$(LIB)
$(LIBSO)
$(LIB)
:
$(OBJS)
$(AR)
$(ARFLAGS)
$@
$^
$(LIBSO)
:
$(LIB)
$(CC)
-shared
-o
$@
-Wl
,--whole-archive,-soname,
$@
$^
-Wl
,--no-whole-archive
$(WRTD_DEP_TRTL)
/software/lib/libmockturtle.a
clean
:
rm
-f
$(LIB)
*
.d
*
.o
*
~
rm
-f
$(LIB)
$(LIBSO)
*
.d
*
.o
*
~
%.o
:
%.c
$(CC)
-c
$(CFLAGS)
-MMD
$<
-o
$@
...
...
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