make: move stm32f0-specific CFLAGS and LDFLAGS

This commit is contained in:
S.J.R. van Schaik 2017-03-11 13:34:00 +00:00
parent c815803869
commit 4a176a404c
2 changed files with 3 additions and 2 deletions

View file

@ -15,7 +15,6 @@ all: $(BUILD)/tbm
CFLAGS += -Iinclude
CFLAGS += -Wall -Wundef -Wextra -Wshadow -Wimplicit-function-declaration
CFLAGS += -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes
CFLAGS += -fno-common --function-sections -fdata-sections
obj-y += source/main.o
obj-y += source/shell.o
@ -48,6 +47,6 @@ $(BUILD)/%.o: %.c
$(BUILD)/tbm: $(obj) $(LDSCRIPT)
@echo "LD $@"
@mkdir -p $(dir $@)
@$(LD) -o $@ $(CFLAGS) $(LDFLAGS) -T $(LDSCRIPT) $(obj) $(LIBS)
@$(LD) -o $@ $(CFLAGS) $(LDFLAGS) $(obj) $(LIBS)
.PHONY: clean