summaryrefslogtreecommitdiff
path: root/digital/io-hub/src/apbirthday/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'digital/io-hub/src/apbirthday/Makefile')
-rw-r--r--digital/io-hub/src/apbirthday/Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/digital/io-hub/src/apbirthday/Makefile b/digital/io-hub/src/apbirthday/Makefile
index cc32c783..bc26624a 100644
--- a/digital/io-hub/src/apbirthday/Makefile
+++ b/digital/io-hub/src/apbirthday/Makefile
@@ -2,12 +2,23 @@ BASE = ../../../ucoolib
TARGETS = host stm32f4
PROGS = apbirthday
-apbirthday_SOURCES = main.cc robot.cc hardware.host.cc hardware.stm32.cc
+apbirthday_SOURCES = main.cc robot.cc hardware.host.cc hardware.stm32.cc \
+ top.cc \
+ angfsm.host.c angfsm_gen_arm_AI.arm.c
MODULES = hal/gpio hal/uart hal/usb base/proto
+# FSM.
+INCLUDES += -I$(BASE)/../ai/src/fsm -I.
+vpath %.c $(BASE)/../ai/src/fsm
+
include $(BASE)/build/top.mk
clean: clean.project
clean.project:
- rm -f usb zb_uart
+ rm -f usb zb_uart angfsm_gen_arm_AI.h angfsm_gen_arm_AI.arm.c
+
+obj/main.stm32f4.o: angfsm_gen_arm_AI.h
+angfsm_gen_arm_AI.arm.c: angfsm_gen_arm_AI.h
+angfsm_gen_arm_AI.h: apbirthday.host
+ ./$< --ang-gen arm && mv angfsm_gen_arm_AI.c angfsm_gen_arm_AI.arm.c