# -*- makefile -*- SUBDIRS = test default_CONFIG = CONFIG_OPEN_LOOP=n CONFIG_LOCK_CHECKING=n config_include_HEADERS = robot_config.h robot_config_DEFINES = CONFIG_OPEN_LOOP CONFIG_LOCK_CHECKING bin_PROGRAMS += robomain robomain_SOURCES = main.cc fsmmain.c # Library with general support functions for the robot lib_LIBRARIES += robot robot_SOURCES = robot_orte.c robot.c fsmmove.cc movehelper.cc \ motion-control.cc fsmdisplay.c fsmact.c map_handling.c robot_GEN_SOURCES = roboevent.c include_GEN_HEADERS += roboevent.h include_HEADERS += robot.h movehelper.h robot_orte.h actuators.h lib_LIBRARIES += actlib actlib_SOURCES = actuators.c # Libraries linked to all programs in this Makefile lib_LOADLIBES = robot mcl robomath roboorte robottype robottype \ pthread rt m orte pathplan sharp map fsm uoled oledlib \ rbtree motion robodim sercom # Automatic generation of event definition files include-pass_HOOKS = roboevent.c roboevent.h roboevent.c roboevent.h: $(SOURCES_DIR)/roboevent.py $(SOURCES_DIR)/../fsm/eventgen.py @$(QUIET_CMD_ECHO) " EVENTGEN roboevent" $(Q)python $(SOURCES_DIR)/../fsm/eventgen.py $< clean-custom: $(Q)rm -f roboevent.c roboevent.h