summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile18
-rw-r--r--digital/io-hub/src/apbirthday/Makefile2
2 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 747ebf85..af0245de 100644
--- a/Makefile
+++ b/Makefile
@@ -14,6 +14,12 @@
# eval $(make env)
#
+DIRS_2013 = \
+ digital/mimot/src/asserv \
+ digital/mimot/src/dirty \
+ digital/beacon/src/stub \
+ digital/io-hub/src/apbirthday
+
DIRS_2012 = \
digital/mimot/src/asserv \
digital/mimot/src/dirty \
@@ -25,6 +31,7 @@ DIRS = $(sort \
digital/io/src \
digital/io-hub/src/robospierre \
$(DIRS_2012) \
+ $(DIRS_2013) \
)
PYTHON_DIRS = \
@@ -47,6 +54,17 @@ all host clean:
all.% host.% clean.%:
$(foreach dir,$(DIRS_$*),$(MAKE) -C $(dir) $(@:.$*=) && ) true
+all: libopencm3
+libopencm3:
+ @if test \! -f digital/ucoolib/lib/libopencm3/Makefile; then \
+ echo "no libopencm3, this usually means that you should run" \
+ "git submodule init, then git submodule update" >&2; \
+ echo "another option is to run make host if you are only" \
+ "interrested by simulation"; \
+ exit 1; \
+ fi
+ $(MAKE) -C digital/ucoolib/lib/libopencm3
+
space :=
space +=
env:
diff --git a/digital/io-hub/src/apbirthday/Makefile b/digital/io-hub/src/apbirthday/Makefile
index a785d171..0b570851 100644
--- a/digital/io-hub/src/apbirthday/Makefile
+++ b/digital/io-hub/src/apbirthday/Makefile
@@ -41,3 +41,5 @@ 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
+
+host: all.host