# HG changeset patch # User darius # Date 1193102570 -34200 # Node ID 2b8278ec5adbd3830d7274222877157b379e29da # Parent 0aa6bf4b98ae0cb97edebcbc2db507f45fd19cb5 Work around FreeBSD setting CPU flags based on architectures (-march=pentium-m doesn't work so well on AVR) diff -r 0aa6bf4b98ae -r 2b8278ec5adb Makefile.avr --- a/Makefile.avr Tue Oct 23 10:51:35 2007 +0930 +++ b/Makefile.avr Tue Oct 23 10:52:50 2007 +0930 @@ -4,6 +4,10 @@ .SUFFIXES: .hex .out .c .o .elf .dmp .s +# Otherwise we get -march=foo +NO_CPU_CFLAGS= +_CPUCFLAGS= + # Programs AS=avr-as CC=avr-gcc @@ -21,7 +25,7 @@ RM=rm -f PROGRAMMER=avrdude -PROGOPTS=-p ${PART} -c alf -E vcc,noreset -q +PROGOPTS?=-p ${PART} -c alf -E vcc,noreset -q .if !defined(SRCS) SRCS= ${PROG}.c