From 7ab9942de67477f3661c472212e421621a542464 Mon Sep 17 00:00:00 2001 From: Thammi Date: Fri, 6 Sep 2013 00:42:40 +0200 Subject: [PATCH] Make apps configurable in Makefile --- firmware/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/firmware/Makefile b/firmware/Makefile index b052ecf..3010f0c 100644 --- a/firmware/Makefile +++ b/firmware/Makefile @@ -1,5 +1,7 @@ PROJECT=pentabug +APPS = buggy mariotheme geiger ducklings blinker + OPTIMIZATION = -Os MCU = atmega88pa F_CPU = 8000000 @@ -8,7 +10,8 @@ FUSES = lfuse:w:0xe2:m -U hfuse:w:0xdf:m -U efuse:w:0x01:m ######################################################################### -SRC=$(wildcard lib/*.c apps/*.c *.c) +APP_SRC=$(APPS:%=apps/%.c) +SRC=$(wildcard lib/*.c *.c) $(APP_SRC) OBJECTS= $(SRC:.c=.o) LSTFILES= $(SRC:.c=.lst) HEADERS=$(wildcard */*/*.h */*.h *.h)