changeset 34:2b8278ec5adb

Work around FreeBSD setting CPU flags based on architectures (-march=pentium-m doesn't work so well on AVR)
author darius
date Tue, 23 Oct 2007 10:52:50 +0930
parents 0aa6bf4b98ae
children fed32b382de2
files Makefile.avr
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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