Mercurial > ~darius > hgwebdir.cgi > avr
comparison Makefile.avr @ 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 | 59c7fcf10ea0 |
children |
comparison
equal
deleted
inserted
replaced
33:0aa6bf4b98ae | 34:2b8278ec5adb |
---|---|
1 # | 1 # |
2 # $Id$ | 2 # $Id$ |
3 # | 3 # |
4 | 4 |
5 .SUFFIXES: .hex .out .c .o .elf .dmp .s | 5 .SUFFIXES: .hex .out .c .o .elf .dmp .s |
6 | |
7 # Otherwise we get -march=foo | |
8 NO_CPU_CFLAGS= | |
9 _CPUCFLAGS= | |
6 | 10 |
7 # Programs | 11 # Programs |
8 AS=avr-as | 12 AS=avr-as |
9 CC=avr-gcc | 13 CC=avr-gcc |
10 OBJCOPY=avr-objcopy | 14 OBJCOPY=avr-objcopy |
19 LDFLAGS+=${LDADD} | 23 LDFLAGS+=${LDADD} |
20 | 24 |
21 RM=rm -f | 25 RM=rm -f |
22 | 26 |
23 PROGRAMMER=avrdude | 27 PROGRAMMER=avrdude |
24 PROGOPTS=-p ${PART} -c alf -E vcc,noreset -q | 28 PROGOPTS?=-p ${PART} -c alf -E vcc,noreset -q |
25 | 29 |
26 .if !defined(SRCS) | 30 .if !defined(SRCS) |
27 SRCS= ${PROG}.c | 31 SRCS= ${PROG}.c |
28 .endif | 32 .endif |
29 | 33 |