]> git.saurik.com Git - apple/libc.git/blob - Makefile.inc
Libc-339.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 # 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.
16 SUPPRESSSRCS=
17
18 # Auto-patching variables
19 AUTOPATCHHDRS=
20 AUTOPATCHMAN=
21 AUTOPATCHSRCS=
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
42
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"
52 .include "${.CURDIR}/emulated/Makefile.inc"
53 .include "${.CURDIR}/gdtoa/Makefile.inc"
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"
61 .include "${.CURDIR}/nls/Makefile.inc"
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"
75 .include "${.CURDIR}/uuid/Makefile.inc"
76 #.include "${.CURDIR}/rpc/Makefile.inc"
77 #.include "${.CURDIR}/xdr/Makefile.inc"
78 #.if !defined(NO_YP_LIBC)
79 #CFLAGS+= -DYP
80 #.include "${.CURDIR}/yp/Makefile.inc"
81 #.endif
82 #.if !defined(NO_HESIOD_LIBC)
83 #CFLAGS+= -DHESIOD
84 #.endif
85
86 # If there are no machine dependent sources, append all the
87 # machine-independent sources:
88 .if empty(MDSRCS)
89 SRCS+= ${MISRCS}
90 .else
91 # Append machine-dependent sources, then append machine-independent sources
92 # for which there is no machine-dependent variant, and not being suppressed.
93 SRCS+= ${MDSRCS}
94 _SUPPRESS= ${MDSRCS} ${SUPPRESSSRCS}
95 .for _src in ${MISRCS}
96 .if ${_SUPPRESS:R:M${_src:R}} == ""
97 SRCS+= ${_src}
98 .endif
99 .endfor
100 .endif