rename amd64 architecture to x86_64
[dragonfly.git] / lib / libc / Makefile.inc
CommitLineData
984263bc 1# $FreeBSD: src/lib/libc/Makefile.inc,v 1.5 1999/08/27 23:58:06 peter Exp $
d7345b10 2# $DragonFly: src/lib/libc/Makefile.inc,v 1.6 2007/06/16 19:57:12 dillon Exp $
984263bc
MD
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:
8MDSRCS=
9MISRCS=
10MDASM=
11MIASM=
12NOASM=
13
6a33bb06 14#WARNS=6
17ea2221 15
984263bc 16.include "${.CURDIR}/../libc/${MACHINE_ARCH}/Makefile.inc"
984263bc 17
32a7b49a 18.include "${.CURDIR}/../libc/citrus/Makefile.inc"
984263bc
MD
19.include "${.CURDIR}/../libc/db/Makefile.inc"
20.include "${.CURDIR}/../libc/compat-43/Makefile.inc"
f202adf7 21.include "${.CURDIR}/../libc/gdtoa/Makefile.inc"
984263bc
MD
22.include "${.CURDIR}/../libc/gen/Makefile.inc"
23.include "${.CURDIR}/../libc/gmon/Makefile.inc"
32a7b49a 24.include "${.CURDIR}/../libc/iconv/Makefile.inc"
984263bc
MD
25.include "${.CURDIR}/../libc/locale/Makefile.inc"
26.include "${.CURDIR}/../libc/net/Makefile.inc"
27.include "${.CURDIR}/../libc/nls/Makefile.inc"
c1543a89 28.if ${MACHINE_ARCH} != "x86_64"
984263bc
MD
29.include "${.CURDIR}/../libc/quad/Makefile.inc"
30.endif
31.include "${.CURDIR}/../libc/regex/Makefile.inc"
21fcee4d 32.include "${.CURDIR}/../libc/resolv/Makefile.inc"
984263bc
MD
33.include "${.CURDIR}/../libc/stdio/Makefile.inc"
34.include "${.CURDIR}/../libc/stdlib/Makefile.inc"
35.include "${.CURDIR}/../libc/stdtime/Makefile.inc"
36.include "${.CURDIR}/../libc/string/Makefile.inc"
37.include "${.CURDIR}/../libc/sys/Makefile.inc"
38.include "${.CURDIR}/../libc/rpc/Makefile.inc"
d7345b10 39.include "${.CURDIR}/../libc/uuid/Makefile.inc"
984263bc
MD
40.include "${.CURDIR}/../libc/xdr/Makefile.inc"
41.if !defined(NO_YP_LIBC)
42CFLAGS+= -DYP
43.include "${.CURDIR}/../libc/yp/Makefile.inc"
44.endif
ed5d5720
PA
45.if defined(WANT_HESIOD)
46CFLAGS+= -DHESIOD
47.endif
b2b00a3b
PA
48.if !defined(NO_NS_CACHING)
49CFLAGS+= -DNS_CACHING
50.endif
984263bc
MD
51
52# If there are no machine dependent sources, append all the
53# machine-independent sources:
54.if empty(MDSRCS)
55SRCS+= ${MISRCS}
56.else
57# Append machine-dependent sources, then append machine-independent sources
58# for which there is no machine-dependent variant.
59SRCS+= ${MDSRCS}
60.for _src in ${MISRCS}
61.if ${MDSRCS:R:M${_src:R}} == ""
62SRCS+= ${_src}
63.endif
64.endfor
65.endif
f202adf7
PA
66
67# Disable warnings in contributed sources.
68CWARNFLAGS:= ${.IMPSRC:Ngdtoa_*.c:C/^.+$/${CWARNFLAGS}/}