diff options
Diffstat (limited to 'rules.mk')
| -rw-r--r-- | rules.mk | 5 |
1 files changed, 5 insertions, 0 deletions
| @@ -158,6 +158,10 @@ CPPFLAGS += -funsigned-bitfields | |||
| 158 | CPPFLAGS += -fpack-struct | 158 | CPPFLAGS += -fpack-struct |
| 159 | CPPFLAGS += -fshort-enums | 159 | CPPFLAGS += -fshort-enums |
| 160 | CPPFLAGS += -fno-exceptions | 160 | CPPFLAGS += -fno-exceptions |
| 161 | CPPFLAGS += -ffunction-sections | ||
| 162 | CPPFLAGS += -fdata-sections | ||
| 163 | # to supress "warning: only initialized variables can be placed into program memory area" | ||
| 164 | CPPFLAGS += -w | ||
| 161 | CPPFLAGS += -Wall | 165 | CPPFLAGS += -Wall |
| 162 | CPPFLAGS += -Wundef | 166 | CPPFLAGS += -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 | ||
