diff options
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 $<" |