]> rtime.felk.cvut.cz Git - eurobot/public.git/blobdiff - src/robofsm/Makefile.omk
robofsm: Makefile.omk
[eurobot/public.git] / src / robofsm / Makefile.omk
index f83281b116bcbab4ccf10353af98bbf8fae278a6..c3f31434a9467592f0b4f5f8cdbd2e0b655bca6a 100644 (file)
@@ -1,3 +1,43 @@
 # -*- makefile -*-
 
-SUBDIRS = eb2008 test utils
+SUBDIRS = test
+
+default_CONFIG = CONFIG_LOCK_CHECKING=n HAVE_PRIO_INHERIT=y
+
+config_include_HEADERS = robot_config.h
+robot_config_DEFINES = CONFIG_LOCK_CHECKING HAVE_PRIO_INHERIT
+
+#bin_PROGRAMS += competition
+competition_SOURCES = competition.cc   \
+                     common-states.cc
+
+bin_PROGRAMS += homologation
+homologation_SOURCES = homologation2012.cc
+
+# Library with general support functions for the robot
+lib_LIBRARIES += robot
+robot_SOURCES = robot_orte.c robot.c fsmmove.cc movehelper.cc  \
+               motion-control.cc map_handling.cc       \
+               match-timing.c
+robot_GEN_SOURCES = roboevent.c
+include_GEN_HEADERS += roboevent.h
+
+include_HEADERS += robot.h movehelper.h robot_orte.h actuators.h
+
+lib_LIBRARIES += actlib
+actlib_SOURCES = actuators.c
+
+# Libraries linked to all programs in this Makefile
+lib_LOADLIBES = robot mcl robomath roboorte robottype pthread rt m     \
+               orte pathplan sharp map fsm rbtree motion robodim       \
+               actlib ulut shape_detect
+
+# Automatic generation of event definition files
+include-pass_HOOKS = roboevent.c roboevent.h
+
+roboevent.c roboevent.h: $(SOURCES_DIR)/roboevent.py $(SOURCES_DIR)/../fsm/eventgen.py
+       @$(QUIET_CMD_ECHO) "  EVENTGEN roboevent"
+       $(Q)python $(SOURCES_DIR)/../fsm/eventgen.py $<
+
+clean-custom:
+       $(Q)rm -f roboevent.c roboevent.h