]> rtime.felk.cvut.cz Git - eurobot/public.git/blob - src/robofsm/Makefile.omk
Work on actuators FSM begun. LPCs not ready yet.
[eurobot/public.git] / src / robofsm / Makefile.omk
1 # -*- makefile -*-
2
3 SUBDIRS = test
4
5 default_CONFIG = CONFIG_OPEN_LOOP=n CONFIG_LOCK_CHECKING=n
6
7 config_include_HEADERS = robot_config.h
8 robot_config_DEFINES = CONFIG_OPEN_LOOP CONFIG_LOCK_CHECKING
9
10 bin_PROGRAMS += robomain
11 robomain_SOURCES = main.cc fsmmain.c
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 fsmdisplay.c fsmact.c map_handling.c
17 robot_GEN_SOURCES = roboevent.c
18 include_GEN_HEADERS += roboevent.h
19
20 include_HEADERS += robot.h movehelper.h robot_orte.h actuators.h
21
22 lib_LIBRARIES += actlib
23 actlib_SOURCES = actuators.c
24
25 # Libraries linked to all programs in this Makefile
26 lib_LOADLIBES = robot mcl robomath roboorte robottype robottype         \
27                 pthread rt m orte pathplan sharp map fsm uoled oledlib  \
28                 rbtree motion robodim sercom
29
30 # Automatic generation of event definition files
31 include-pass_HOOKS = roboevent.c roboevent.h
32
33 roboevent.c roboevent.h: $(SOURCES_DIR)/roboevent.py $(SOURCES_DIR)/../fsm/eventgen.py
34         @$(QUIET_CMD_ECHO) "  EVENTGEN roboevent"
35         $(Q)python $(SOURCES_DIR)/../fsm/eventgen.py $<
36
37 clean-custom:
38         $(Q)rm -f roboevent.c roboevent.h