Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
Mock Turtle
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
Mock Turtle
Commits
1d665b5f
Commit
1d665b5f
authored
May 03, 2019
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw:*: use implicit Makefile variable properly
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
0212c7e3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Makefile
software/lib/Makefile
+1
-2
Makefile
software/tools/Makefile
+3
-2
No files found.
software/lib/Makefile
View file @
1d665b5f
...
...
@@ -18,14 +18,13 @@ LOBJ += libmockturtle-rt-msg.o
CFLAGS
+=
-Wall
-Werror
-ggdb
-fPIC
CFLAGS
+=
-I
.
-I
$(TRTL_SW)
/include
$(EXTRACFLAGS)
LDFLAGS
+=
-L
.
-lmockturtle
ARFLAGS
=
rcv
modules all
:
$(LIB) $(LIBS)
%
:
%.c $(LIB)
$(CC)
$(CFLAGS)
$*
.c
$(LDFLAGS)
-o
$@
$(CC)
$(CFLAGS)
$*
.c
$(LDFLAGS)
$(LDLIBS)
-o
$@
$(LIB)
:
$(LOBJ)
$(AR)
$(ARFLAGS)
$@
$^
...
...
software/tools/Makefile
View file @
1d665b5f
...
...
@@ -16,7 +16,8 @@ GIT_VERSION := $(shell git describe --dirty --long --tags)
CFLAGS
+=
-Wall
-Werror
-ggdb
-I
$(TRTL_SW)
/lib
CFLAGS
+=
-I
$(TRTL_SW)
/include
CFLAGS
+=
$(EXTRACFLAGS)
LDLIBS
+=
-Wl
,-Bstatic
-L
$(TRTL_SW)
/lib
-lmockturtle
LDFLAGS
+=
-L
$(TRTL_SW)
/lib
LDLIBS
+=
-Wl
,-Bstatic
-lmockturtle
LDLIBS
+=
-Wl
,-Bdynamic
-lpthread
PROGS
:=
mockturtle-count
PROGS
+=
lsmockturtle
...
...
@@ -40,7 +41,7 @@ uninstall:
rmdir
--ignore-fail-on-non-empty
$(DESTDIR)
/bin
%
:
%.c $(TRTL_SW)/lib/libmockturtle.a
$(CC)
$(CFLAGS)
$^
-o
$@
$(LDLIBS)
$(CC)
$(CFLAGS)
$
(LDFLAGS)
$
^
-o
$@
$(LDLIBS)
# make nothing for modules_install, but avoid errors
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