Use untracked Makefile.sitespecific to optionally override some build flags
This commit is contained in:
parent
e0ae77294e
commit
9d933f7d4c
|
@ -62,7 +62,7 @@ loadables: $(OUTFILE).bin
|
||||||
clean:
|
clean:
|
||||||
rm -f $(OBJS) $(LD_TEMP) $(OUTFILE).elf $(OUTFILE).bin $(OUTFILE).hex
|
rm -f $(OBJS) $(LD_TEMP) $(OUTFILE).elf $(OUTFILE).bin $(OUTFILE).hex
|
||||||
for dir in $(SUBDIRS); do \
|
for dir in $(SUBDIRS); do \
|
||||||
$(MAKE) --no-print-directory -C $$dir clean; \
|
$(MAKE) $(CONFIG_MAKE_PRINTDIRECTORY) -C $$dir clean; \
|
||||||
done
|
done
|
||||||
flash: all
|
flash: all
|
||||||
../tools/bootloader/autoflash
|
../tools/bootloader/autoflash
|
||||||
|
@ -78,7 +78,7 @@ flash: all
|
||||||
subdirs: $(SUBDIRS)
|
subdirs: $(SUBDIRS)
|
||||||
|
|
||||||
$(SUBDIRS):
|
$(SUBDIRS):
|
||||||
$(MAKE) ROOT_PATH=../$(ROOT_PATH) --no-print-directory -C $@
|
$(MAKE) ROOT_PATH=../$(ROOT_PATH) $(CONFIG_MAKE_PRINTDIRECTORY) -C $@
|
||||||
|
|
||||||
../tools/bootloader/lpcfix:
|
../tools/bootloader/lpcfix:
|
||||||
cd ../tools/bootloader && $(MAKE)
|
cd ../tools/bootloader && $(MAKE)
|
||||||
|
|
|
@ -42,3 +42,9 @@ CPU_TYPE = cortex-$(CORTEX_TYPE)
|
||||||
|
|
||||||
CFLAGS = -std=c99 -c -g -Os $(INCLUDE_PATHS) -Wall -mthumb -ffunction-sections -fdata-sections -fmessage-length=0 -mcpu=$(CPU_TYPE) -DTARGET=$(TARGET) -DRAMCODE=$(RAMCODE) -fno-builtin
|
CFLAGS = -std=c99 -c -g -Os $(INCLUDE_PATHS) -Wall -mthumb -ffunction-sections -fdata-sections -fmessage-length=0 -mcpu=$(CPU_TYPE) -DTARGET=$(TARGET) -DRAMCODE=$(RAMCODE) -fno-builtin
|
||||||
LDFLAGS = -nostartfiles
|
LDFLAGS = -nostartfiles
|
||||||
|
|
||||||
|
|
||||||
|
CONFIG_MAKE_PRINTDIRECTORY = --no-print-directory
|
||||||
|
CONFIG_GCC_SHOWCOLUMN =
|
||||||
|
|
||||||
|
-include Makefile.sitespecific
|
||||||
|
|
|
@ -41,6 +41,11 @@ endif
|
||||||
# Compiler settings, parameters and flags
|
# Compiler settings, parameters and flags
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|
||||||
CFLAGS = -std=c99 -c -g -O0 $(INCLUDE_PATHS) -Wall -funsigned-char -ffunction-sections -fdata-sections -fmessage-length=0 -DRAMCODE=$(RAMCODE) -fno-builtin -DSIMULATOR -I$(ROOT_PATH)/../simcore -include libc-unc0llide.h
|
CFLAGS = -std=c99 -c -g -O0 $(INCLUDE_PATHS) -Wall -funsigned-char -ffunction-sections -fdata-sections -fmessage-length=0 -DRAMCODE=$(RAMCODE) -fno-builtin -DSIMULATOR -I$(ROOT_PATH)/../simcore -include libc-unc0llide.h $(CONFIG_GCC_SHOWCOLUMN)
|
||||||
#LDFLAGS = -nostartfiles
|
#LDFLAGS = -nostartfiles
|
||||||
|
|
||||||
|
|
||||||
|
CONFIG_MAKE_PRINTDIRECTORY = --no-print-directory
|
||||||
|
CONFIG_GCC_SHOWCOLUMN =
|
||||||
|
|
||||||
|
-include Makefile.sitespecific
|
||||||
|
|
Loading…
Reference in New Issue