libcr copy: Retarget build paths from ../libc to ../libcr and retarget
[dragonfly.git] / lib / libcr / Makefile.inc
1 # $FreeBSD: src/lib/libc/Makefile.inc,v 1.5 1999/08/27 23:58:06 peter Exp $
2 # $DragonFly: src/lib/libcr/Attic/Makefile.inc,v 1.3 2003/07/24 21:41:43 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 #
15 # If there is a machine dependent makefile, use it:
16 #
17 .if exists(${.CURDIR}/../libcr/${MACHINE_ARCH}/Makefile.inc)
18 .include "${.CURDIR}/../libcr/${MACHINE_ARCH}/Makefile.inc"
19 .endif
20
21 .include "${.CURDIR}/../libcr/db/Makefile.inc"
22 .include "${.CURDIR}/../libcr/compat-43/Makefile.inc"
23 .include "${.CURDIR}/../libcr/gen/Makefile.inc"
24 .include "${.CURDIR}/../libcr/gmon/Makefile.inc"
25 .include "${.CURDIR}/../libcr/locale/Makefile.inc"
26 .include "${.CURDIR}/../libcr/net/Makefile.inc"
27 .include "${.CURDIR}/../libcr/nls/Makefile.inc"
28 .if !defined(NO_QUAD)
29 .include "${.CURDIR}/../libcr/quad/Makefile.inc"
30 .endif
31 .include "${.CURDIR}/../libcr/regex/Makefile.inc"
32 .include "${.CURDIR}/../libcr/stdio/Makefile.inc"
33 .include "${.CURDIR}/../libcr/stdlib/Makefile.inc"
34 .include "${.CURDIR}/../libcr/stdtime/Makefile.inc"
35 .include "${.CURDIR}/../libcr/string/Makefile.inc"
36 .include "${.CURDIR}/../libcr/sys/Makefile.inc"
37 .include "${.CURDIR}/../libcr/rpc/Makefile.inc"
38 .include "${.CURDIR}/../libcr/xdr/Makefile.inc"
39 .if !defined(NO_YP_LIBC)
40 CFLAGS+= -DYP
41 .include "${.CURDIR}/../libcr/yp/Makefile.inc"
42 .endif
43
44 # If there are no machine dependent sources, append all the
45 # machine-independent sources:
46 .if empty(MDSRCS)
47 SRCS+=  ${MISRCS}
48 .else
49 # Append machine-dependent sources, then append machine-independent sources
50 # for which there is no machine-dependent variant.
51 SRCS+=  ${MDSRCS}
52 .for _src in ${MISRCS}
53 .if ${MDSRCS:R:M${_src:R}} == ""
54 SRCS+=  ${_src}
55 .endif
56 .endfor
57 .endif