Home | History | Annotate | Line # | Download | only in string
Makefile.inc revision 1.32
      1   1.9  mycroft #	from: @(#)Makefile.inc	5.6 (Berkeley) 3/5/91
      2  1.32      cgd #	$Id: Makefile.inc,v 1.32 1994/12/22 10:15:00 cgd Exp $
      3   1.1      cgd 
      4   1.1      cgd # string sources
      5  1.15      cgd .PATH: ${.CURDIR}/arch/${MACHINE_ARCH}/string ${.CURDIR}/string
      6   1.1      cgd 
      7  1.27      cgd SRCS+=	bm.c memccpy.c strcasecmp.c strcoll.c strdup.c strerror.c \
      8  1.30      jtc 	strftime.c strmode.c strsignal.c strtok.c strxfrm.c \
      9  1.30      jtc 	__strerror.c __strsignal.c
     10   1.1      cgd 
     11  1.17   briggs .if   (${MACHINE_ARCH} == "m68k")
     12  1.19  mycroft SRCS+=	bcmp.S bcopy.S bzero.S ffs.S index.S memchr.c memcmp.S memset.S \
     13  1.15      cgd 	rindex.S strcat.c strcmp.S strcpy.S strcspn.c strlen.S \
     14  1.15      cgd 	strncat.c strncmp.S strncpy.S strpbrk.c strsep.c \
     15  1.19  mycroft 	strspn.c strstr.c swab.S
     16  1.24  mycroft SRCS+=	memcpy.S memmove.S strchr.S strrchr.S
     17  1.15      cgd .elif (${MACHINE_ARCH} == "i386")
     18  1.15      cgd SRCS+=	bcmp.S bcopy.S bzero.S ffs.S index.S memchr.S memcmp.S memset.S \
     19  1.15      cgd 	rindex.S strcat.S strcmp.S strcpy.S strcspn.c strlen.S \
     20  1.15      cgd 	strncat.c strncmp.S strncpy.c strpbrk.c strsep.c \
     21  1.15      cgd 	strspn.c strstr.c swab.S
     22  1.25  mycroft SRCS+=	memcpy.S memmove.S strchr.S strrchr.S
     23  1.16      cgd .elif (${MACHINE_ARCH} == "ns32k")
     24  1.10     phil SRCS+=	bcmp.c bcopy.c bzero.c ffs.c index.c memchr.c memcmp.c memset.c \
     25  1.10     phil 	rindex.c strcat.c strcmp.c strcpy.c strcspn.c strlen.c \
     26  1.10     phil 	strncat.c strncmp.c strncpy.c strpbrk.c strsep.c \
     27  1.11      jtc 	strspn.c strstr.c swab.c
     28  1.26     phil #SRCS+=	memmove.c strchr.c strrchr.c
     29  1.15      cgd .elif (${MACHINE_ARCH} == "tahoe")
     30  1.15      cgd SRCS+=	bcmp.S bcopy.S bzero.S ffs.S index.c memchr.c memcmp.S memset.c \
     31  1.15      cgd 	rindex.c strcat.S strcmp.S strcpy.S strcspn.c strlen.S \
     32  1.15      cgd 	strncat.S strncmp.S strncpy.S strpbrk.c strsep.c \
     33  1.11      jtc 	strspn.c strstr.c swab.c
     34  1.15      cgd SRCS+=	memmove.S
     35  1.15      cgd .elif (${MACHINE_ARCH} == "vax")
     36  1.15      cgd SRCS+=	bcmp.S bcopy.S bzero.S ffs.S index.c memchr.S memcmp.S memset.S \
     37  1.15      cgd 	rindex.S strcat.S strcmp.S strcpy.S strcspn.S strlen.S \
     38  1.15      cgd 	strncat.S strncmp.S strncpy.S strpbrk.S strsep.S \
     39  1.15      cgd 	strspn.S strstr.S swab.c
     40  1.15      cgd SRCS+=	memmove.S strchr.S strrchr.S
     41  1.23       pk .elif (${MACHINE_ARCH} == "sparc")
     42  1.23       pk SRCS+=	bcmp.c bcopy.c bzero.S ffs.S index.c memchr.c memcmp.c memset.c \
     43  1.23       pk 	rindex.c strcat.c strcmp.c strcpy.c strcspn.c strlen.S \
     44  1.31     dean 	strncat.c strncmp.c strncpy.c strpbrk.c strsep.c \
     45  1.31     dean 	strspn.c strstr.c swab.c
     46  1.31     dean .elif (${MACHINE_ARCH} == "mips")
     47  1.31     dean SRCS+=	bcmp.S bcopy.S bzero.S  ffs.S index.S memchr.c memcmp.c memset.c \
     48  1.31     dean 	rindex.S strcat.c strcmp.S strcpy.c strcspn.c strlen.S \
     49  1.23       pk 	strncat.c strncmp.c strncpy.c strpbrk.c strsep.c \
     50  1.23       pk 	strspn.c strstr.c swab.c
     51   1.1      cgd .endif
     52   1.1      cgd 
     53   1.1      cgd # if no machine specific memmove(3), build one out of bcopy(3).
     54  1.15      cgd .if empty(SRCS:Mmemmove.S)
     55   1.1      cgd OBJS+=	memmove.o
     56   1.1      cgd memmove.o: bcopy.c
     57  1.28  mycroft 	${CC} -DMEMMOVE ${CFLAGS} ${CPPFLAGS} -c ${.ALLSRC} -o ${.TARGET}
     58   1.1      cgd 	@${LD} -x -r ${.TARGET}
     59   1.1      cgd 	@mv a.out ${.TARGET}
     60   1.1      cgd 
     61   1.1      cgd memmove.po: bcopy.c
     62  1.28  mycroft 	${CC} -DMEMMOVE ${CFLAGS} ${CPPFLAGS} -c -p ${.ALLSRC} -o ${.TARGET}
     63   1.1      cgd 	@${LD} -X -r ${.TARGET}
     64   1.1      cgd 	@mv a.out ${.TARGET}
     65  1.18      cgd 
     66  1.18      cgd memmove.so: bcopy.c
     67  1.28  mycroft 	${CC} ${PICFLAG} -DPIC -DMEMMOVE ${CFLAGS} ${CPPFLAGS} -c ${.ALLSRC} \
     68  1.18      cgd 		-o ${.TARGET}
     69   1.1      cgd .endif
     70   1.1      cgd 
     71   1.1      cgd # if no machine specific memcpy(3), build one out of bcopy(3).
     72   1.6  mycroft # if there is a machine specific memmove(3), we'll assume it aliases
     73   1.6  mycroft # memcpy(3).
     74  1.15      cgd .if empty(SRCS:Mmemcpy.S)
     75  1.15      cgd .if empty(SRCS:Mmemmove.S)
     76   1.1      cgd OBJS+=	memcpy.o
     77   1.1      cgd memcpy.o: bcopy.c
     78  1.28  mycroft 	${CC} -DMEMCOPY ${CFLAGS} ${CPPFLAGS} -c ${.ALLSRC} -o ${.TARGET}
     79   1.1      cgd 	@${LD} -x -r ${.TARGET}
     80   1.1      cgd 	@mv a.out ${.TARGET}
     81   1.1      cgd 
     82   1.1      cgd memcpy.po: bcopy.c
     83  1.28  mycroft 	${CC} -DMEMCOPY ${CFLAGS} ${CPPFLAGS} -c -p ${.ALLSRC} -o ${.TARGET}
     84   1.1      cgd 	@${LD} -X -r ${.TARGET}
     85   1.1      cgd 	@mv a.out ${.TARGET}
     86  1.18      cgd 
     87  1.18      cgd memcpy.so: bcopy.c
     88  1.28  mycroft 	${CC} ${PICFLAG} -DPIC -DMEMCOPY ${CFLAGS} ${CPPFLAGS} -c ${.ALLSRC} \
     89  1.18      cgd 		-o ${.TARGET}
     90   1.6  mycroft .endif
     91   1.1      cgd .endif
     92   1.1      cgd 
     93   1.1      cgd # if no machine specific strchr(3), build one out of index(3).
     94  1.15      cgd .if empty(SRCS:Mstrchr.S)
     95   1.1      cgd OBJS+=	strchr.o
     96   1.1      cgd strchr.o: index.c
     97  1.28  mycroft 	${CC} -DSTRCHR ${CFLAGS} ${CPPFLAGS} -c ${.ALLSRC} -o ${.TARGET}
     98   1.1      cgd 	@${LD} -x -r ${.TARGET}
     99   1.1      cgd 	@mv a.out ${.TARGET}
    100   1.1      cgd 
    101   1.1      cgd strchr.po: index.c
    102  1.28  mycroft 	${CC} -DSTRCHR ${CFLAGS} ${CPPFLAGS} -c -p ${.ALLSRC} -o ${.TARGET}
    103   1.1      cgd 	@${LD} -X -r ${.TARGET}
    104   1.1      cgd 	@mv a.out ${.TARGET}
    105  1.18      cgd 
    106  1.18      cgd strchr.so: index.c
    107  1.28  mycroft 	${CC} ${PICFLAG} -DPIC -DSTRCHR ${CFLAGS} ${CPPFLAGS} -c ${.ALLSRC} \
    108  1.18      cgd 	    -o ${.TARGET}
    109   1.1      cgd .endif
    110   1.1      cgd 
    111   1.1      cgd # if no machine specific strrchr(3), build one out of rindex(3).
    112  1.15      cgd .if empty(SRCS:Mstrrchr.S)
    113   1.1      cgd OBJS+=	strrchr.o
    114   1.1      cgd strrchr.o: rindex.c
    115  1.28  mycroft 	${CC} -DSTRRCHR ${CFLAGS} ${CPPFLAGS} -c ${.ALLSRC} -o ${.TARGET}
    116   1.1      cgd 	@${LD} -x -r ${.TARGET}
    117   1.1      cgd 	@mv a.out ${.TARGET}
    118   1.1      cgd 
    119   1.1      cgd strrchr.po: rindex.c
    120  1.28  mycroft 	${CC} -DSTRRCHR ${CFLAGS} ${CPPFLAGS} -c -p ${.ALLSRC} -o ${.TARGET}
    121   1.1      cgd 	@${LD} -X -r ${.TARGET}
    122   1.1      cgd 	@mv a.out ${.TARGET}
    123  1.18      cgd 
    124  1.18      cgd strrchr.so: rindex.c
    125  1.28  mycroft 	${CC} ${PICFLAG} -DPIC -DSTRRCHR ${CFLAGS} ${CPPFLAGS} -c ${.ALLSRC} \
    126  1.18      cgd 	    -o ${.TARGET}
    127   1.1      cgd .endif
    128   1.1      cgd 
    129  1.32      cgd MAN+=	bm.3 bcmp.3 bcopy.3 bstring.3 bzero.3 ffs.3 index.3 memccpy.3 memchr.3 \
    130  1.32      cgd 	memcmp.3 memcpy.3 memmove.3 memset.3 rindex.3 strcasecmp.3 strcat.3 \
    131  1.32      cgd 	strchr.3 strcmp.3 strcoll.3 strcpy.3 strcspn.3 strerror.3 strftime.3 \
    132  1.32      cgd 	string.3 strlen.3 strmode.3 strdup.3 strpbrk.3 strrchr.3 strsep.3 \
    133  1.32      cgd 	strsignal.3 strspn.3 strstr.3 strtok.3 strxfrm.3 swab.3
    134   1.1      cgd 
    135  1.27      cgd MLINKS+=bm.3 bm_comp.3 bm.3 bm_exec.3 bm.3 bm_free.3
    136   1.1      cgd MLINKS+=strcasecmp.3 strncasecmp.3
    137   1.1      cgd MLINKS+=strcat.3 strncat.3
    138   1.1      cgd MLINKS+=strcmp.3 strncmp.3
    139   1.1      cgd MLINKS+=strcpy.3 strncpy.3
    140