Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Apr 2003 09:04:53 -0700 (PDT)
From:      Robert Drehmel <robert@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 28825 for review
Message-ID:  <200304121604.h3CG4rng022133@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=28825

Change 28825 by robert@robert_spes on 2003/04/12 09:04:38

	 - Add `-mno-fp-regs' only for Alpha to the CFLAGS.
	 - Add the current directory (.CURDIR) to the include search path.
	 - Remove copy.c from the source files holding variable.
	   (Should be added for alpha only...)
	 - If the MACHINE_ARCH is "mips", define a preprocessor macro with
	   the same name as the value of the PLATFORM variable.
	 - If PLATFORM is defined, add a symbolic link from its source directory
	   to `platform' in the current directory (like the `machine' link).

Affected files ...

.. //depot/projects/mips/sys/boot/arc/lib/Makefile#2 edit

Differences ...

==== //depot/projects/mips/sys/boot/arc/lib/Makefile#2 (text+ko) ====

@@ -11,24 +11,36 @@
 CFLAGS+=	-DDEBUG
 
 # Pick up the bootstrap header for some interface items
-CFLAGS+=	-I${.CURDIR}/../../common -mno-fp-regs \
+CFLAGS+=	-I${.CURDIR}/../../common \
 		-I${.CURDIR}/../../.. -I${.CURDIR}/../include
+CFLAGS+= -I${.CURDIR}
 
 #CFLAGS+= -DDISK_DEBUG
 #CPPFLAGS+= -DNO_DISKLABEL
 #CPPFLAGS+= -DSAVE_MEMORY
 
-SRCS=	delay.c time.c abort.c setjmperr.c copy.c devicename.c module.c \
+SRCS=	delay.c time.c abort.c setjmperr.c devicename.c module.c \
 	arcconsole.c arcdisk.c elf_freebsd.c bootinfo.c
 
 .if ${MACHINE_ARCH} == "alpha"
+CFLAGS+=	-mno-fp-regs
 SRCS+=	rpb.c
 .endif
+.if ${MACHINE_ARCH} == "mips"
+CFLAGS+=	-D${PLATFORM}
+.endif
 
 CLEANFILES+= machine
 
+.ifdef PLATFORM
+CLEANFILES+= platform
+platform:
+	ln -sf ${.CURDIR}/../../../${MACHINE_ARCH}/${PLATFORM} platform
+machine: platform
+.else
 machine:
-	ln -sf ${.CURDIR}/../../../alpha/include machine
+.endif
+	ln -sf ${.CURDIR}/../../../${MACHINE_ARCH}/include machine
 
 .include <bsd.lib.mk>
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304121604.h3CG4rng022133>