Skip to content

Commit

Permalink
firmware: build: Reorder the build command line flags
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbanBedel committed Oct 25, 2013
1 parent bc5fc53 commit 04179ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firmware/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 $@
Expand All @@ -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

Expand Down

0 comments on commit 04179ec

Please sign in to comment.