]> www.average.org Git - sensor-light.git/commitdiff
fix loading in Makefile
authorEugene Crosser <crosser@average.org>
Wed, 13 Dec 2017 23:05:31 +0000 (00:05 +0100)
committerEugene Crosser <crosser@average.org>
Wed, 13 Dec 2017 23:05:31 +0000 (00:05 +0100)
.gitignore
msp430/Makefile

index b3e50935f0e28a95237f645a4d501c736d86a662..6fd0bd3b3192ccbcabf4454b0c2abc816f3326f2 100644 (file)
@@ -1,4 +1,6 @@
 local.mk
+main
+Log
 *.o
 *.elf
 *.hex
index 70db6f7500e631ba153b7300e60238739a0faaf7..132c5e7132cb489cae1d2aa5d65676fb88262d12 100644 (file)
@@ -24,10 +24,10 @@ LDFLAGS = -mmcu=$(MCU) -g -ffunction-sections -fdata-sections -Wl,--gc-sections
 ifneq (,$(findstring msp430g2,$(MCU)))
   LOAD = mspdebug rf2500 'prog main'
 else
-  LOAD = MSPFlasher -w main.hex
+  LOAD = MSP430Flasher -w main.hex
 endif
 
-.PRECIOUS: %.o
+.PRECIOUS: main %.o
 
 all: main.hex
 
@@ -36,8 +36,8 @@ main: main.o
 main.hex: main
        $(OBC) -O ihex $< $@
 
-load:
+load: main.hex
        $(LOAD)
 
 clean:
-       rm -f main *.o
+       rm -f *.o