Source-Changes-HG archive

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

[src/trunk]: src/sys/lib/libkern/arch/m68k When MACHINE_ARCH is m68000, compi...



details:   https://anonhg.NetBSD.org/src/rev/f99e2a55257c
branches:  trunk
changeset: 509955:f99e2a55257c
user:      fredette <fredette%NetBSD.org@localhost>
date:      Wed May 16 03:30:39 2001 +0000

description:
When MACHINE_ARCH is m68000, compile ffs.c and random.c
instead of ffs.s and random.s, and sneak the libgcc
integer support routines into the list of library objects.

diffstat:

 sys/lib/libkern/arch/m68k/Makefile.inc |  16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r 1615e3a94af2 -r f99e2a55257c sys/lib/libkern/arch/m68k/Makefile.inc
--- a/sys/lib/libkern/arch/m68k/Makefile.inc    Wed May 16 03:14:12 2001 +0000
+++ b/sys/lib/libkern/arch/m68k/Makefile.inc    Wed May 16 03:30:39 2001 +0000
@@ -1,12 +1,20 @@
-#      $NetBSD: Makefile.inc,v 1.20 2000/11/01 19:37:19 thorpej Exp $
+#      $NetBSD: Makefile.inc,v 1.21 2001/05/16 03:30:39 fredette Exp $
 
 SRCS+= __main.c __assert.c \
        imax.c imin.c lmax.c lmin.c max.c min.c ulmax.c ulmin.c \
        bswap16.S bswap32.S bswap64.S \
-       bcmp.S bzero.S ffs.S \
+       bcmp.S bzero.S \
        memchr.c memcmp.S memcpy.S memmove.S memset.S \
        strcat.S strchr.S strcmp.S strcasecmp.c \
        strcpy.S strlen.S strncmp.S strncasecmp.c strncpy.S strrchr.S \
        scanc.S skpc.S \
-       htonl.S htons.S ntohl.S ntohs.S \
-       random.S
+       htonl.S htons.S ntohl.S ntohs.S
+.if defined(MACHINE_ARCH) && (${MACHINE_ARCH} == "m68000")
+LIBGCC_OBJS=   _mulsi3.o _divsi3.o _udivsi3.o _modsi3.o _umodsi3.o
+${LIBGCC_OBJS}:
+       @${AR} xv `${CC} --print-libgcc-file-name` $@
+OBJS+= ${LIBGCC_OBJS}
+SRCS+= ffs.c random.c
+.else
+SRCS+= ffs.S random.S
+.endif



Home | Main Index | Thread Index | Old Index