]> rtime.felk.cvut.cz Git - eurobot/public.git/blob - src/robofsm/Makefile.omk
robofsm: competition2012
[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 += competition
11 competition_SOURCES = competition2012.cc#       \
12 #                     common-states.cc
13
14 bin_PROGRAMS += homologation
15 homologation_SOURCES = homologation2012.cc
16
17 # Library with general support functions for the robot
18 lib_LIBRARIES += robot
19 robot_SOURCES = robot_orte.c robot.c fsmmove.cc movehelper.cc   \
20                 motion-control.cc map_handling.cc       \
21                 match-timing.c
22 robot_GEN_SOURCES = roboevent.c
23 include_GEN_HEADERS += roboevent.h
24
25 include_HEADERS += robot.h movehelper.h robot_orte.h actuators.h
26
27 lib_LIBRARIES += actlib
28 actlib_SOURCES = actuators.c
29
30 # Libraries linked to all programs in this Makefile
31 lib_LOADLIBES = robot mcl robomath roboorte robottype pthread rt m      \
32                 orte pathplan sharp map fsm rbtree motion robodim       \
33                 actlib ulut shape_detect
34
35 # Automatic generation of event definition files
36 include-pass_HOOKS = roboevent.c roboevent.h
37
38 roboevent.c roboevent.h: $(SOURCES_DIR)/roboevent.py $(SOURCES_DIR)/../fsm/eventgen.py
39         @$(QUIET_CMD_ECHO) "  EVENTGEN roboevent"
40         $(Q)python $(SOURCES_DIR)/../fsm/eventgen.py $<
41
42 clean-custom:
43         $(Q)rm -f roboevent.c roboevent.h