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