test board 2008
[aversive.git] / projects / microb2010 / mechboard / Makefile
1 TARGET = main
2
3 # repertoire des modules
4 AVERSIVE_DIR = ../../..
5 # VALUE, absolute or relative path : example ../.. #
6
7 CFLAGS += -Werror -Wextra
8 LDFLAGS = -T ../common/avr6.x
9
10 # List C source files here. (C dependencies are automatically generated.)
11 SRC  = $(TARGET).c cmdline.c commands_ax12.c commands_gen.c 
12 SRC += commands_cs.c commands_mechboard.c commands.c
13 SRC += i2c_protocol.c sensor.c actuator.c cs.c
14 SRC += arm_xy.c state.c ax12_user.c arm_highlevel.c
15
16 # List Assembler source files here.
17 # Make them always end in a capital .S.  Files ending in a lowercase .s
18 # will not be considered source files but generated files (assembler
19 # output from the compiler), and will be deleted upon "make clean"!
20 # Even though the DOS/Win* filesystem matches both .s and .S the same,
21 # it will preserve the spelling of the filenames, and gcc itself does
22 # care about how the name is spelled on its command-line.
23 ASRC = 
24
25 ########################################
26
27 -include .aversive_conf
28 include $(AVERSIVE_DIR)/mk/aversive_project.mk
29
30 AVRDUDE_DELAY=50
31
32 program_noerase: $(TARGET).$(FORMAT_EXTENSION) $(TARGET).eep
33         echo $(AVRDUDE) -D -V $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM) ;\
34         $(AVRDUDE) -D -V $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM) ;\
35