summaryrefslogtreecommitdiffhomepage
path: root/digital/io-hub/src/apbirthday/Makefile
diff options
context:
space:
mode:
authorNicolas Schodet2013-03-18 01:03:49 +0100
committerNicolas Schodet2013-03-18 21:54:25 +0100
commit5cd8807e90a33e1584df899161d127934f68d74d (patch)
treeb1448aab5b8eb9b0d57a7abb853d22c9e328b3ce /digital/io-hub/src/apbirthday/Makefile
parent18d49b357a315d77e417d4a5c3942ec0d22997b8 (diff)
digital/io-hub/src/apbirthday: use AVR modules
Diffstat (limited to 'digital/io-hub/src/apbirthday/Makefile')
-rw-r--r--digital/io-hub/src/apbirthday/Makefile12
1 files changed, 11 insertions, 1 deletions
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