1 # $FreeBSD: src/lMakefile.inc,v 1.7 2001/04/04 18:17:25 tmm Exp $
3 # This file contains make rules that are shared by libc and libc_r.
5 # Define (empty) variables so that make doesn't give substitution
6 # errors if the included makefiles don't change these:
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.
18 # Auto-patching variables
23 # Auto-patch into OBJROOT
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; \
31 echo ln -s ${.ALLSRC} ${.TARGET}; \
32 ln -s ${.ALLSRC} ${.TARGET}; \
34 # Auto-patch into SYMROOT
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; \
44 # If there is a machine dependent makefile, use it:
46 .if exists(${.CURDIR}/${MACHINE_ARCH}/Makefile.inc)
47 .include "${.CURDIR}/${MACHINE_ARCH}/Makefile.inc"
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"
66 #.include "${.CURDIR}/quad/Makefile.inc"
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)
81 #.include "${.CURDIR}/yp/Makefile.inc"
83 #.if !defined(NO_HESIOD_LIBC)
87 # If there are no machine dependent sources, append all the
88 # machine-independent sources:
92 # Append machine-dependent sources, then append machine-independent sources
93 # for which there is no machine-dependent variant, and not being suppressed.
95 _SUPPRESS= ${MDSRCS} ${SUPPRESSSRCS}
96 .for _src in ${MISRCS}
97 .if ${_SUPPRESS:R:M${_src:R}} == ""