diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1c1e2c5 --- /dev/null +++ b/Makefile @@ -0,0 +1,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) |