]> rtime.felk.cvut.cz Git - eurobot/public.git/blob - src/robofsm/Makefile.omk
corns: compile cornslib (add to Makefile.omk)
[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 lib_LIBRARIES += cornslib
29 cornslib_SOURCES = corns_configs.c
30
31 # Libraries linked to all programs in this Makefile
32 lib_LOADLIBES = robot mcl robomath roboorte robottype           \
33                 pthread rt m orte pathplan sharp map fsm        \
34                 rbtree motion robodim actlib
35
36 # Automatic generation of event definition files
37 include-pass_HOOKS = roboevent.c roboevent.h
38
39 roboevent.c roboevent.h: $(SOURCES_DIR)/roboevent.py $(SOURCES_DIR)/../fsm/eventgen.py
40         @$(QUIET_CMD_ECHO) "  EVENTGEN roboevent"
41         $(Q)python $(SOURCES_DIR)/../fsm/eventgen.py $<
42
43 clean-custom:
44         $(Q)rm -f roboevent.c roboevent.h