6 WARNING = -pedantic -Wall -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)
16 TESTSRC_DIR = test_src/
17 #uisp -dprog=bsd -dlpt=/dev/parport1 --upload if=$(PRG).hex
19 TESTPORT = /dev/ttyUSB0
20 TESTPORTBAUDR = 115200
21 TESTLOG_DIR = testlog/#
23 SPEEDTOOL = host/get_performance.rb
24 SPEEDLOG_DIR = speed_log/
26 SPEEDCMD = performance
30 AUTOASM_DIR = autoasm/#
35 override CFLAGS_A = -MMD -MF$(DEP_DIR)$(patsubst %.o,%.d,$(notdir $(1))) $(DEBUG) $(WARNING) -std=$(CSTD) $(OPTIMIZE) -mmcu=$(MCU_TARGET) $(DEFS)
36 override CFLAGS = -MMD -MF$(DEP_DIR)$(patsubst %.o,%.d,$(notdir $@)) $(DEBUG) $(WARNING) -std=$(CSTD) $(OPTIMIZE) -mmcu=$(MCU_TARGET) $(DEFS)
38 override LDFLAGS = -gdwarf-2 -Wl,-Map,
39 override ASFLAGS = -mmcu=$(MCU_TARGET) -Wa,--gdwarf-2
41 SIZESTAT_FILE = sizestats.txt
48 GET_TEST = host/get_test.rb
50 MAKE2GRAPH = ~/bin/make2graph.rb