summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 1c1e2c5e74c9caec9e16defc7425dff783f45597 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
CC=msp430-gcc
CFLAGS=-Os -Wall -g -mmcu=msp430x2012

OBJS=main.o


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

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

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