PERFORCE change 28825 for review
Robert Drehmel
robert at FreeBSD.org
Sat Apr 12 09:04:58 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=28825
Change 28825 by robert at 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>
More information about the p4-projects
mailing list