mirror of
https://github.com/g4klx/MMDVM_HS.git
synced 2025-12-06 07:02:00 +01:00
Small changes for Makefile
This commit is contained in:
parent
0d93e84f0e
commit
e394d90c0d
16
Makefile
16
Makefile
|
|
@ -36,19 +36,19 @@ ifdef SYSTEMROOT
|
||||||
ASOURCES=$(shell dir /S /B *.s)
|
ASOURCES=$(shell dir /S /B *.s)
|
||||||
CSOURCES=$(shell dir /S /B *.c)
|
CSOURCES=$(shell dir /S /B *.c)
|
||||||
CXXSOURCES=$(shell dir /S /B *.cpp)
|
CXXSOURCES=$(shell dir /S /B *.cpp)
|
||||||
CLEANCMD=del /S *.o *.hex *.bin *.elf
|
CLEANCMD=del /S *.o *.hex *.bin *.elf *.d
|
||||||
MDBIN=md $@
|
MDBIN=md $@
|
||||||
else ifdef SystemRoot
|
else ifdef SystemRoot
|
||||||
ASOURCES=$(shell dir /S /B *.s)
|
ASOURCES=$(shell dir /S /B *.s)
|
||||||
CSOURCES=$(shell dir /S /B *.c)
|
CSOURCES=$(shell dir /S /B *.c)
|
||||||
CXXSOURCES=$(shell dir /S /B *.cpp)
|
CXXSOURCES=$(shell dir /S /B *.cpp)
|
||||||
CLEANCMD=del /S *.o *.hex *.bin *.elf
|
CLEANCMD=del /S *.o *.hex *.bin *.elf *.d
|
||||||
MDBIN=md $@
|
MDBIN=md $@
|
||||||
else
|
else
|
||||||
ASOURCES=$(shell find . -name '*.s')
|
ASOURCES=$(shell find . -name '*.s')
|
||||||
CSOURCES=$(shell find . -name '*.c')
|
CSOURCES=$(shell find . -name '*.c')
|
||||||
CXXSOURCES=$(shell find . -name '*.cpp')
|
CXXSOURCES=$(shell find . -name '*.cpp')
|
||||||
CLEANCMD=rm -f $(OBJECTS) $(BINDIR)/$(BINELF) $(BINDIR)/$(BINHEX) $(BINDIR)/$(BINBIN)
|
CLEANCMD=rm -f $(OBJECTS) $(BINDIR)/$(BINELF) $(BINDIR)/$(BINHEX) $(BINDIR)/$(BINBIN) *.d
|
||||||
MDBIN=mkdir $@
|
MDBIN=mkdir $@
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
@ -76,7 +76,7 @@ BINHEX=outp.hex
|
||||||
BINBIN=outp.bin
|
BINBIN=outp.bin
|
||||||
|
|
||||||
# MCU FLAGS
|
# MCU FLAGS
|
||||||
MCFLAGS=-mcpu=cortex-m3 -mthumb -Wall
|
MCFLAGS=-mcpu=cortex-m3 -march=armv7-m -mthumb -Wall -Wextra
|
||||||
|
|
||||||
# COMPILE FLAGS
|
# COMPILE FLAGS
|
||||||
DEFS_HS=-DUSE_STDPERIPH_DRIVER -DSTM32F10X_MD -DHSE_VALUE=$(OSC)
|
DEFS_HS=-DUSE_STDPERIPH_DRIVER -DSTM32F10X_MD -DHSE_VALUE=$(OSC)
|
||||||
|
|
@ -93,13 +93,13 @@ LDFLAGS =-T $(LDSCRIPT) $(MCFLAGS) --specs=nosys.specs $(INCLUDES_LIBS) $(LINK_L
|
||||||
|
|
||||||
all: hs
|
all: hs
|
||||||
|
|
||||||
hs: CFLAGS+=$(DEFS_HS) -Os -ffunction-sections -fdata-sections -fno-builtin -Wno-implicit -DCUSTOM_NEW -DNO_EXCEPTIONS
|
hs: CFLAGS+=$(DEFS_HS) -Os -MMD -ffunction-sections -fdata-sections -nostdlib -DCUSTOM_NEW -DNO_EXCEPTIONS
|
||||||
hs: CXXFLAGS+=$(DEFS_HS) -Os -fno-exceptions -ffunction-sections -fdata-sections -fno-builtin -fno-rtti -DCUSTOM_NEW -DNO_EXCEPTIONS
|
hs: CXXFLAGS+=$(DEFS_HS) -Os -MMD -fno-exceptions -ffunction-sections -fdata-sections -nostdlib -fno-rtti -DCUSTOM_NEW -DNO_EXCEPTIONS
|
||||||
hs: LDFLAGS+=-Os --specs=nano.specs
|
hs: LDFLAGS+=-Os --specs=nano.specs
|
||||||
hs: release
|
hs: release
|
||||||
|
|
||||||
debug: CFLAGS+=-g
|
debug: CFLAGS+=-g $(DEFS_HS)
|
||||||
debug: CXXFLAGS+=-g
|
debug: CXXFLAGS+=-g $(DEFS_HS)
|
||||||
debug: LDFLAGS+=-g
|
debug: LDFLAGS+=-g
|
||||||
debug: release
|
debug: release
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue