From 04179ec888799cdbb05547e40f6570cf2d552999 Mon Sep 17 00:00:00 2001 From: Alban Bedel Date: Fri, 25 Oct 2013 15:54:18 +0200 Subject: [PATCH] firmware: build: Reorder the build command line flags --- firmware/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/Makefile b/firmware/Makefile index 9b8a64b..2b17eb0 100644 --- a/firmware/Makefile +++ b/firmware/Makefile @@ -59,7 +59,7 @@ endef $(foreach dep,$(all_DEPS),$(eval $(call goal,$(dep)))) %.o: %.c - $(CROSS_COMPILE)$(CC) -o $@ -c $< $(CPPFLAGS) $(CFLAGS) + $(CROSS_COMPILE)$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ -c $< %.a: rm -f $@ @@ -72,7 +72,7 @@ $(foreach dep,$(all_DEPS),$(eval $(call goal,$(dep)))) $(CROSS_COMPILE)$(OBJCOPY) -O ihex $(EEPROM_FLAGS) $< $@ %.elf: - $(CROSS_COMPILE)$(CC) -o $@ $(filter %.o,$($*.elf_DEPS)) $(LDFLAGS) $(LIBS) + $(CROSS_COMPILE)$(CC) $(LDFLAGS) -o $@ $(filter %.o,$($*.elf_DEPS)) $(LIBS) .PHONY: all clean