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