]> rtime.felk.cvut.cz Git - eurobot/public.git/blob - src/robofsm/Makefile.omk
Merge branch 'master' of /var/git/eurobot
[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 robot_GEN_SOURCES = roboevent.c
21 include_GEN_HEADERS += roboevent.h
22
23 include_HEADERS += robot.h movehelper.h robot_orte.h actuators.h
24
25 lib_LIBRARIES += actlib
26 actlib_SOURCES = actuators.c
27
28 # Libraries linked to all programs in this Makefile
29 lib_LOADLIBES = robot mcl robomath roboorte robottype           \
30                 pthread rt m orte pathplan sharp map fsm        \
31                 rbtree motion robodim actlib
32
33 # Automatic generation of event definition files
34 include-pass_HOOKS = roboevent.c roboevent.h
35
36 roboevent.c roboevent.h: $(SOURCES_DIR)/roboevent.py $(SOURCES_DIR)/../fsm/eventgen.py
37         @$(QUIET_CMD_ECHO) "  EVENTGEN roboevent"
38         $(Q)python $(SOURCES_DIR)/../fsm/eventgen.py $<
39
40 clean-custom:
41         $(Q)rm -f roboevent.c roboevent.h