Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
eecf3e90
Commit
eecf3e90
authored
Jun 20, 2014
by
Paul Sokolovsky
Browse files
unix: Group CFLAGS related stuff together.
parent
2099b689
Changes
1
Hide whitespace changes
Inline
Side-by-side
unix/Makefile
View file @
eecf3e90
...
...
@@ -18,6 +18,14 @@ INC += -I$(BUILD)
CWARN
=
-Wall
-Werror
CFLAGS
=
$(INC)
$(CWARN)
-ansi
-std
=
gnu99
-DUNIX
$(CFLAGS_MOD)
$(COPT)
# Debugging/Optimization
ifdef
DEBUG
CFLAGS
+=
-g
COPT
=
-O0
else
COPT
=
-Os
#-DNDEBUG
endif
UNAME_S
:=
$(
shell
uname
-s
)
ifeq
($(UNAME_S),Darwin)
LDFLAGS
=
$(LDFLAGS_MOD)
-lm
-Wl
,-map,
$@
.map,-order_file,
$(BUILD)
/order.def
...
...
@@ -57,14 +65,6 @@ SRC_MOD += modffi.c
endif
# Debugging/Optimization
ifdef
DEBUG
CFLAGS
+=
-g
COPT
=
-O0
else
COPT
=
-Os
#-DNDEBUG
endif
# source files
SRC_C
=
\
main.c
\
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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