summaryrefslogblamecommitdiffstats
path: root/Makefile
blob: 494eaccc23002b44441a76fe470860ded2f278de (plain) (tree)
1
2
3
4
5
6
7
8
9
             
                                     

           
               
 
              
 
                  






                                           



                                 
CC=msp430-gcc
CFLAGS=-Os -Wall -g -mmcu=msp430g2231

OBJS=main.o
TARGET=main.elf

all: $(TARGET)

$(TARGET): $(OBJS)
	$(CC) $(CFLAGS) -o main.elf $(OBJS)

%.o: %.c
	$(CC) $(CFLAGS) -c $<

clean:
	rm -fr main.elf $(OBJS)

.PHONY: prog
prog: $(TARGET)
	mspdebug rf2500 "prog $<"