]> rtime.felk.cvut.cz Git - eurobot/public.git/blob - src/robofsm/Makefile.omk
7814c7e29bd010bbbf57488dd8a2907d6fb39cb5
[eurobot/public.git] / src / robofsm / Makefile.omk
1 # -*- makefile -*-
2
3 SUBDIRS = test
4
5 default_CONFIG = CONFIG_LOCK_CHECKING=n HAVE_PRIO_INHERIT=y
6
7 config_include_HEADERS = robot_config.h
8 robot_config_DEFINES = CONFIG_LOCK_CHECKING HAVE_PRIO_INHERIT
9
10 bin_PROGRAMS += bear-rescue
11 bear-rescue_SOURCES = bear-rescue.cc common-states.cc sub-states.cc
12
13 # Library with general support functions for the robot
14 lib_LIBRARIES += robot
15 robot_SOURCES = robot_orte.c robot.c fsmmove.cc movehelper.cc   \
16                 motion-control.cc map_handling.cc       \
17                 match-timing.c
18                 
19 robot_GEN_SOURCES = roboevent.c
20 include_GEN_HEADERS += roboevent.h
21
22 include_HEADERS += robot.h movehelper.h robot_orte.h actuators.h
23
24 lib_LIBRARIES += actlib
25 actlib_SOURCES = actuators.c
26
27 # Libraries linked to all programs in this Makefile
28 lib_LOADLIBES = robot mcl robomath roboorte robottype pthread rt m      \
29                 orte pathplan sharp map fsm rbtree motion robodim       \
30                 actlib ulut shape_detect lidar
31
32 # Automatic generation of event definition files
33 include-pass_HOOKS = roboevent.c roboevent.h
34
35 roboevent.c roboevent.h: $(SOURCES_DIR)/roboevent.py $(SOURCES_DIR)/../fsm/eventgen.py
36         @$(QUIET_CMD_ECHO) "  EVENTGEN roboevent"
37         $(Q)python $(SOURCES_DIR)/../fsm/eventgen.py $<
38
39 clean-custom:
40         $(Q)rm -f roboevent.c roboevent.h