]> git.saurik.com Git - apple/libc.git/blob - Makefile.inc
Libc-262.2.12.tar.gz
[apple/libc.git] / Makefile.inc
1 # $FreeBSD: src/lMakefile.inc,v 1.7 2001/04/04 18:17:25 tmm 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:
7 MDSRCS=
8 MISRCS=
9 MDASM=
10 MIASM=
11 NOASM=
12
13 #
14 # If there is a machine dependent makefile, use it:
15 #
16 .if exists(${.CURDIR}/${MACHINE_ARCH}/Makefile.inc)
17 .include "${.CURDIR}/${MACHINE_ARCH}/Makefile.inc"
18 .endif
19
20 .include "${.CURDIR}/db/Makefile.inc"
21 .include "${.CURDIR}/compat-43/Makefile.inc"
22 .include "${.CURDIR}/gen/Makefile.inc"
23 .include "${.CURDIR}/gmon/Makefile.inc"
24 .include "${.CURDIR}/include/Makefile.inc"
25 .include "${.CURDIR}/internat/Makefile.inc"
26 .include "${.CURDIR}/locale/Makefile.inc"
27 .include "${.CURDIR}/mach/Makefile.inc"
28 .include "${.CURDIR}/net/Makefile.inc"
29 #.include "${.CURDIR}/nls/Makefile.inc"
30 #.include "${.CURDIR}/posix1e/Makefile.inc"
31 .include "${.CURDIR}/pthreads/Makefile.inc"
32 .if !defined(NO_QUAD)
33 #.include "${.CURDIR}/quad/Makefile.inc"
34 .endif
35 .include "${.CURDIR}/regex/Makefile.inc"
36 .include "${.CURDIR}/stdio/Makefile.inc"
37 .include "${.CURDIR}/stdlib/Makefile.inc"
38 .include "${.CURDIR}/stdtime/Makefile.inc"
39 .include "${.CURDIR}/string/Makefile.inc"
40 .include "${.CURDIR}/sys/Makefile.inc"
41 .include "${.CURDIR}/threads/Makefile.inc"
42 .include "${.CURDIR}/util/Makefile.inc"
43 #.include "${.CURDIR}/rpc/Makefile.inc"
44 #.include "${.CURDIR}/xdr/Makefile.inc"
45 .if !defined(NO_YP_LIBC)
46 CFLAGS+= -DYP
47 #.include "${.CURDIR}/yp/Makefile.inc"
48 .endif
49 .if !defined(NO_HESIOD_LIBC)
50 CFLAGS+= -DHESIOD
51 .endif
52
53 # If there are no machine dependent sources, append all the
54 # machine-independent sources:
55 .if empty(MDSRCS)
56 SRCS+= ${MISRCS}
57 .else
58 # Append machine-dependent sources, then append machine-independent sources
59 # for which there is no machine-dependent variant.
60 SRCS+= ${MDSRCS}
61 .for _src in ${MISRCS}
62 .if ${MDSRCS:R:M${_src:R}} == ""
63 SRCS+= ${_src}
64 .endif
65 .endfor
66 .endif