Home | History | Annotate | Line # | Download | only in string
Makefile.inc revision 1.1
      1  1.1  cgd #	@(#)Makefile.inc	5.6 (Berkeley) 3/5/91
      2  1.1  cgd 
      3  1.1  cgd # string sources
      4  1.1  cgd .PATH: ${.CURDIR}/${MACHINE}/string ${.CURDIR}/string
      5  1.1  cgd 
      6  1.1  cgd SRCS+=	memccpy.c strcasecmp.c strcoll.c strdup.c \
      7  1.1  cgd 	strftime.c strmode.c strtok.c strxfrm.c swab.c
      8  1.1  cgd 
      9  1.1  cgd .if   (${MACHINE} == "hp300")
     10  1.1  cgd SRCS+=	bcmp.s bcopy.s bzero.s ffs.s index.s memchr.c memcmp.c memset.c \
     11  1.1  cgd 	rindex.s strcat.c strcmp.s strcpy.s strcspn.c strlen.s \
     12  1.1  cgd 	strncat.c strncmp.s strncpy.s strpbrk.c strsep.c \
     13  1.1  cgd 	strspn.c strstr.c
     14  1.1  cgd .elif (${MACHINE} == "i386")
     15  1.1  cgd SRCS+=	bcmp.c bcopy.c bzero.s ffs.c index.c memchr.c memcmp.c memset.c \
     16  1.1  cgd 	rindex.c strcat.c strcmp.c strcpy.c strcspn.c strlen.c \
     17  1.1  cgd 	strncat.c strncmp.c strncpy.c strpbrk.c strsep.c \
     18  1.1  cgd 	strspn.c strstr.c
     19  1.1  cgd .elif (${MACHINE} == "tahoe")
     20  1.1  cgd SRCS+=	bcmp.s bcopy.s bzero.s ffs.s index.c memchr.c memcmp.s memset.c \
     21  1.1  cgd 	rindex.c strcat.s strcmp.s strcpy.s strcspn.c strlen.s \
     22  1.1  cgd 	strncat.s strncmp.s strncpy.s strpbrk.c strsep.c \
     23  1.1  cgd 	strspn.c strstr.c
     24  1.1  cgd SRCS+=	memmove.s
     25  1.1  cgd .elif (${MACHINE} == "vax")
     26  1.1  cgd SRCS+=	bcmp.s bcopy.s bzero.s ffs.s index.c memchr.s memcmp.s memset.s \
     27  1.1  cgd 	rindex.s strcat.s strcmp.s strcpy.s strcspn.s strlen.s \
     28  1.1  cgd 	strncat.s strncmp.s strncpy.s strpbrk.s strsep.s \
     29  1.1  cgd 	strspn.s strstr.s
     30  1.1  cgd SRCS+=	memmove.s strchr.s strrchr.s
     31  1.1  cgd .endif
     32  1.1  cgd 
     33  1.1  cgd # if no machine specific memmove(3), build one out of bcopy(3).
     34  1.1  cgd .if empty(SRCS:Mmemmove.s)
     35  1.1  cgd OBJS+=	memmove.o
     36  1.1  cgd memmove.o: bcopy.c
     37  1.1  cgd 	${CC} -DMEMMOVE ${CFLAGS} -c ${.ALLSRC} -o ${.TARGET}
     38  1.1  cgd 	@${LD} -x -r ${.TARGET}
     39  1.1  cgd 	@mv a.out ${.TARGET}
     40  1.1  cgd 
     41  1.1  cgd memmove.po: bcopy.c
     42  1.1  cgd 	${CC} -DMEMMOVE ${CFLAGS} -c -p ${.ALLSRC} -o ${.TARGET}
     43  1.1  cgd 	@${LD} -X -r ${.TARGET}
     44  1.1  cgd 	@mv a.out ${.TARGET}
     45  1.1  cgd .endif
     46  1.1  cgd 
     47  1.1  cgd # if no machine specific memcpy(3), build one out of bcopy(3).
     48  1.1  cgd .if empty(SRCS:Mmemcpy.s)
     49  1.1  cgd OBJS+=	memcpy.o
     50  1.1  cgd memcpy.o: bcopy.c
     51  1.1  cgd 	${CC} -DMEMCOPY ${CFLAGS} -c ${.ALLSRC} -o ${.TARGET}
     52  1.1  cgd 	@${LD} -x -r ${.TARGET}
     53  1.1  cgd 	@mv a.out ${.TARGET}
     54  1.1  cgd 
     55  1.1  cgd memcpy.po: bcopy.c
     56  1.1  cgd 	${CC} -DMEMCOPY ${CFLAGS} -c -p ${.ALLSRC} -o ${.TARGET}
     57  1.1  cgd 	@${LD} -X -r ${.TARGET}
     58  1.1  cgd 	@mv a.out ${.TARGET}
     59  1.1  cgd .endif
     60  1.1  cgd 
     61  1.1  cgd # if no machine specific strchr(3), build one out of index(3).
     62  1.1  cgd .if empty(SRCS:Mstrchr.s)
     63  1.1  cgd OBJS+=	strchr.o
     64  1.1  cgd strchr.o: index.c
     65  1.1  cgd 	${CC} -DSTRCHR ${CFLAGS} -c ${.ALLSRC} -o ${.TARGET}
     66  1.1  cgd 	@${LD} -x -r ${.TARGET}
     67  1.1  cgd 	@mv a.out ${.TARGET}
     68  1.1  cgd 
     69  1.1  cgd strchr.po: index.c
     70  1.1  cgd 	${CC} -DSTRCHR ${CFLAGS} -c -p ${.ALLSRC} -o ${.TARGET}
     71  1.1  cgd 	@${LD} -X -r ${.TARGET}
     72  1.1  cgd 	@mv a.out ${.TARGET}
     73  1.1  cgd .endif
     74  1.1  cgd 
     75  1.1  cgd # if no machine specific strrchr(3), build one out of rindex(3).
     76  1.1  cgd .if empty(SRCS:Mstrrchr.s)
     77  1.1  cgd OBJS+=	strrchr.o
     78  1.1  cgd strrchr.o: rindex.c
     79  1.1  cgd 	${CC} -DSTRRCHR ${CFLAGS} -c ${.ALLSRC} -o ${.TARGET}
     80  1.1  cgd 	@${LD} -x -r ${.TARGET}
     81  1.1  cgd 	@mv a.out ${.TARGET}
     82  1.1  cgd 
     83  1.1  cgd strrchr.po: rindex.c
     84  1.1  cgd 	${CC} -DSTRRCHR ${CFLAGS} -c -p ${.ALLSRC} -o ${.TARGET}
     85  1.1  cgd 	@${LD} -X -r ${.TARGET}
     86  1.1  cgd 	@mv a.out ${.TARGET}
     87  1.1  cgd .endif
     88  1.1  cgd 
     89  1.1  cgd MAN3+=	bcmp.0 bcopy.0 bstring.0 bzero.0 ffs.0 index.0 memccpy.0 memchr.0 \
     90  1.1  cgd 	memcmp.0 memcpy.0 memmove.0 memset.0 rindex.0 strcasecmp.0 strcat.0 \
     91  1.1  cgd 	strchr.0 strcmp.0 strcoll.0 strcpy.0 strcspn.0 strftime.0 string.0 \
     92  1.1  cgd 	strlen.0 strmode.0 strdup.0 strpbrk.0 strrchr.0 strsep.0 strspn.0 \
     93  1.1  cgd 	strstr.0 strtok.0 strxfrm.0 swab.0
     94  1.1  cgd 
     95  1.1  cgd MLINKS+=strcasecmp.3 strncasecmp.3
     96  1.1  cgd MLINKS+=strcat.3 strncat.3
     97  1.1  cgd MLINKS+=strcmp.3 strncmp.3
     98  1.1  cgd MLINKS+=strcpy.3 strncpy.3
     99