summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2012-05-09 00:35:47 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2012-05-09 00:39:11 +0200
commitd76a3073ca794b06b636b3ca7580f3477b29eba0 (patch)
treedc79d4e9e7cceb19f7bde1d8babab042fa03bc00 /Makefile
parent3b64f44f6b2a5dd71ba382bf4bea70ba16ea9565 (diff)
downloadlaunchpad-blink-master.tar.gz
launchpad-blink-master.tar.xz
launchpad-blink-master.zip
fix upstream to work with current version of mspgccHEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 1c1e2c5..494eacc 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,12 @@
CC=msp430-gcc
-CFLAGS=-Os -Wall -g -mmcu=msp430x2012
+CFLAGS=-Os -Wall -g -mmcu=msp430g2231
OBJS=main.o
+TARGET=main.elf
+all: $(TARGET)
-all: $(OBJS)
+$(TARGET): $(OBJS)
$(CC) $(CFLAGS) -o main.elf $(OBJS)
%.o: %.c
@@ -12,3 +14,7 @@ all: $(OBJS)
clean:
rm -fr main.elf $(OBJS)
+
+.PHONY: prog
+prog: $(TARGET)
+ mspdebug rf2500 "prog $<"