Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/lib/libsa If we're on mips, don't build exec.c or loadfi...
details: https://anonhg.NetBSD.org/src/rev/2fa6febef087
branches: trunk
changeset: 746860:2fa6febef087
user: he <he%NetBSD.org@localhost>
date: Fri Aug 21 21:12:02 2009 +0000
description:
If we're on mips, don't build exec.c or loadfile_aout.c, since they
both deal with a.out format executables.
diffstat:
sys/lib/libsa/Makefile | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diffs (40 lines):
diff -r 9de9f468824b -r 2fa6febef087 sys/lib/libsa/Makefile
--- a/sys/lib/libsa/Makefile Fri Aug 21 20:49:50 2009 +0000
+++ b/sys/lib/libsa/Makefile Fri Aug 21 21:12:02 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.68 2009/03/20 11:31:30 tsutsui Exp $
+# $NetBSD: Makefile,v 1.69 2009/08/21 21:12:02 he Exp $
LIB= sa
NOPIC= # defined
@@ -18,14 +18,20 @@
.-include "${SA_EXTRADIR}/Makefile.inc"
.endif
+.include <bsd.own.mk>
+
.PATH.c: ${SADIR} ${.PARSEDIR}/../../../common/lib/libc/string
# stand routines
-SRCS+= alloc.c errno.c exit.c exec.c files.c \
+SRCS+= alloc.c errno.c exit.c files.c \
getfile.c gets.c globals.c \
panic.c printf.c qsort.c snprintf.c sprintf.c strerror.c \
subr_prf.c twiddle.c vsprintf.c checkpasswd.c
+.if (${MACHINE_CPU} != "mips")
+SRCS+= exec.c loadfile_aout.c
+.endif
+
# string routines
SRCS+= memcmp.c memcpy.c memmove.c memset.c strchr.c
SRCS+= bcopy.c bzero.c # Remove me eventually.
@@ -39,7 +45,7 @@
.endif
.if (${SA_USE_LOADFILE} == "yes")
-SRCS+= loadfile.c loadfile_aout.c loadfile_ecoff.c loadfile_elf32.c \
+SRCS+= loadfile.c loadfile_ecoff.c loadfile_elf32.c \
loadfile_elf64.c
.endif
Home |
Main Index |
Thread Index |
Old Index