|
|
- OBJECTS=prueba.o
-
- GCC_DIR = /home/user/msp430-gcc/bin
- SUPPORT_FILE_DIRECTORY = /home/user/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
|