6 WARNING = -pedantic -Wall -Werror -Wstrict-prototypes
9 DEFS = -D$(call uc, $(MCU_TARGET)) -DF_CPU=$(F_CPU)
10 FLASHCMD = avrdude -p $(MCU_TARGET) -P $(PROG_PORT) -c $(PROGRAMMER) -U flash:w:# no space at the end
11 #FLASHCMD = avrdude -p $(MCU_TARGET) -c usbasp -U flash:w:# no space at the end
12 #RESETCMD = avrdude -p $(MCU_TARGET) -P $(PROG_PORT) -c $(PROGRAMMER)
13 RESETCMD = avarice -2 -R -j usb
17 TESTSRC_DIR = test_src/
18 #uisp -dprog=bsd -dlpt=/dev/parport1 --upload if=$(PRG).hex
20 TESTPORT = /dev/ttyUSB0
21 TESTPORTBAUDR = 115200
22 TESTLOG_DIR = testlog/#
24 SPEEDTOOL = host/get_performance.rb
25 SPEEDLOG_DIR = speed_log/
27 SPEEDCMD = performance
30 LIST_OPT = -Wa,-adhln -g
32 AUTOASM_DIR = autoasm/#
37 override CFLAGS_A = -MMD -MF$(DEP_DIR)$(patsubst %.o,%.d,$(notdir $(1))) $(DEBUG) $(WARNING) -std=$(CSTD) $(OPTIMIZE) -mmcu=$(MCU_TARGET) $(DEFS)
38 override CFLAGS = -MMD -MF$(DEP_DIR)$(patsubst %.o,%.d,$(notdir $@)) $(DEBUG) $(WARNING) -std=$(CSTD) $(OPTIMIZE) -mmcu=$(MCU_TARGET) $(DEFS)
40 override LDFLAGS = -gdwarf-2 -Wl,-Map,#
41 override ASFLAGS = -mmcu=$(MCU_TARGET) -Wa,--gdwarf-2
43 SIZESTAT_FILE = sizestats.txt
50 GET_TEST = host/get_test.rb
52 MAKE2GRAPH = ~/bin/make2graph.rb