From 8b6981bdc89ef502ce314abc2a349844de283e0f Mon Sep 17 00:00:00 2001 From: Eugene Crosser Date: Thu, 14 Dec 2017 00:05:31 +0100 Subject: [PATCH 1/1] fix loading in Makefile --- .gitignore | 2 ++ msp430/Makefile | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index b3e5093..6fd0bd3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ local.mk +main +Log *.o *.elf *.hex diff --git a/msp430/Makefile b/msp430/Makefile index 70db6f7..132c5e7 100644 --- a/msp430/Makefile +++ b/msp430/Makefile @@ -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 -- 2.43.0