Subject: more generic lib/libc/string/Makefile.inc
To: None <tech-ports@NetBSD.ORG>
From: Andrew Cagney <cagney@highland.com.au>
List: tech-ports
Date: 02/20/1995 14:54:52
Hello,

Below is a patch to (a not so recent copy of):

	lib/libc/string/Makefile.inc

so that, when the target architecture is unknown, it will default to
building the C version of each of the string routines.

				Andrew


(Beware of the trashed id's)

*** lib/libc/string/SRC/Makefile.inc	Tue Nov 22 08:43:52 1994
--- lib/libc/string/Makefile.inc	Sun Feb 19 20:27:38 1995
***************
*** 1,5 ****
  #	from: @(#)Makefile.inc	5.6 (Berkeley) 3/5/91
! #	$Id: Makefile.inc,v 1.31 1994/11/14 23:48:22 dean Exp $
  
  # string sources
  .PATH: ${.CURDIR}/arch/${MACHINE_ARCH}/string ${.CURDIR}/string
--- 1,5 ----
  #	from: @(#)Makefile.inc	5.6 (Berkeley) 3/5/91
! #	$Id: Makefile.inc,v 1.1 1995/02/19 09:26:38 cagney Exp cagney $
  
  # string sources
  .PATH: ${.CURDIR}/arch/${MACHINE_ARCH}/string ${.CURDIR}/string
***************
*** 46,51 ****
--- 46,56 ----
  .elif (${MACHINE_ARCH} == "mips")
  SRCS+=	bcmp.S bcopy.S bzero.S  ffs.S index.S memchr.c memcmp.c memset.c \
  	rindex.S strcat.c strcmp.S strcpy.c strcspn.c strlen.S \
+ 	strncat.c strncmp.c strncpy.c strpbrk.c strsep.c \
+ 	strspn.c strstr.c swab.c
+ .else
+ SRCS+=	bcmp.c bcopy.c bzero.c  ffs.c index.c memchr.c memcmp.c memset.c \
+ 	rindex.c strcat.c strcmp.c strcpy.c strcspn.c strlen.c \
  	strncat.c strncmp.c strncpy.c strpbrk.c strsep.c \
  	strspn.c strstr.c swab.c
  .endif