]>
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 | ||
18 | # Variable needed by the FreeBSD auto-patching mechanism | |
19 | FBSDHDRS= | |
20 | FBSDPATCHMAN= | |
21 | ||
5b2abdfb A |
22 | # |
23 | # If there is a machine dependent makefile, use it: | |
24 | # | |
25 | .if exists(${.CURDIR}/${MACHINE_ARCH}/Makefile.inc) | |
26 | .include "${.CURDIR}/${MACHINE_ARCH}/Makefile.inc" | |
27 | .endif | |
28 | ||
29 | .include "${.CURDIR}/db/Makefile.inc" | |
30 | .include "${.CURDIR}/compat-43/Makefile.inc" | |
9385eb3d | 31 | .include "${.CURDIR}/gdtoa/Makefile.inc" |
5b2abdfb A |
32 | .include "${.CURDIR}/gen/Makefile.inc" |
33 | .include "${.CURDIR}/gmon/Makefile.inc" | |
34 | .include "${.CURDIR}/include/Makefile.inc" | |
35 | .include "${.CURDIR}/internat/Makefile.inc" | |
36 | .include "${.CURDIR}/locale/Makefile.inc" | |
37 | .include "${.CURDIR}/mach/Makefile.inc" | |
38 | .include "${.CURDIR}/net/Makefile.inc" | |
9385eb3d | 39 | .include "${.CURDIR}/nls/Makefile.inc" |
5b2abdfb A |
40 | #.include "${.CURDIR}/posix1e/Makefile.inc" |
41 | .include "${.CURDIR}/pthreads/Makefile.inc" | |
42 | .if !defined(NO_QUAD) | |
43 | #.include "${.CURDIR}/quad/Makefile.inc" | |
44 | .endif | |
45 | .include "${.CURDIR}/regex/Makefile.inc" | |
46 | .include "${.CURDIR}/stdio/Makefile.inc" | |
47 | .include "${.CURDIR}/stdlib/Makefile.inc" | |
48 | .include "${.CURDIR}/stdtime/Makefile.inc" | |
49 | .include "${.CURDIR}/string/Makefile.inc" | |
50 | .include "${.CURDIR}/sys/Makefile.inc" | |
51 | .include "${.CURDIR}/threads/Makefile.inc" | |
52 | .include "${.CURDIR}/util/Makefile.inc" | |
53 | #.include "${.CURDIR}/rpc/Makefile.inc" | |
54 | #.include "${.CURDIR}/xdr/Makefile.inc" | |
55 | .if !defined(NO_YP_LIBC) | |
56 | CFLAGS+= -DYP | |
57 | #.include "${.CURDIR}/yp/Makefile.inc" | |
58 | .endif | |
59 | .if !defined(NO_HESIOD_LIBC) | |
60 | CFLAGS+= -DHESIOD | |
61 | .endif | |
62 | ||
63 | # If there are no machine dependent sources, append all the | |
64 | # machine-independent sources: | |
65 | .if empty(MDSRCS) | |
66 | SRCS+= ${MISRCS} | |
67 | .else | |
68 | # Append machine-dependent sources, then append machine-independent sources | |
9385eb3d | 69 | # for which there is no machine-dependent variant, and not being suppressed. |
5b2abdfb | 70 | SRCS+= ${MDSRCS} |
9385eb3d | 71 | _SUPPRESS= ${MDSRCS} ${SUPPRESSSRCS} |
5b2abdfb | 72 | .for _src in ${MISRCS} |
9385eb3d | 73 | .if ${_SUPPRESS:R:M${_src:R}} == "" |
5b2abdfb A |
74 | SRCS+= ${_src} |
75 | .endif | |
76 | .endfor | |
77 | .endif |