From 5cd8807e90a33e1584df899161d127934f68d74d Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Mon, 18 Mar 2013 01:03:49 +0100 Subject: digital/io-hub/src/apbirthday: use AVR modules --- digital/io-hub/src/apbirthday/Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'digital/io-hub') diff --git a/digital/io-hub/src/apbirthday/Makefile b/digital/io-hub/src/apbirthday/Makefile index bc26624a..1e83e9a9 100644 --- a/digital/io-hub/src/apbirthday/Makefile +++ b/digital/io-hub/src/apbirthday/Makefile @@ -4,10 +4,20 @@ TARGETS = host stm32f4 PROGS = apbirthday apbirthday_SOURCES = main.cc robot.cc hardware.host.cc hardware.stm32.cc \ top.cc \ - angfsm.host.c angfsm_gen_arm_AI.arm.c + angfsm.host.c angfsm_gen_arm_AI.arm.c \ + $(AVR_SOURCES) MODULES = hal/gpio hal/uart hal/usb base/proto +# Hack mode, include old code from AVR modules. +AVR_MODULES = math/geometry math/fixed +AVR_BASE = $(BASE)/../avr +INCLUDES += -I$(AVR_BASE) -I$(AVR_BASE)/common +host_DEFS += -DHOST +include $(AVR_MODULES:%=$(AVR_BASE)/modules/%/Makefile.module) +vpath %.c $(AVR_MODULES:%=$(AVR_BASE)/modules/%) +AVR_SOURCES = $(foreach module,$(AVR_MODULES),$($(subst /,_,$(module))_SOURCES)) + # FSM. INCLUDES += -I$(BASE)/../ai/src/fsm -I. vpath %.c $(BASE)/../ai/src/fsm -- cgit v1.2.3