ini
[aversive.git] / projects / microb2009 / tests / 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 # atm128
9 # address is 0xf000 (in words)
10 # LDFLAGS += -Wl,--section-start=.text=1e000
11
12 # atm2560
13 # address is 0x1f800 (in words)
14 LDFLAGS += -Wl,--section-start=.text=3f000
15
16 # List C source files here. (C dependencies are automatically generated.)
17 SRC = $(TARGET).c 
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 program_noerase: $(TARGET).$(FORMAT_EXTENSION) $(TARGET).eep
34         echo $(AVRDUDE) -D -V $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM) ;\
35         $(AVRDUDE) -D -V $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM) ;\
36