
# MSP430 Makefile
#
#
# Author: Xavier Bourgeois - xavier@monorailc.at
# License: Creative Commons - BY-NC
# Date: 2025-03-xx

CC = msp430-gcc
MARCH = -mmcu=msp430g2553
CFLAGS = -Wall -Wextra -Os -s

all: clean nuuo prog

clean:
	rm nuuo
nuuo:
	$(CC) $(MARCH) $(CFLAGS) nuuo_uboot.c -o nuuo

prog:
	mspdebug -q rf2500 "reset"
	mspdebug -q rf2500 "prog nuuo"
