Browse Source

Add support for building lint(1) library

OPENBSD_2_0
tholo 29 years ago
parent
commit
ac83ba9bc9
2 changed files with 26 additions and 2 deletions
  1. +5
    -1
      src/lib/libc/stdlib/Makefile.inc
  2. +21
    -1
      src/lib/libc/string/Makefile.inc

+ 5
- 1
src/lib/libc/stdlib/Makefile.inc View File

@ -1,5 +1,5 @@
# from: @(#)Makefile.inc 5.6 (Berkeley) 6/4/91 # from: @(#)Makefile.inc 5.6 (Berkeley) 6/4/91
# $Id: Makefile.inc,v 1.1.1.1 1995/10/18 08:42:16 deraadt Exp $
# $Id: Makefile.inc,v 1.2 1996/03/25 23:31:43 tholo Exp $
# stdlib sources # stdlib sources
.PATH: ${.CURDIR}/arch/${MACHINE_ARCH}/stdlib ${.CURDIR}/stdlib .PATH: ${.CURDIR}/arch/${MACHINE_ARCH}/stdlib ${.CURDIR}/stdlib
@ -13,12 +13,16 @@ SRCS+= a64l.c abort.c atexit.c atoi.c atof.c atol.c bsearch.c calloc.c \
.if (${MACHINE_ARCH} == "m68k") .if (${MACHINE_ARCH} == "m68k")
SRCS+= abs.S div.c labs.c ldiv.c SRCS+= abs.S div.c labs.c ldiv.c
LSRCS+= abs.c
.elif (${MACHINE_ARCH} == "i386") .elif (${MACHINE_ARCH} == "i386")
SRCS+= abs.S div.S labs.S ldiv.S SRCS+= abs.S div.S labs.S ldiv.S
LSRCS+= abs.c div.c labs.c ldiv.c
.elif (${MACHINE_ARCH} == "ns32k") .elif (${MACHINE_ARCH} == "ns32k")
SRCS+= abs.S div.c labs.c ldiv.c SRCS+= abs.S div.c labs.c ldiv.c
LSRCS+= abs.c
.elif (${MACHINE_ARCH} == "tahoe") .elif (${MACHINE_ARCH} == "tahoe")
SRCS+= abs.S div.c labs.c ldiv.c SRCS+= abs.S div.c labs.c ldiv.c
LSRCS+= abs.c
.elif (${MACHINE_ARCH} == "vax") .elif (${MACHINE_ARCH} == "vax")
SRCS+= abs.c div.c labs.c ldiv.c SRCS+= abs.c div.c labs.c ldiv.c
.elif (${MACHINE_ARCH} == "alpha") .elif (${MACHINE_ARCH} == "alpha")


+ 21
- 1
src/lib/libc/string/Makefile.inc View File

@ -1,5 +1,5 @@
# from: @(#)Makefile.inc 5.6 (Berkeley) 3/5/91 # from: @(#)Makefile.inc 5.6 (Berkeley) 3/5/91
# $Id: Makefile.inc,v 1.1.1.1 1995/10/18 08:42:20 deraadt Exp $
# $Id: Makefile.inc,v 1.2 1996/03/25 23:31:46 tholo Exp $
# string sources # string sources
.PATH: ${.CURDIR}/arch/${MACHINE_ARCH}/string ${.CURDIR}/string .PATH: ${.CURDIR}/arch/${MACHINE_ARCH}/string ${.CURDIR}/string
@ -95,6 +95,26 @@ strrchr.so: rindex.c
-o ${.TARGET} -o ${.TARGET}
.endif .endif
# build .ln files for memmove, memcpy, strchr and strrchr always from
# bcopy, index, and rindex
LOBJS+= memmove.ln memcpy.ln strchr.ln strrchr.ln
memmove.ln: bcopy.c
lint ${LINTFLAGS} -DMEMMOVE ${CFLAGS:M-[IDU]*} -i -o ${.TARGET} \
${.CURDIR}/string/bcopy.c
memcpy.ln: bcopy.c
lint ${LINTFLAGS} -DMEMCOPY ${CFLAGS:M-[IDU]*} -i -o ${.TARGET} \
${.CURDIR}/string/bcopy.c
strchr.ln: index.c
lint ${LINTFLAGS} -DSTRCHR ${CFLAGS:M-[IDU]*} -i -o ${.TARGET} \
${.CURDIR}/string/index.c
strrchr.ln: rindex.c
lint ${LINTFLAGS} -DSTRRCHR ${CFLAGS:M-[IDU]*} -i -o ${.TARGET} \
${.CURDIR}/string/rindex.c
MAN+= bm.3 bcmp.3 bcopy.3 bstring.3 bzero.3 ffs.3 index.3 memccpy.3 memchr.3 \ MAN+= bm.3 bcmp.3 bcopy.3 bstring.3 bzero.3 ffs.3 index.3 memccpy.3 memchr.3 \
memcmp.3 memcpy.3 memmove.3 memset.3 rindex.3 strcasecmp.3 strcat.3 \ memcmp.3 memcpy.3 memmove.3 memset.3 rindex.3 strcasecmp.3 strcat.3 \
strchr.3 strcmp.3 strcoll.3 strcpy.3 strcspn.3 strerror.3 strftime.3 \ strchr.3 strcmp.3 strcoll.3 strcpy.3 strcspn.3 strerror.3 strftime.3 \


Loading…
Cancel
Save