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
c6920d31
Commit
c6920d31
authored
Jan 14, 2014
by
Damien George
Browse files
Merge pull request #170 from chipaca/master
made DEBUG control CFLAGS in Makefiles other than stm as well.
parents
0367ad62
10d2f728
Changes
3
Hide whitespace changes
Inline
Side-by-side
teensy/Makefile
View file @
c6920d31
...
...
@@ -24,10 +24,20 @@ SIZE = $(COMPILER_PATH)/arm-none-eabi-size
CFLAGS_TEENSY
=
-DF_CPU
=
96000000
-DUSB_SERIAL
-D__MK20DX256__
CFLAGS_CORTEX_M4
=
-mthumb
-mtune
=
cortex-m4
-mcpu
=
cortex-m4
-fsingle-precision-constant
-Wdouble-promotion
$(CFLAGS_TEENSY)
CFLAGS
=
-I
.
-I
$(PY_SRC)
-I
$(CORE_PATH)
-Wall
-ansi
-std
=
gnu99
-Os
-DNDEBUG
$(CFLAGS_CORTEX_M4)
-D
$(TARGET)
CFLAGS
=
-I
.
-I
$(PY_SRC)
-I
$(CORE_PATH)
-Wall
-ansi
-std
=
gnu99
LDFLAGS
=
-nostdlib
-T
mk20dx256.ld
LIBS
=
-L
$(COMPILER_PATH)
/../lib/gcc/arm-none-eabi/4.7.2/thumb2
-lgcc
#Debugging/Optimization
ifdef
DEBUG
CFLAGS
+=
-Og
-ggdb
else
CFLAGS
+=
-Os
#-DNDEBUG
endif
# if order is not important for these, move them up
CFLAGS
+=
$(CFLAGS_CORTEX_M4)
-D
$(TARGET)
SRC_C
=
\
main.c
\
lcd.c
\
...
...
unix-cpy/Makefile
View file @
c6920d31
...
...
@@ -11,9 +11,16 @@ ECHO = @echo
# compiler settings
CC
=
gcc
CFLAGS
=
-I
.
-I
$(PY_SRC)
-Wall
-Werror
-ansi
-std
=
gnu99
-Os
#-DNDEBUG
CFLAGS
=
-I
.
-I
$(PY_SRC)
-Wall
-Werror
-ansi
-std
=
gnu99
LDFLAGS
=
-lm
#Debugging/Optimization
ifdef
DEBUG
CFLAGS
+=
-Og
-ggdb
else
CFLAGS
+=
-Os
#-DNDEBUG
endif
# source files
SRC_C
=
\
main.c
\
...
...
unix/Makefile
View file @
c6920d31
...
...
@@ -11,9 +11,16 @@ ECHO = @echo
# compiler settings
CC
=
gcc
CFLAGS
=
-I
.
-I
$(PY_SRC)
-Wall
-Werror
-ansi
-std
=
gnu99
-Os
#-DNDEBUG
CFLAGS
=
-I
.
-I
$(PY_SRC)
-Wall
-Werror
-ansi
-std
=
gnu99
LDFLAGS
=
-lm
#Debugging/Optimization
ifdef
DEBUG
CFLAGS
+=
-Og
-ggdb
else
CFLAGS
+=
-Os
#-DNDEBUG
endif
# source files
SRC_C
=
\
main.c
\
...
...
@@ -27,7 +34,9 @@ LIB = -lreadline
$(PROG)
:
$(BUILD) $(OBJ)
$(ECHO)
"LINK
$<
"
$(Q)$(CC)
-o
$@
$(OBJ)
$(LIB)
$(LDFLAGS)
ifndef
DEBUG
$(Q)
strip
$(PROG)
endif
$(Q)
size
$(PROG)
$(BUILD)/%.o
:
%.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