trajectory: follow a line
[aversive.git] / projects / microb2010 / ballboard / 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_ballboard.c commands.c
13 SRC += i2c_protocol.c sensor.c actuator.c cs.c ax12_user.c
14 SRC += state.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 scan_h_l.h:
31         @gcc gen_scan_tab.c -o gen_scan_tab -lm;                \
32         if ./gen_scan_tab > /dev/null 2>&1; then        \
33                 echo ok;                                \
34         else                                            \
35                 echo nok;                               \
36         fi
37
38 AVRDUDE_DELAY=50
39
40 program_noerase: $(TARGET).$(FORMAT_EXTENSION) $(TARGET).eep
41         echo $(AVRDUDE) -D -V $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM) ;\
42         $(AVRDUDE) -D -V $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM) ;\
43