traj update
[aversive.git] / projects / microb2010 / bootloader / Makefile
1 TARGET = main
2
3 # repertoire des modules
4 AVERSIVE_DIR = ../../..
5 # VALUE, absolute or relative path : example ../.. #
6
7 CFLAGS += -Werror
8
9 # atm128
10 # address is 0xf000 (in words)
11 # LDFLAGS += -Wl,--section-start=.text=1e000
12 # UART_NUM = 0
13
14 # atm2560
15 # address is 0x1f800 (in words)
16 LDFLAGS += -Wl,--section-start=.text=3f000
17 UART_NUM = 1
18
19 CFLAGS += -DUART_NUM=$(UART_NUM)
20
21 # List C source files here. (C dependencies are automatically generated.)
22 SRC = $(TARGET).c 
23
24 # List Assembler source files here.
25 # Make them always end in a capital .S.  Files ending in a lowercase .s
26 # will not be considered source files but generated files (assembler
27 # output from the compiler), and will be deleted upon "make clean"!
28 # Even though the DOS/Win* filesystem matches both .s and .S the same,
29 # it will preserve the spelling of the filenames, and gcc itself does
30 # care about how the name is spelled on its command-line.
31 ASRC = 
32
33 ########################################
34
35 -include .aversive_conf
36 include $(AVERSIVE_DIR)/mk/aversive_project.mk
37
38 program_noerase: $(TARGET).$(FORMAT_EXTENSION) $(TARGET).eep
39         echo $(AVRDUDE) -D -V $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM) ;\
40         $(AVRDUDE) -D -V $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM) ;\
41