5 WARNING = -pedantic -Wall -Wstrict-prototypes
7 DEFS = -D$(call uc, $(MCU_TARGET))
8 FLASHCMD = avrdude -p $(MCU_TARGET) -P /dev/ttyUSB0 -c $(PROGRAMMER) -U flash:w:# no space at the end
9 #FLASHCMD = avrdude -p $(MCU_TARGET) -c usbasp -U flash:w:# no space at the end
13 TESTSRC_DIR = test_src/
14 #uisp -dprog=bsd -dlpt=/dev/parport1 --upload if=$(PRG).hex
16 TESTPORT = /dev/ttyUSB1
17 TESTPORTBAUDR = 115200
18 TESTLOG_DIR = testlog/#
20 SPEEDTOOL = host/get_performance.rb
21 SPEEDLOG_DIR = speed_log/
23 SPEEDCMD = performance
27 AUTOASM_DIR = autoasm/#
32 override CFLAGS_A = -MMD -MF$(DEP_DIR)$(patsubst %.o,%.d,$(notdir $(1))) $(DEBUG) $(WARNING) -std=$(CSTD) $(OPTIMIZE) -mmcu=$(MCU_TARGET) $(DEFS)
33 override CFLAGS = -MMD -MF$(DEP_DIR)$(patsubst %.o,%.d,$(notdir $@)) $(DEBUG) $(WARNING) -std=$(CSTD) $(OPTIMIZE) -mmcu=$(MCU_TARGET) $(DEFS)
35 override LDFLAGS = -gdwarf-2 -Wl,-Map,
36 override ASFLAGS = -mmcu=$(MCU_TARGET) -Wa,--gdwarf-2
38 SIZESTAT_FILE = sizestats.txt
45 GET_TEST = host/get_test.rb
47 MAKE2GRAPH = ~/bin/make2graph.rb