X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=avr-makefile.inc;h=121f0293ec548714b9df78aed6ed273d94d6d72e;hb=ac564028e573ea773530e01f1e5a3fe58fcd40a0;hp=f656cd3dabd16c158d04dec16fcd0b504c18e03e;hpb=b022a029def51d63f330c12bf07156db294c8958;p=avr-crypto-lib.git diff --git a/avr-makefile.inc b/avr-makefile.inc index f656cd3..121f029 100644 --- a/avr-makefile.inc +++ b/avr-makefile.inc @@ -1,6 +1,8 @@ MCU_TARGET = atmega644 OPTIMIZE = -Os # -Os +DEBUG = -gdwarf-2 +WARNING = -pedantic -Wall -Wstrict-prototypes PROGRAMMER = avr911 DEFS = -D$(call uc, $(MCU_TARGET)) FLASHCMD = avrdude -p $(MCU_TARGET) -P /dev/ttyUSB0 -c $(PROGRAMMER) -U flash:w:# no space at the end @@ -8,12 +10,11 @@ FLASHCMD = avrdude -p $(MCU_TARGET) -P /dev/ttyUSB0 -c $(PROGRAMMER) -U fl DEP_DIR = deps/ TEST_DIR = test/ BIN_DIR = bin/ -TESTBIN_DIR = test_bin/ TESTSRC_DIR = test_src/ #uisp -dprog=bsd -dlpt=/dev/parport1 --upload if=$(PRG).hex ERASECMD = TESTPORT = /dev/ttyUSB1 -TESTPORTBAUDR = 38400 +TESTPORTBAUDR = 115200 TESTLOG_DIR = testlog/# TESTPREFIX = nessie- SPEEDTOOL = host/get_performance.rb @@ -28,8 +29,8 @@ AUTOASM_OPT = -S CC = avr-gcc CSTD = c99 -override CFLAGS_A = -MMD -MF$(DEP_DIR)$(patsubst %.o,%.d,$(notdir $(1))) -I. -Itest_src -gdwarf-2 -pedantic -std=$(CSTD) -Wall -Wstrict-prototypes $(OPTIMIZE) -mmcu=$(MCU_TARGET) $(DEFS) -override CFLAGS = -MMD -MF$(DEP_DIR)$(patsubst %.o,%.d,$(notdir $@)) -I. -Itest_src -gdwarf-2 -pedantic -std=$(CSTD) -Wall -Wstrict-prototypes $(OPTIMIZE) -mmcu=$(MCU_TARGET) $(DEFS) +override CFLAGS_A = -MMD -MF$(DEP_DIR)$(patsubst %.o,%.d,$(notdir $(1))) $(DEBUG) $(WARNING) -std=$(CSTD) $(OPTIMIZE) -mmcu=$(MCU_TARGET) $(DEFS) +override CFLAGS = -MMD -MF$(DEP_DIR)$(patsubst %.o,%.d,$(notdir $@)) $(DEBUG) $(WARNING) -std=$(CSTD) $(OPTIMIZE) -mmcu=$(MCU_TARGET) $(DEFS) override LDFLAGS = -gdwarf-2 -Wl,-Map, override ASFLAGS = -mmcu=$(MCU_TARGET) -Wa,--gdwarf-2