Created
December 1, 2015 05:26
-
-
Save NickCarneiro/d79b81a0bd8cbf7e419f to your computer and use it in GitHub Desktop.
makefile for msp430 gcc on osx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OBJECTS=blink.o | |
GCC_DIR = ~/ti/gcc/bin | |
SUPPORT_FILE_DIRECTORY = ~/ti/gcc/include | |
DEVICE = msp430g2231 | |
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) | |
all: ${OBJECTS} | |
$(CC) $(CFLAGS) $(LFLAGS) $? -o $(DEVICE).out | |
debug: all | |
$(GDB) $(DEVICE).out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Good to know, if you have already CCS and GCC inside CCS installed, the directories look (depending on version) like this: