|
@ -0,0 +1,18 @@ |
|
|
|
|
|
OBJECTS=Ejemplo.o |
|
|
|
|
|
|
|
|
|
|
|
GCC_DIR = /home/griscampos/msp430-gcc/bin |
|
|
|
|
|
SUPPORT_FILE_DIRECTORY = /home/griscampos/msp430-gcc/include |
|
|
|
|
|
|
|
|
|
|
|
DEVICE = msp430fr6989 |
|
|
|
|
|
CC = $(GCC_DIR)/msp430-elf-gcc |
|
|
|
|
|
GDB = $(GCC_DIR)/msp430-elf-gdb |
|
|
|
|
|
|
|
|
|
|
|
CFLAGS = -I $(SUPPORT_FILE_DIRECTORY) -mmcu=$(DEVICE) -O2 -g |
|
|
|
|
|
LFLAGS = -L $(SUPPORT_FILE_DIRECTORY) -T $(DEVICE).ld |
|
|
|
|
|
|
|
|
|
|
|
all: ${OBJECTS} |
|
|
|
|
|
$(CC) $(CFLAGS) $(LFLAGS) $? -o $(DEVICE).out |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
debug: all |
|
|
|
|
|
$(GDB) $(DEVICE).out |