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