From d385a9eacb2e8580239f101f96356f7ed216dd97 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Sun, 8 May 2011 13:02:53 +0200 Subject: digital/io-hub: add clamp moving --- digital/io-hub/src/robospierre/Makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'digital/io-hub/src/robospierre/Makefile') diff --git a/digital/io-hub/src/robospierre/Makefile b/digital/io-hub/src/robospierre/Makefile index a95d7586..21411631 100644 --- a/digital/io-hub/src/robospierre/Makefile +++ b/digital/io-hub/src/robospierre/Makefile @@ -4,6 +4,8 @@ BASE = ../../../avr PROGS = io_hub # Sources to compile. io_hub_SOURCES = main.c \ + clamp.c \ + fsm.host.c fsm_AI_gen.avr.c \ pwm.avr.c pwm.host.c \ contact.avr.c contact.host.c \ twi_master.c asserv.c mimot.c \ @@ -11,7 +13,7 @@ io_hub_SOURCES = main.c \ # Modules needed for IO. MODULES = proto uart twi utils \ math/fixed math/geometry -AI_MODULES = twi_master common utils +AI_MODULES = twi_master common utils fsm # Configuration file. CONFIGFILE = avrconfig.h AVR_MCU = at90usb1287 @@ -25,4 +27,13 @@ vpath %.c $(AI_MODULES:%=../../../ai/src/%) vpath %.h $(AI_MODULES:%=../../../ai/src/%) INCLUDES += -I. -I../common $(AI_MODULES:%=-I../../../ai/src/%) +EXTRA_CLEAN_FILES = fsm_AI_gen.h fsm_AI_gen.avr.c + include $(BASE)/make/Makefile.gen + +# FSM generation. +obj/main.avr.o: fsm_AI_gen.h +fsm_AI_gen.avr.c: fsm_AI_gen.h +fsm_AI_gen.h: io_hub.host + ./$< --gen + mv fsm_AI_gen.c fsm_AI_gen.avr.c -- cgit v1.2.3