Skip to content

Instantly share code, notes, and snippets.

@matael
Created April 26, 2013 21:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save matael/5470620 to your computer and use it in GitHub Desktop.
Save matael/5470620 to your computer and use it in GitHub Desktop.
Makefile pour launchpad
#
# 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"
@matael
Copy link
Author

matael commented Apr 26, 2013

il faut une structure de dossier particulière :

ton_dossier/
    main.c
    Makefile

et pour compiler et uploader :

$ make && make upload

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment