summaryrefslogtreecommitdiff
path: root/digital/io/src/Makefile
blob: 9bd93afd778d33a3169fcecbb527a97acf2461df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Base directory of AVR.
BASE = ../../avr
# Name of the program to build.
PROGS = io
# Sources to compile.
io_SOURCES = main.c asserv.c servo.avr.c eeprom.avr.c sharp.c pwm.c \
             switch.avr.c chrono.c main_timer.avr.c servo_pos.c \
	     simu.host.c contact.c
# Modules needed for IO.
MODULES = proto uart twi utils adc math/fixed path trace flash spi
# Configuration file.
CONFIGFILE = avrconfig.h
# IO board use an ATMega128.
AVR_MCU = atmega128
# Optimize for speed.
OPTIMIZE = -O2
HOST_LIBS = -lm

# FSM.
FSM = ai
FSM_SOURCES := top init move
# Include FSM makefile.
include $(BASE)/make/Makefile.fsm

trace_event.h: trace.trc
	PYTHONPATH=$(BASE)/../../host python $(BASE)/../../tools/trace/trace.py -t create -e $(@:%.h=%_t) -i $< -o $@

main.c: trace_event.h