summaryrefslogtreecommitdiff
path: root/digital/asserv/src/asserv/Makefile
blob: 197db5c9f015f956b00a2c203f518667ec32b827 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
BASE = ../../../avr
PROGS = asserv
asserv_SOURCES = main.c timer.avr.c \
		 postrack.c traj.c aux_traj.c cs.c \
		 twi_proto.c eeprom.avr.c seq.c \
		 simu.host.c models.host.c
MODULES = proto uart utils math/fixed twi spi \
	  motor/encoder motor/encoder/ext motor/output motor/output/pwm_mp \
	  motor/control_system motor/speed_control motor/pos_control \
	  motor/blocking_detection motor/motor_model
CONFIGFILE = avrconfig.h
# atmega8, atmega8535, atmega128...
AVR_MCU = atmega128
# -O2 : speed
# -Os : size
OPTIMIZE = -O2
LIBS = -lm

AVR_DEFS = $(EEPROM_DEFAULTS:%=-DEEPROM_DEFAULTS=\"%\")

include $(BASE)/make/Makefile.gen

include eeprom.mak