]> git.saurik.com Git - apple/libc.git/blob - Makefile.inc
Libc-391.4.1.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}/darwin/Makefile.inc"
51 .include "${.CURDIR}/db/Makefile.inc"
52 .include "${.CURDIR}/compat-43/Makefile.inc"
53 .include "${.CURDIR}/emulated/Makefile.inc"
54 .include "${.CURDIR}/gdtoa/Makefile.inc"
55 .include "${.CURDIR}/gen/Makefile.inc"
56 .include "${.CURDIR}/gmon/Makefile.inc"
57 .include "${.CURDIR}/include/Makefile.inc"
58 .include "${.CURDIR}/internat/Makefile.inc"
59 .include "${.CURDIR}/locale/Makefile.inc"
60 .include "${.CURDIR}/mach/Makefile.inc"
61 .include "${.CURDIR}/net/Makefile.inc"
62 .include "${.CURDIR}/nls/Makefile.inc"
63 .include "${.CURDIR}/posix1e/Makefile.inc"
64 .include "${.CURDIR}/pthreads/Makefile.inc"
65 .if !defined(NO_QUAD)
66 #.include "${.CURDIR}/quad/Makefile.inc"
67 .endif
68 .include "${.CURDIR}/regex/Makefile.inc"
69 .include "${.CURDIR}/stdio/Makefile.inc"
70 .include "${.CURDIR}/stdlib/Makefile.inc"
71 .include "${.CURDIR}/stdtime/Makefile.inc"
72 .include "${.CURDIR}/string/Makefile.inc"
73 .include "${.CURDIR}/sys/Makefile.inc"
74 .include "${.CURDIR}/threads/Makefile.inc"
75 .include "${.CURDIR}/util/Makefile.inc"
76 .include "${.CURDIR}/uuid/Makefile.inc"
77 #.include "${.CURDIR}/rpc/Makefile.inc"
78 #.include "${.CURDIR}/xdr/Makefile.inc"
79 #.if !defined(NO_YP_LIBC)
80 #CFLAGS+= -DYP
81 #.include "${.CURDIR}/yp/Makefile.inc"
82 #.endif
83 #.if !defined(NO_HESIOD_LIBC)
84 #CFLAGS+= -DHESIOD
85 #.endif
86
87 # If there are no machine dependent sources, append all the
88 # machine-independent sources:
89 .if empty(MDSRCS)
90 SRCS+= ${MISRCS}
91 .else
92 # Append machine-dependent sources, then append machine-independent sources
93 # for which there is no machine-dependent variant, and not being suppressed.
94 SRCS+= ${MDSRCS}
95 _SUPPRESS= ${MDSRCS} ${SUPPRESSSRCS}
96 .for _src in ${MISRCS}
97 .if ${_SUPPRESS:R:M${_src:R}} == ""
98 SRCS+= ${_src}
99 .endif
100 .endfor
101 .endif