LIBSPICBOARDDIR ?= ../libspicboard

MARIOSRC = $(shell find . -type f -name '*.c')

all: mario.elf

mario.elf: mario.c ${MARIOSRC}
	@echo "Compiling $< (optimized for size)..."
	$(VERBOSE) $(CC) -Os $(CFLAGS) -o $@ $< $(LDFLAGS)
	$(VERBOSE) $(SIZE) $@

include $(LIBSPICBOARDDIR)/debug.mk
