merge hostsim in main
[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
10 ifneq ($(HOST),avr)
11 SRC += robotsim.c
12 endif
13
14 ASRC =
15
16 CFLAGS += -Wall -Werror
17 ifeq ($(HOST),avr)
18 LDFLAGS = -T ../common/avr6.x
19 endif
20
21 ########################################
22
23 -include .aversive_conf
24 include $(AVERSIVE_DIR)/mk/aversive_project.mk
25
26 AVRDUDE_DELAY=50
27
28 program_noerase: $(TARGET).$(FORMAT_EXTENSION) $(TARGET).eep
29         echo $(AVRDUDE) -D -V $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM) ;\
30         $(AVRDUDE) -D -V $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM) ;\
31