3 # repertoire des modules
4 AVERSIVE_DIR = ../../..
5 # VALUE, absolute or relative path : example ../.. #
8 LDFLAGS = -T ../common/avr6.x
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_sensorboard.c commands.c commands_scan.c
13 SRC += i2c_protocol.c sensor.c actuator.c cs.c ax12_user.c
15 SRC += img_processing.c
19 # List Assembler source files here.
20 # Make them always end in a capital .S. Files ending in a lowercase .s
21 # will not be considered source files but generated files (assembler
22 # output from the compiler), and will be deleted upon "make clean"!
23 # Even though the DOS/Win* filesystem matches both .s and .S the same,
24 # it will preserve the spelling of the filenames, and gcc itself does
25 # care about how the name is spelled on its command-line.
28 ########################################
30 -include .aversive_conf
31 include $(AVERSIVE_DIR)/mk/aversive_project.mk
34 @gcc gen_scan_tab.c -o gen_scan_tab -lm; \
35 if ./gen_scan_tab > /dev/null 2>&1; then \
43 program_noerase: $(TARGET).$(FORMAT_EXTENSION) $(TARGET).eep
44 echo $(AVRDUDE) -D -V $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM) ;\
45 $(AVRDUDE) -D -V $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM) ;\