diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2012-05-09 00:35:47 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2012-05-09 00:39:11 +0200 |
commit | d76a3073ca794b06b636b3ca7580f3477b29eba0 (patch) | |
tree | dc79d4e9e7cceb19f7bde1d8babab042fa03bc00 /Makefile | |
parent | 3b64f44f6b2a5dd71ba382bf4bea70ba16ea9565 (diff) | |
download | launchpad-blink-master.tar.gz launchpad-blink-master.tar.xz launchpad-blink-master.zip |
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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 $<" |