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