merge
[aversive.git] / projects / microb2009 / sensorboard / Makefile
1 TARGET = main
2
3 # repertoire des modules
4 AVERSIVE_DIR = ../../..
5 # VALUE, absolute or relative path : example ../.. #
6
7 CFLAGS += -Werror
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_sensorboard.c commands.c commands_scan.c
13 SRC += i2c_protocol.c sensor.c actuator.c cs.c ax12_user.c
14 SRC += beacon.c
15 SRC += img_processing.c
16 SRC += scanner.c
17
18
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.
26 ASRC = 
27
28 ########################################
29
30 -include .aversive_conf
31 include $(AVERSIVE_DIR)/mk/aversive_project.mk
32
33 scan_h_l.h:
34         @gcc gen_scan_tab.c -o gen_scan_tab -lm;                \
35         if ./gen_scan_tab > /dev/null 2>&1; then        \
36                 echo ok;                                \
37         else                                            \
38                 echo nok;                               \
39         fi
40
41 AVRDUDE_DELAY=50
42
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) ;\
46