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.
This commit is contained in:
fredette 2001-05-16 03:30:39 +00:00
parent 332aa50acb
commit 49fda862f9
1 changed files with 12 additions and 4 deletions

View File

@ -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