summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 494eaccc23002b44441a76fe470860ded2f278de (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 $<"