summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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