7 WARNING = -pedantic -Wall -Werror -Wstrict-prototypes
10 DEFS = -D$(call uc, $(MCU_TARGET)) -DF_CPU=$(F_CPU)
11 FLASHCMD = avrdude -p $(MCU_TARGET) -P $(PROG_PORT) -c $(PROGRAMMER) -U flash:w:# no space at the end
12 #FLASHCMD = avrdude -p $(MCU_TARGET) -c usbasp -U flash:w:# no space at the end
13 #RESETCMD = avrdude -p $(MCU_TARGET) -P $(PROG_PORT) -c $(PROGRAMMER)
14 RESETCMD = avarice -2 -R -j usb
18 TESTSRC_DIR = test_src/
19 #uisp -dprog=bsd -dlpt=/dev/parport1 --upload if=$(PRG).hex
21 TESTPORT = /dev/ttyUSB0
22 TESTPORTBAUDR = 115200
23 TESTLOG_DIR = testlog/#
25 SPEEDTOOL = host/get_performance.rb
26 SPEEDLOG_DIR = speed_log/
28 SPEEDCMD = performance
31 LIST_OPT = -Wa,-adhln -g
33 AUTOASM_DIR = autoasm/#
38 override CFLAGS_A = -MMD -MF$(DEP_DIR)$(patsubst %.o,%.d,$(notdir $(1))) $(DEBUG) $(WARNING) -std=$(CSTD) $(OPTIMIZE) -mmcu=$(MCU_TARGET) $(DEFS)
39 override CFLAGS = -MMD -MF$(DEP_DIR)$(patsubst %.o,%.d,$(notdir $@)) $(DEBUG) $(WARNING) -std=$(CSTD) $(OPTIMIZE) -mmcu=$(MCU_TARGET) $(DEFS)
41 override LDFLAGS = -gdwarf-2 -Wl,--section-start,.data=0x801100,--defsym=__heap_end=0x807fff -Wl,-Map,#
42 override ASFLAGS = -mmcu=$(MCU_TARGET) -Wa,--gdwarf-2
44 SIZESTAT_FILE = sizestats.txt
51 GET_TEST = host/get_test.rb
53 MAKE2GRAPH = ~/bin/make2graph.rb