aboutsummaryrefslogtreecommitdiff
path: root/rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'rules.mk')
-rw-r--r--rules.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/rules.mk b/rules.mk
index e561eae63..02f07fd6f 100644
--- a/rules.mk
+++ b/rules.mk
@@ -158,6 +158,10 @@ CPPFLAGS += -funsigned-bitfields
158CPPFLAGS += -fpack-struct 158CPPFLAGS += -fpack-struct
159CPPFLAGS += -fshort-enums 159CPPFLAGS += -fshort-enums
160CPPFLAGS += -fno-exceptions 160CPPFLAGS += -fno-exceptions
161CPPFLAGS += -ffunction-sections
162CPPFLAGS += -fdata-sections
163# to supress "warning: only initialized variables can be placed into program memory area"
164CPPFLAGS += -w
161CPPFLAGS += -Wall 165CPPFLAGS += -Wall
162CPPFLAGS += -Wundef 166CPPFLAGS += -Wundef
163#CPPFLAGS += -mshort-calls 167#CPPFLAGS += -mshort-calls
@@ -541,6 +545,7 @@ $(OBJDIR)/%.o : %.c
541# Compile: create object files from C++ source files. 545# Compile: create object files from C++ source files.
542$(OBJDIR)/%.o : %.cpp 546$(OBJDIR)/%.o : %.cpp
543 @echo 547 @echo
548 mkdir -p $(@D)
544 @echo $(MSG_COMPILING_CPP) $< 549 @echo $(MSG_COMPILING_CPP) $<
545 $(CC) -c $(ALL_CPPFLAGS) $< -o $@ 550 $(CC) -c $(ALL_CPPFLAGS) $< -o $@
546 551