Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/stand/ofwboot this is a sparc64 program. so ...



details:   https://anonhg.NetBSD.org/src/rev/62f6d73eb782
branches:  trunk
changeset: 504526:62f6d73eb782
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Mar 04 14:50:05 2001 +0000

description:
this is a sparc64 program.  so -DSUN4U, machine -> sparc64.  cleanup.

diffstat:

 sys/arch/sparc/stand/ofwboot/Makefile |  38 +++++++++++++++++++---------------
 1 files changed, 21 insertions(+), 17 deletions(-)

diffs (73 lines):

diff -r c6ba8cd3168a -r 62f6d73eb782 sys/arch/sparc/stand/ofwboot/Makefile
--- a/sys/arch/sparc/stand/ofwboot/Makefile     Sun Mar 04 14:38:29 2001 +0000
+++ b/sys/arch/sparc/stand/ofwboot/Makefile     Sun Mar 04 14:50:05 2001 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.1 2000/08/20 14:58:37 mrg Exp $
+#      $NetBSD: Makefile,v 1.2 2001/03/04 14:50:05 mrg Exp $
 
 CURDIR=        ${.CURDIR}
 S=     ${CURDIR}/../../../..
@@ -13,14 +13,9 @@
 SRCS=          srt0.s Locore.c boot.c ofdev.c alloc.c net.c netif_of.c vers.c
 .PATH:         ${S}/arch/sparc64/sparc64
 
-.if CROSS
-CEXTRAFLAGS?=  -nostdinc
-.else
-CEXTRAFLAGS?=  -D_LP64
-.endif
 CWARNFLAGS+=   -Wno-main
-CFLAGS+=       ${COPTS} -D__ELF__ ${CEXTRAFLAGS}
-CPPFLAGS+=     -D_STANDALONE
+CFLAGS+=       ${COPTS} ${CEXTRAFLAGS}
+CPPFLAGS+=     -D_STANDALONE -DSUN4U
 #CPPFLAGS+=    -DNETIF_DEBUG 
 
 MKMAN=         no
@@ -70,16 +65,16 @@
 .include "${S}/lib/libsa/Makefile.inc"
 LIBSA=         ${SALIB}
 
-.NOPATH: machine sparc
-${SRCS}: machine sparc
+.NOPATH: machine sparc64
+${SRCS}: machine sparc64
 
 machine:
        rm -f machine
-       ln -s ${.CURDIR}/../../../${MACHINE}/include machine
+       ln -s sparc64 machine
 
-sparc:
-       rm -f sparc
-       ln -s ${.CURDIR}/../../../sparc/include sparc
+sparc64:
+       rm -f sparc64
+       ln -s ${.CURDIR}/../../../sparc64/include sparc64
 
 vers.c: version
        sh ${S}/conf/newvers_stand.sh ${CURDIR}/version "sparc64" ${NEWVERSWHAT}
@@ -96,11 +91,20 @@
 
 .include <bsd.prog.mk>
 
-.if CROSS
-AFLAGS=                -x assembler-with-cpp -Wa,-Av9a -traditional-cpp -D_LOCORE -D__ELF__
+.if ${MACHINE_ARCH} == "sparc64"
+AFLAGS+=               -Wa,-Av9a
+CEXTRAFLAGS?=          -D_LP64
 .else
-AFLAGS=                -x assembler-with-cpp -traditional-cpp -D_LOCORE -D__ELF__ -Wa,-Av9a ${CEXTRAFLAGS} #-Wa,-Av8plusa
+AFLAGS+=               -Wa,-Av8plusa
 .endif
+
+.if CROSS
+AFLAGS+=               -x assembler-with-cpp -traditional-cpp -D_LOCORE -D__ELF__
+CEXTRAFLAGS?=          -D_LP64
+.else
+AFLAGS+=               -x assembler-with-cpp -traditional-cpp -D_LOCORE -D__ELF__ ${CEXTRAFLAGS}
+.endif
+
 NORMAL_S=      ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
 srt0.o: srt0.s
        ${NORMAL_S}



Home | Main Index | Thread Index | Old Index