The .ihex file use the intermediate Contiki-wide .$(TARGET) target instead of the MSP430-specific .firmware

This commit is contained in:
adamdunkels 2008-07-02 14:11:34 +00:00
parent 05454ce929
commit 7c459c849d

View File

@ -1,4 +1,4 @@
# $Id: Makefile.msp430,v 1.23 2008/02/03 20:59:35 adamdunkels Exp $
# $Id: Makefile.msp430,v 1.24 2008/07/02 14:11:34 adamdunkels Exp $
ifdef nodeid
CFLAGS += -DNODEID=$(nodeid)
@ -67,7 +67,7 @@ PROJECT_OBJECTFILES += ${addprefix $(OBJECTDIR)/,$(CONTIKI_TARGET_MAIN:.c=.o)}
%.firmware: %.co $(PROJECT_OBJECTFILES) contiki-$(TARGET).a
$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(filter-out %.a,$^) $(filter %.a,$^)
%.ihex: %.firmware
%.ihex: %.$(TARGET)
$(OBJCOPY) $^ -O ihex $@
core-labels.o: core.firmware