Initial commit
This commit is contained in:
commit
836a7983c1
4 changed files with 136 additions and 0 deletions
23
Makefile
Normal file
23
Makefile
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
|
||||
CC = msp430-gcc
|
||||
CFLAGS = -Os -Wall -g -mmcu=msp430x2012
|
||||
LD = $(CC)
|
||||
LDFLAGS =
|
||||
|
||||
PROGRAMS = led1.elf led2.elf
|
||||
|
||||
.PHONY : clean distclean
|
||||
|
||||
all : $(PROGRAMS)
|
||||
|
||||
led1.elf : led1.o
|
||||
led2.elf : led2.o
|
||||
|
||||
%.elf :
|
||||
$(LD) -o $@ $^
|
||||
|
||||
clean :
|
||||
$(RM) *.o
|
||||
|
||||
distclean : clean
|
||||
$(RM) $(PROGRAMS)
|
||||
Reference in a new issue