]> granicus.if.org Git - esp-idf/commitdiff
build system: Generate dependency make rules for assembler source
authorAngus Gratton <angus@espressif.com>
Sun, 11 Dec 2016 23:02:41 +0000 (10:02 +1100)
committerAngus Gratton <angus@espressif.com>
Wed, 14 Dec 2016 21:44:48 +0000 (08:44 +1100)
Was previously only C, C++.

make/project.mk

index fd45600a0380ee072ef9a6f7355538955fd60451..0548002277c9364e5f34f57ea5e2f527a9cba4b5 100644 (file)
@@ -172,7 +172,7 @@ LDFLAGS ?= -nostdlib \
 
 # CPPFLAGS used by C preprocessor
 # If any flags are defined in application Makefile, add them at the end. 
-CPPFLAGS := -DESP_PLATFORM $(CPPFLAGS) $(EXTRA_CPPFLAGS)
+CPPFLAGS := -DESP_PLATFORM -MMD -MP $(CPPFLAGS) $(EXTRA_CPPFLAGS)
 
 # Warnings-related flags relevant both for C and C++
 COMMON_WARNING_FLAGS = -Wall -Werror=all \
@@ -188,8 +188,7 @@ COMMON_FLAGS = \
        -ffunction-sections -fdata-sections \
        -fstrict-volatile-bitfields \
        -mlongcalls \
-       -nostdlib \
-       -MMD -MP
+       -nostdlib
 
 # Optimization flags are set based on menuconfig choice
 ifneq ("$(CONFIG_OPTIMIZATION_LEVEL_RELEASE)","")