1999-08-28 00:22:10 +00:00
|
|
|
# $FreeBSD$
|
1997-05-03 03:50:06 +00:00
|
|
|
#
|
|
|
|
# This file contains make rules that are shared by libc and libc_r.
|
|
|
|
#
|
1998-03-09 06:21:41 +00:00
|
|
|
# Define (empty) variables so that make doesn't give substitution
|
|
|
|
# errors if the included makefiles don't change these:
|
|
|
|
MDSRCS=
|
|
|
|
MISRCS=
|
|
|
|
MDASM=
|
|
|
|
MIASM=
|
|
|
|
NOASM=
|
|
|
|
|
|
|
|
#
|
|
|
|
# If there is a machine dependent makefile, use it:
|
|
|
|
#
|
|
|
|
.if exists(${.CURDIR}/../libc/${MACHINE_ARCH}/Makefile.inc)
|
|
|
|
.include "${.CURDIR}/../libc/${MACHINE_ARCH}/Makefile.inc"
|
|
|
|
.endif
|
|
|
|
|
1997-05-03 03:50:06 +00:00
|
|
|
.include "${.CURDIR}/../libc/db/Makefile.inc"
|
|
|
|
.include "${.CURDIR}/../libc/compat-43/Makefile.inc"
|
|
|
|
.include "${.CURDIR}/../libc/gen/Makefile.inc"
|
|
|
|
.include "${.CURDIR}/../libc/gmon/Makefile.inc"
|
|
|
|
.include "${.CURDIR}/../libc/locale/Makefile.inc"
|
|
|
|
.include "${.CURDIR}/../libc/net/Makefile.inc"
|
|
|
|
.include "${.CURDIR}/../libc/nls/Makefile.inc"
|
1998-03-09 06:21:41 +00:00
|
|
|
.if !defined(NO_QUAD)
|
1997-05-03 03:50:06 +00:00
|
|
|
.include "${.CURDIR}/../libc/quad/Makefile.inc"
|
1998-03-09 06:21:41 +00:00
|
|
|
.endif
|
1997-05-03 03:50:06 +00:00
|
|
|
.include "${.CURDIR}/../libc/regex/Makefile.inc"
|
|
|
|
.include "${.CURDIR}/../libc/stdio/Makefile.inc"
|
|
|
|
.include "${.CURDIR}/../libc/stdlib/Makefile.inc"
|
|
|
|
.include "${.CURDIR}/../libc/stdtime/Makefile.inc"
|
|
|
|
.include "${.CURDIR}/../libc/string/Makefile.inc"
|
|
|
|
.include "${.CURDIR}/../libc/sys/Makefile.inc"
|
|
|
|
.include "${.CURDIR}/../libc/rpc/Makefile.inc"
|
|
|
|
.include "${.CURDIR}/../libc/xdr/Makefile.inc"
|
|
|
|
.if !defined(NO_YP_LIBC)
|
|
|
|
CFLAGS+= -DYP
|
|
|
|
.include "${.CURDIR}/../libc/yp/Makefile.inc"
|
|
|
|
.endif
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
.if !defined(NO_HESIOD_LIBC)
|
|
|
|
CFLAGS+= -DHESIOD
|
|
|
|
.endif
|
1997-10-16 13:46:50 +00:00
|
|
|
|
1998-03-09 06:21:41 +00:00
|
|
|
# If there are no machine dependent sources, append all the
|
|
|
|
# machine-independent sources:
|
|
|
|
.if empty(MDSRCS)
|
|
|
|
SRCS+= ${MISRCS}
|
|
|
|
.else
|
1997-10-16 13:46:50 +00:00
|
|
|
# Append machine-dependent sources, then append machine-independent sources
|
|
|
|
# for which there is no machine-dependent variant.
|
|
|
|
SRCS+= ${MDSRCS}
|
|
|
|
.for _src in ${MISRCS}
|
|
|
|
.if ${MDSRCS:R:M${_src:R}} == ""
|
|
|
|
SRCS+= ${_src}
|
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
.endif
|