This commit is contained in:
kai 2020-01-05 19:21:00 +01:00
parent b22094adf7
commit 9e02369765
1 changed files with 3 additions and 2 deletions

View File

@ -111,6 +111,9 @@ ifeq ($(DEBUG), 1)
CFLAGS += -g -gdwarf-2 CFLAGS += -g -gdwarf-2
endif endif
# Generate dependency information
CFLAGS += -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)"
# Choose variant from env var # Choose variant from env var
# make -e VARIANT=VARIANT_ADC # make -e VARIANT=VARIANT_ADC
@ -118,8 +121,6 @@ ifneq ($(VARIANT), )
CFLAGS += -D $(VARIANT) CFLAGS += -D $(VARIANT)
endif endif
# Generate dependency information
CFLAGS += -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)"
####################################### #######################################
# LDFLAGS # LDFLAGS