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
0f1697bd
Commit
0f1697bd
authored
Oct 10, 2016
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rt: use enable variable to config libmockturtle
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
c1a58230
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
Makefile
rt/Makefile
+11
-2
No files found.
rt/Makefile
View file @
0f1697bd
...
...
@@ -12,22 +12,31 @@ LD = $(CROSS_COMPILE_TARGET)ld
OBJDUMP
=
$(CROSS_COMPILE_TARGET)
objdump
OBJCOPY
=
$(CROSS_COMPILE_TARGET)
objcopy
SIZE
=
$(CROSS_COMPILE_TARGET)
size
STRIP
=
$(CROSS_COMPILE_TARGET)
strip
RT_GIT_VERSION
=
0x
$(
shell
git rev-parse
--short
=
8 HEAD
)
CFLAGS
+=
-Wall
-DWRNODE_RT
-g
-Os
-mmultiply-enabled
-mbarrel-shift-enabled
CFLAGS_OPT
?=
-Os
CFLAGS_DBG
?=
-ggdb
CFLAGS
+=
$(CFLAGS_OPT)
CFLAGS
+=
$(CFLAGS_DBG)
CFLAGS
+=
-Wall
-DWRNODE_RT
-mmultiply-enabled
-mbarrel-shift-enabled
CFLAGS
+=
-I
.
CFLAGS
+=
-I
$(TRTL)
/rt
CFLAGS
+=
-I
$(TRTL)
/include
CFLAGS
+=
-DGIT_VERSION
=
$(RT_GIT_VERSION)
CFLAGS
+=
$(EXTRA_CFLAGS)
ifeq
($(MOCKTURTLE_PRINTF_ENABLE),
1)
CFLAGS
+=
-DLIB_PRINTF
endif
OBJS
+=
$(TRTL)
/rt/mockturtle-crt0.o
OBJS
+=
$(TRTL)
/rt/vsprintf-xint.o
OBJS
+=
$(TRTL)
/rt/printf.o
OBJS
+=
$(TRTL)
/rt/mockturtle-rt-common.o
if
def
RT_USE_LIBRT
if
eq
($(LIBMOCKTURTLE_ENABLE),
1)
OBJS
+=
$(TRTL)
/rt/libmockturtle-rt.o
endif
...
...
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