PERFORCE change 28821 for review
Robert Drehmel
robert at FreeBSD.org
Sat Apr 12 08:43:27 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=28821
Change 28821 by robert at robert_spes on 2003/04/12 08:42:57
Compile this for TARGET_ARCH "mips". Even with -Werror ;-).
Affected files ...
.. //depot/projects/mips/lib/libstand/Makefile#4 edit
Differences ...
==== //depot/projects/mips/lib/libstand/Makefile#4 (text+ko) ====
@@ -25,6 +25,11 @@
CFLAGS+= -msoft-float
.endif
+# XXX mips anything special needed?
+.if ${MACHINE_ARCH} == "mips"
+CFLAGS+= -Werror
+.endif
+
# standalone components and stuff we have modified locally
SRCS+= zutil.h __main.c assert.c bcd.c bswap.c environment.c getopt.c gets.c \
globals.c pager.c printf.c strdup.c strerror.c strtol.c random.c \
@@ -35,12 +40,14 @@
# byte order functions from libc
.PATH: ${.CURDIR}/../libc/${MACHINE_ARCH}/net
+.if ${MACHINE_ARCH} != "mips"
SRCS+= htons.S ntohs.S htonl.S ntohl.S
+.endif
# string functions from libc
.PATH: ${.CURDIR}/../libc/string
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "powerpc" || \
- ${MACHINE_ARCH} == "sparc64"
+ ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "mips"
SRCS+= bcmp.c bcopy.c bzero.c ffs.c index.c memccpy.c memchr.c memcmp.c \
memcpy.c memmove.c memset.c qdivrem.c rindex.c strcat.c strchr.c \
strcmp.c strcpy.c strcspn.c strlen.c strncat.c strncmp.c strncpy.c \
@@ -108,7 +115,9 @@
# _setjmp/_longjmp
.PATH: ${.CURDIR}/${MACHINE_ARCH}
+.if ${MACHINE_ARCH} != "mips"
SRCS+= _setjmp.S
+.endif
# decompression functionality from libbz2
.PATH: ${.CURDIR}/../../contrib/bzip2
More information about the p4-projects
mailing list