Home | History | Annotate | Line # | Download | only in string
Makefile.inc revision 1.36
      1   1.9   mycroft #	from: @(#)Makefile.inc	5.6 (Berkeley) 3/5/91
      2  1.36  matthias #	$Id: Makefile.inc,v 1.36 1996/09/24 09:14:18 matthias 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.36  matthias SRCS+=	bm.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.34   mycroft # machine-dependent net sources
     12  1.34   mycroft # m-d Makefile.inc must include sources for:
     13  1.34   mycroft #	bcmp() bcopy() bzero() ffs() index() memchr() memcmp() memset()
     14  1.34   mycroft #	rindex() strcat() strcmp() strcpy() strcspn() strlen()
     15  1.34   mycroft #	strncat() strncmp() strncpy() strpbrk() strsep()
     16  1.34   mycroft #	strspn() strstr() swav()
     17  1.35   mycroft # m-d Makefile.inc may include sources for:
     18  1.34   mycroft #	memcpy() memmove() strchr() strrchr()
     19  1.34   mycroft 
     20  1.34   mycroft .include "${.CURDIR}/arch/${MACHINE_ARCH}/string/Makefile.inc"
     21  1.36  matthias 
     22  1.36  matthias # if no machine specific memccpy(3), use the machine independent version.
     23  1.36  matthias .if empty(SRCS:Mmemccpy.S)
     24  1.36  matthias SRCS+=	memccpy.c
     25  1.36  matthias .endif
     26   1.1       cgd 
     27   1.1       cgd # if no machine specific memmove(3), build one out of bcopy(3).
     28  1.15       cgd .if empty(SRCS:Mmemmove.S)
     29   1.1       cgd OBJS+=	memmove.o
     30   1.1       cgd memmove.o: bcopy.c
     31  1.28   mycroft 	${CC} -DMEMMOVE ${CFLAGS} ${CPPFLAGS} -c ${.ALLSRC} -o ${.TARGET}
     32   1.1       cgd 	@${LD} -x -r ${.TARGET}
     33   1.1       cgd 	@mv a.out ${.TARGET}
     34   1.1       cgd 
     35   1.1       cgd memmove.po: bcopy.c
     36  1.28   mycroft 	${CC} -DMEMMOVE ${CFLAGS} ${CPPFLAGS} -c -p ${.ALLSRC} -o ${.TARGET}
     37   1.1       cgd 	@${LD} -X -r ${.TARGET}
     38   1.1       cgd 	@mv a.out ${.TARGET}
     39  1.18       cgd 
     40  1.18       cgd memmove.so: bcopy.c
     41  1.28   mycroft 	${CC} ${PICFLAG} -DPIC -DMEMMOVE ${CFLAGS} ${CPPFLAGS} -c ${.ALLSRC} \
     42  1.18       cgd 		-o ${.TARGET}
     43   1.1       cgd .endif
     44   1.1       cgd 
     45   1.1       cgd # if no machine specific memcpy(3), build one out of bcopy(3).
     46   1.6   mycroft # if there is a machine specific memmove(3), we'll assume it aliases
     47   1.6   mycroft # memcpy(3).
     48  1.15       cgd .if empty(SRCS:Mmemcpy.S)
     49  1.15       cgd .if empty(SRCS:Mmemmove.S)
     50   1.1       cgd OBJS+=	memcpy.o
     51   1.1       cgd memcpy.o: bcopy.c
     52  1.28   mycroft 	${CC} -DMEMCOPY ${CFLAGS} ${CPPFLAGS} -c ${.ALLSRC} -o ${.TARGET}
     53   1.1       cgd 	@${LD} -x -r ${.TARGET}
     54   1.1       cgd 	@mv a.out ${.TARGET}
     55   1.1       cgd 
     56   1.1       cgd memcpy.po: bcopy.c
     57  1.28   mycroft 	${CC} -DMEMCOPY ${CFLAGS} ${CPPFLAGS} -c -p ${.ALLSRC} -o ${.TARGET}
     58   1.1       cgd 	@${LD} -X -r ${.TARGET}
     59   1.1       cgd 	@mv a.out ${.TARGET}
     60  1.18       cgd 
     61  1.18       cgd memcpy.so: bcopy.c
     62  1.28   mycroft 	${CC} ${PICFLAG} -DPIC -DMEMCOPY ${CFLAGS} ${CPPFLAGS} -c ${.ALLSRC} \
     63  1.18       cgd 		-o ${.TARGET}
     64   1.6   mycroft .endif
     65   1.1       cgd .endif
     66   1.1       cgd 
     67   1.1       cgd # if no machine specific strchr(3), build one out of index(3).
     68  1.15       cgd .if empty(SRCS:Mstrchr.S)
     69   1.1       cgd OBJS+=	strchr.o
     70   1.1       cgd strchr.o: index.c
     71  1.28   mycroft 	${CC} -DSTRCHR ${CFLAGS} ${CPPFLAGS} -c ${.ALLSRC} -o ${.TARGET}
     72   1.1       cgd 	@${LD} -x -r ${.TARGET}
     73   1.1       cgd 	@mv a.out ${.TARGET}
     74   1.1       cgd 
     75   1.1       cgd strchr.po: index.c
     76  1.28   mycroft 	${CC} -DSTRCHR ${CFLAGS} ${CPPFLAGS} -c -p ${.ALLSRC} -o ${.TARGET}
     77   1.1       cgd 	@${LD} -X -r ${.TARGET}
     78   1.1       cgd 	@mv a.out ${.TARGET}
     79  1.18       cgd 
     80  1.18       cgd strchr.so: index.c
     81  1.28   mycroft 	${CC} ${PICFLAG} -DPIC -DSTRCHR ${CFLAGS} ${CPPFLAGS} -c ${.ALLSRC} \
     82  1.18       cgd 	    -o ${.TARGET}
     83   1.1       cgd .endif
     84   1.1       cgd 
     85   1.1       cgd # if no machine specific strrchr(3), build one out of rindex(3).
     86  1.15       cgd .if empty(SRCS:Mstrrchr.S)
     87   1.1       cgd OBJS+=	strrchr.o
     88   1.1       cgd strrchr.o: rindex.c
     89  1.28   mycroft 	${CC} -DSTRRCHR ${CFLAGS} ${CPPFLAGS} -c ${.ALLSRC} -o ${.TARGET}
     90   1.1       cgd 	@${LD} -x -r ${.TARGET}
     91   1.1       cgd 	@mv a.out ${.TARGET}
     92   1.1       cgd 
     93   1.1       cgd strrchr.po: rindex.c
     94  1.28   mycroft 	${CC} -DSTRRCHR ${CFLAGS} ${CPPFLAGS} -c -p ${.ALLSRC} -o ${.TARGET}
     95   1.1       cgd 	@${LD} -X -r ${.TARGET}
     96   1.1       cgd 	@mv a.out ${.TARGET}
     97  1.18       cgd 
     98  1.18       cgd strrchr.so: rindex.c
     99  1.28   mycroft 	${CC} ${PICFLAG} -DPIC -DSTRRCHR ${CFLAGS} ${CPPFLAGS} -c ${.ALLSRC} \
    100  1.18       cgd 	    -o ${.TARGET}
    101   1.1       cgd .endif
    102   1.1       cgd 
    103  1.32       cgd MAN+=	bm.3 bcmp.3 bcopy.3 bstring.3 bzero.3 ffs.3 index.3 memccpy.3 memchr.3 \
    104  1.32       cgd 	memcmp.3 memcpy.3 memmove.3 memset.3 rindex.3 strcasecmp.3 strcat.3 \
    105  1.32       cgd 	strchr.3 strcmp.3 strcoll.3 strcpy.3 strcspn.3 strerror.3 strftime.3 \
    106  1.32       cgd 	string.3 strlen.3 strmode.3 strdup.3 strpbrk.3 strrchr.3 strsep.3 \
    107  1.32       cgd 	strsignal.3 strspn.3 strstr.3 strtok.3 strxfrm.3 swab.3
    108   1.1       cgd 
    109  1.27       cgd MLINKS+=bm.3 bm_comp.3 bm.3 bm_exec.3 bm.3 bm_free.3
    110   1.1       cgd MLINKS+=strcasecmp.3 strncasecmp.3
    111   1.1       cgd MLINKS+=strcat.3 strncat.3
    112   1.1       cgd MLINKS+=strcmp.3 strncmp.3
    113   1.1       cgd MLINKS+=strcpy.3 strncpy.3
    114