]> git.saurik.com Git - apple/libc.git/blame - Makefile.inc
Libc-339.tar.gz
[apple/libc.git] / Makefile.inc
CommitLineData
5b2abdfb
A
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:
7MDSRCS=
8MISRCS=
9MDASM=
10MIASM=
11NOASM=
12
9385eb3d
A
13# SUPPRESSSRCS is used to prevent machine-independent files from being
14# built, when a machine-dependent file defines multiple symbols.
15# Use MDSRCS to block one file, and SUPPRESSSRCS to block the others.
16SUPPRESSSRCS=
17
59e0d9fe
A
18# Auto-patching variables
19AUTOPATCHHDRS=
20AUTOPATCHMAN=
21AUTOPATCHSRCS=
22
23# Auto-patch into OBJROOT
24_AUTOPATCH: .USE
25 @if [ -f ${.ALLSRC}.patch ]; then \
26 echo cp ${.ALLSRC} ${.TARGET}; \
27 cp ${.ALLSRC} ${.TARGET}; \
28 echo patch ${.TARGET} ${.ALLSRC}.patch; \
29 patch ${.TARGET} ${.ALLSRC}.patch; \
30 else \
31 echo ln -s ${.ALLSRC} ${.TARGET}; \
32 ln -s ${.ALLSRC} ${.TARGET}; \
33 fi
34# Auto-patch into SYMROOT
35_AUTOPATCHSYM: .USE
36 @echo cp ${.ALLSRC} ${.TARGET}; \
37 cp ${.ALLSRC} ${.TARGET}; \
38 if [ -f ${.ALLSRC}.patch ]; then \
39 echo patch ${.TARGET} ${.ALLSRC}.patch; \
40 patch ${.TARGET} ${.ALLSRC}.patch; \
41 fi
9385eb3d 42
5b2abdfb
A
43#
44# If there is a machine dependent makefile, use it:
45#
46.if exists(${.CURDIR}/${MACHINE_ARCH}/Makefile.inc)
47.include "${.CURDIR}/${MACHINE_ARCH}/Makefile.inc"
48.endif
49
50.include "${.CURDIR}/db/Makefile.inc"
51.include "${.CURDIR}/compat-43/Makefile.inc"
59e0d9fe 52.include "${.CURDIR}/emulated/Makefile.inc"
9385eb3d 53.include "${.CURDIR}/gdtoa/Makefile.inc"
5b2abdfb
A
54.include "${.CURDIR}/gen/Makefile.inc"
55.include "${.CURDIR}/gmon/Makefile.inc"
56.include "${.CURDIR}/include/Makefile.inc"
57.include "${.CURDIR}/internat/Makefile.inc"
58.include "${.CURDIR}/locale/Makefile.inc"
59.include "${.CURDIR}/mach/Makefile.inc"
60.include "${.CURDIR}/net/Makefile.inc"
9385eb3d 61.include "${.CURDIR}/nls/Makefile.inc"
5b2abdfb
A
62#.include "${.CURDIR}/posix1e/Makefile.inc"
63.include "${.CURDIR}/pthreads/Makefile.inc"
64.if !defined(NO_QUAD)
65#.include "${.CURDIR}/quad/Makefile.inc"
66.endif
67.include "${.CURDIR}/regex/Makefile.inc"
68.include "${.CURDIR}/stdio/Makefile.inc"
69.include "${.CURDIR}/stdlib/Makefile.inc"
70.include "${.CURDIR}/stdtime/Makefile.inc"
71.include "${.CURDIR}/string/Makefile.inc"
72.include "${.CURDIR}/sys/Makefile.inc"
73.include "${.CURDIR}/threads/Makefile.inc"
74.include "${.CURDIR}/util/Makefile.inc"
59e0d9fe 75.include "${.CURDIR}/uuid/Makefile.inc"
5b2abdfb
A
76#.include "${.CURDIR}/rpc/Makefile.inc"
77#.include "${.CURDIR}/xdr/Makefile.inc"
59e0d9fe
A
78#.if !defined(NO_YP_LIBC)
79#CFLAGS+= -DYP
5b2abdfb 80#.include "${.CURDIR}/yp/Makefile.inc"
59e0d9fe
A
81#.endif
82#.if !defined(NO_HESIOD_LIBC)
83#CFLAGS+= -DHESIOD
84#.endif
5b2abdfb
A
85
86# If there are no machine dependent sources, append all the
87# machine-independent sources:
88.if empty(MDSRCS)
89SRCS+= ${MISRCS}
90.else
91# Append machine-dependent sources, then append machine-independent sources
9385eb3d 92# for which there is no machine-dependent variant, and not being suppressed.
5b2abdfb 93SRCS+= ${MDSRCS}
9385eb3d 94_SUPPRESS= ${MDSRCS} ${SUPPRESSSRCS}
5b2abdfb 95.for _src in ${MISRCS}
9385eb3d 96.if ${_SUPPRESS:R:M${_src:R}} == ""
5b2abdfb
A
97SRCS+= ${_src}
98.endif
99.endfor
100.endif