7df1dc546512f590b1deef12e36ce88a3f208682
[aversive.git] / projects / microb2010 / mainboard / Makefile
1 TARGET = main
2
3 # repertoire des modules
4 AVERSIVE_DIR = ../../..
5
6 SRC  = $(TARGET).c cmdline.c commands_ax12.c commands_gen.c
7 SRC += commands_cs.c commands_mainboard.c commands_traj.c commands.c
8 SRC += i2c_protocol.c sensor.c actuator.c cs.c ax12_user.c
9 SRC += strat_utils.c strat_base.c strat.c strat_corn.c
10 SRC += strat_db.c strat_avoid.c
11 ifeq ($(H),1)
12 SRC += robotsim.c
13 endif
14
15 ASRC =
16
17 CFLAGS += -Wall -Werror
18 ifneq ($(H),1)
19 LDFLAGS = -T ../common/avr6.x
20 endif
21
22 ########################################
23
24 -include .aversive_conf
25 include $(AVERSIVE_DIR)/mk/aversive_project.mk
26
27 AVRDUDE_DELAY=50
28
29 program_noerase: $(TARGET).$(FORMAT_EXTENSION) $(TARGET).eep
30         echo $(AVRDUDE) -D -V $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM) ;\
31         $(AVRDUDE) -D -V $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM) ;\
32