]>
Commit | Line | Data |
---|---|---|
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: | |
7 | MDSRCS= | |
8 | MISRCS= | |
9 | MDASM= | |
10 | MIASM= | |
11 | NOASM= | |
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. | |
16 | SUPPRESSSRCS= | |
17 | ||
59e0d9fe A |
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 | |
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 | ||
3d9156a7 | 50 | .include "${.CURDIR}/darwin/Makefile.inc" |
5b2abdfb A |
51 | .include "${.CURDIR}/db/Makefile.inc" |
52 | .include "${.CURDIR}/compat-43/Makefile.inc" | |
59e0d9fe | 53 | .include "${.CURDIR}/emulated/Makefile.inc" |
9385eb3d | 54 | .include "${.CURDIR}/gdtoa/Makefile.inc" |
5b2abdfb A |
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" | |
9385eb3d | 62 | .include "${.CURDIR}/nls/Makefile.inc" |
3d9156a7 | 63 | .include "${.CURDIR}/posix1e/Makefile.inc" |
5b2abdfb A |
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" | |
59e0d9fe | 76 | .include "${.CURDIR}/uuid/Makefile.inc" |
5b2abdfb A |
77 | #.include "${.CURDIR}/rpc/Makefile.inc" |
78 | #.include "${.CURDIR}/xdr/Makefile.inc" | |
59e0d9fe A |
79 | #.if !defined(NO_YP_LIBC) |
80 | #CFLAGS+= -DYP | |
5b2abdfb | 81 | #.include "${.CURDIR}/yp/Makefile.inc" |
59e0d9fe A |
82 | #.endif |
83 | #.if !defined(NO_HESIOD_LIBC) | |
84 | #CFLAGS+= -DHESIOD | |
85 | #.endif | |
5b2abdfb A |
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 | |
9385eb3d | 93 | # for which there is no machine-dependent variant, and not being suppressed. |
5b2abdfb | 94 | SRCS+= ${MDSRCS} |
9385eb3d | 95 | _SUPPRESS= ${MDSRCS} ${SUPPRESSSRCS} |
5b2abdfb | 96 | .for _src in ${MISRCS} |
9385eb3d | 97 | .if ${_SUPPRESS:R:M${_src:R}} == "" |
5b2abdfb A |
98 | SRCS+= ${_src} |
99 | .endif | |
100 | .endfor | |
101 | .endif |