Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/pc532/stand Use crosscompile-friendly ${BINUTILSPRO...



details:   https://anonhg.NetBSD.org/src/rev/c49814f34220
branches:  trunk
changeset: 556035:c49814f34220
user:      simonb <simonb%NetBSD.org@localhost>
date:      Sat Dec 06 14:04:33 2003 +0000

description:
Use crosscompile-friendly ${BINUTILSPROGRAMNAMES}.
Enable WARNS=2.
Don't use -z and update start address for binutils 2.14 ld.

diffstat:

 sys/arch/pc532/stand/Makefile.buildboot |  22 ++++++++++++++--------
 1 files changed, 14 insertions(+), 8 deletions(-)

diffs (52 lines):

diff -r 537299dfb3f1 -r c49814f34220 sys/arch/pc532/stand/Makefile.buildboot
--- a/sys/arch/pc532/stand/Makefile.buildboot   Sat Dec 06 14:02:40 2003 +0000
+++ b/sys/arch/pc532/stand/Makefile.buildboot   Sat Dec 06 14:04:33 2003 +0000
@@ -1,26 +1,25 @@
-#      $NetBSD: Makefile.buildboot,v 1.5 2003/10/26 07:25:36 lukem Exp $
+#      $NetBSD: Makefile.buildboot,v 1.6 2003/12/06 14:04:33 simonb Exp $
 
 S=             ${.CURDIR}/../../../..
 
 .PATH: ${.CURDIR}/../common
 
 SRCS=          ${COMMONSOURCE} ${DRIVERSOURCE} ${PROGSOURCE} vers.c
-NOMAN= # defined
+NOMAN=         # defined
 STRIP=
 BINMODE=       444
 
 CLEANFILES+=   ${PROG}.sym ${PROG}
 
 CPPFLAGS+=     -I${.CURDIR}/../../.. -I${.CURDIR}/../../../..
-CFLAGS=                -O3 -fno-inline
-#CFLAGS+=      -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-format
+CFLAGS=                -O2 -fno-inline -ffreestanding
+WARNS?=                2
 
 # no lint here (yet?)
 lint:
 
 ${PROG}: ${PROG}.sym
-       cp ${PROG}.sym ${PROG}
-       strip ${PROG}
+       ${STRIP} -o ${PROG} ${PROG}.sym
 
 .include <bsd.prog.mk>
 
@@ -44,7 +43,14 @@
 vers.c: version
        ${HOST_SH} ${S}/conf/newvers_stand.sh ${.CURDIR}/version "pc532" ${NEWVERSWHAT}
 
+CHECK!= ${LD} --version 2>&1; :
+.if ${CHECK:Minvalid} == ""
+RELOCFLAGS!=   echo ${RELOC} | sed -e 's/00$$/20/'
+.else
+RELOCFLAGS=    -z ${RELOC}
+.endif
+
 ${PROG}.sym: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
-       ${LD} -Ttext ${RELOC} -z -e start -o ${PROG}.sym \
+       ${LD} -Ttext ${RELOCFLAGS} -e start -o ${PROG}.sym \
            ${OBJS} ${LIBSA} ${LIBZ} ${LIBSA} ${LIBKERN}
-       @size ${PROG}.sym
+       @${SIZE} ${PROG}.sym



Home | Main Index | Thread Index | Old Index