xref: /dragonfly/lib/libc/Makefile.inc (revision c6f73aab)
1# $FreeBSD: src/lib/libc/Makefile.inc,v 1.5 1999/08/27 23:58:06 peter Exp $
2#
3# This file contains make rules that are shared by libc and libc_r.
4#
5# Define (empty) variables so that make doesn't give substitution
6# errors if the included makefiles don't change these:
7MDSRCS=
8MISRCS=
9MDASM=
10MIASM=
11NOASM=
12
13WARNS=2
14
15.include "${.CURDIR}/../libc/${MACHINE_ARCH}/Makefile.inc"
16
17.include "${.CURDIR}/../libc/citrus/Makefile.inc"
18.include "${.CURDIR}/../libc/db/Makefile.inc"
19.include "${.CURDIR}/../libc/compat-43/Makefile.inc"
20.include "${.CURDIR}/../libc/gdtoa/Makefile.inc"
21.include "${.CURDIR}/../libc/gen/Makefile.inc"
22.include "${.CURDIR}/../libc/upmap/Makefile.inc"
23.include "${.CURDIR}/../libc/sysvipc/Makefile.inc"
24.include "${.CURDIR}/../libc/gmon/Makefile.inc"
25.include "${.CURDIR}/../libc/iconv/Makefile.inc"
26.include "${.CURDIR}/../libc/locale/Makefile.inc"
27.include "${.CURDIR}/../libc/net/Makefile.inc"
28.include "${.CURDIR}/../libc/nls/Makefile.inc"
29.include "${.CURDIR}/../libc/tre-regex/Makefile.inc"
30.include "${.CURDIR}/../libc/resolv/Makefile.inc"
31.include "${.CURDIR}/../libc/stdio/Makefile.inc"
32.include "${.CURDIR}/../libc/stdlib/Makefile.inc"
33.include "${.CURDIR}/../libc/stdtime/Makefile.inc"
34.include "${.CURDIR}/../libc/string/Makefile.inc"
35.include "${.CURDIR}/../libc/sys/Makefile.inc"
36.include "${.CURDIR}/../libc/rpc/Makefile.inc"
37.include "${.CURDIR}/../libc/uuid/Makefile.inc"
38.include "${.CURDIR}/../libc/xdr/Makefile.inc"
39.if !defined(NO_YP_LIBC)
40CFLAGS+= -DYP
41.include "${.CURDIR}/../libc/yp/Makefile.inc"
42.endif
43.if defined(WANT_HESIOD)
44CFLAGS+= -DHESIOD
45.endif
46.if !defined(NO_NS_CACHING)
47CFLAGS+= -DNS_CACHING
48.endif
49
50# If there are no machine dependent sources, append all the
51# machine-independent sources:
52.if empty(MDSRCS)
53SRCS+=	${MISRCS}
54.else
55# Append machine-dependent sources, then append machine-independent sources
56# for which there is no machine-dependent variant.
57SRCS+=	${MDSRCS}
58.for _src in ${MISRCS}
59.if ${MDSRCS:R:M${_src:R}} == ""
60SRCS+=	${_src}
61.endif
62.endfor
63.endif
64