From 895cd4dfa29f0f3c623544f4868ac63e619c69d9 Mon Sep 17 00:00:00 2001 From: tmk Date: Tue, 14 Aug 2012 00:17:31 +0900 Subject: Add USB HID(host) protocol.(not finished) --- rules.mk | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'rules.mk') diff --git a/rules.mk b/rules.mk index e561eae631..02f07fd6f7 100644 --- a/rules.mk +++ b/rules.mk @@ -158,6 +158,10 @@ CPPFLAGS += -funsigned-bitfields CPPFLAGS += -fpack-struct CPPFLAGS += -fshort-enums CPPFLAGS += -fno-exceptions +CPPFLAGS += -ffunction-sections +CPPFLAGS += -fdata-sections +# to supress "warning: only initialized variables can be placed into program memory area" +CPPFLAGS += -w CPPFLAGS += -Wall CPPFLAGS += -Wundef #CPPFLAGS += -mshort-calls @@ -541,6 +545,7 @@ $(OBJDIR)/%.o : %.c # Compile: create object files from C++ source files. $(OBJDIR)/%.o : %.cpp @echo + mkdir -p $(@D) @echo $(MSG_COMPILING_CPP) $< $(CC) -c $(ALL_CPPFLAGS) $< -o $@ -- cgit v1.2.3