Skip to content

Instantly share code, notes, and snippets.

@jblb
Forked from matael/Makefile
Created April 28, 2013 19:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jblb/5478113 to your computer and use it in GitHub Desktop.
Save jblb/5478113 to your computer and use it in GitHub Desktop.
#
# Makefile
# matael, 2013-04-26 23:22
#
# compilation
CC=msp430-gcc
CC_OPTS= -Os
MMCU_TYPE=msp430g2553
# programming
MSPDBG=mspdebug
MSPDBG_LK=rf2500
all:
$(CC) $(CC_OPTS) -mmcu=$(MMCU_TYPE) -o main.elf main.c
upload:
$(MSPDBG) $(MSPDBG_LK) "prog main.elf"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment