Remove _THREAD_SAFE depenendancies. Create weakly associated stubs for
[games.git] / lib / libc / Makefile.inc
1 # $FreeBSD: src/lib/libc/Makefile.inc,v 1.5 1999/08/27 23:58:06 peter Exp $
2 # $DragonFly: src/lib/libc/Makefile.inc,v 1.3 2005/01/31 22:29:01 dillon Exp $
3 #
4 # This file contains make rules that are shared by libc and libc_r.
5 #
6 # Define (empty) variables so that make doesn't give substitution
7 # errors if the included makefiles don't change these:
8 MDSRCS=
9 MISRCS=
10 MDASM=
11 MIASM=
12 NOASM=
13
14 WARNS=6
15
16 #
17 # If there is a machine dependent makefile, use it:
18 #
19 .if exists(${.CURDIR}/../libc/${MACHINE_ARCH}/Makefile.inc)
20 .include "${.CURDIR}/../libc/${MACHINE_ARCH}/Makefile.inc"
21 .endif
22
23 .include "${.CURDIR}/../libc/db/Makefile.inc"
24 .include "${.CURDIR}/../libc/compat-43/Makefile.inc"
25 .include "${.CURDIR}/../libc/gen/Makefile.inc"
26 .include "${.CURDIR}/../libc/gmon/Makefile.inc"
27 .include "${.CURDIR}/../libc/locale/Makefile.inc"
28 .include "${.CURDIR}/../libc/net/Makefile.inc"
29 .include "${.CURDIR}/../libc/nls/Makefile.inc"
30 .if !defined(NO_QUAD)
31 .include "${.CURDIR}/../libc/quad/Makefile.inc"
32 .endif
33 .include "${.CURDIR}/../libc/regex/Makefile.inc"
34 .include "${.CURDIR}/../libc/stdio/Makefile.inc"
35 .include "${.CURDIR}/../libc/stdlib/Makefile.inc"
36 .include "${.CURDIR}/../libc/stdtime/Makefile.inc"
37 .include "${.CURDIR}/../libc/string/Makefile.inc"
38 .include "${.CURDIR}/../libc/sys/Makefile.inc"
39 .include "${.CURDIR}/../libc/rpc/Makefile.inc"
40 .include "${.CURDIR}/../libc/xdr/Makefile.inc"
41 .if !defined(NO_YP_LIBC)
42 CFLAGS+= -DYP
43 .include "${.CURDIR}/../libc/yp/Makefile.inc"
44 .endif
45
46 # If there are no machine dependent sources, append all the
47 # machine-independent sources:
48 .if empty(MDSRCS)
49 SRCS+=  ${MISRCS}
50 .else
51 # Append machine-dependent sources, then append machine-independent sources
52 # for which there is no machine-dependent variant.
53 SRCS+=  ${MDSRCS}
54 .for _src in ${MISRCS}
55 .if ${MDSRCS:R:M${_src:R}} == ""
56 SRCS+=  ${_src}
57 .endif
58 .endfor
59 .endif