# -*- makefile -*-
-SUBDIRS = eb2007
+SUBDIRS = test
+
+default_CONFIG = CONFIG_LOCK_CHECKING=n HAVE_PRIO_INHERIT=y
+
+config_include_HEADERS = robot_config.h
+robot_config_DEFINES = CONFIG_LOCK_CHECKING HAVE_PRIO_INHERIT
+
+bin_PROGRAMS += competition
+competition_SOURCES = competition2012.cc \
+ common-states.cc strategy_get_central_buillon.cc
+
+bin_PROGRAMS += homologation
+homologation_SOURCES = homologation2012.cc
+
+# 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 map_handling.cc \
+ match-timing.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 pthread rt m \
+ orte pathplan sharp map fsm rbtree motion robodim \
+ actlib ulut shape_detect
+
+# 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