summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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 $<"