]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - tools/build/Makefile
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / tools / build / Makefile
1 # $FreeBSD$
2
3 .PATH: ${.CURDIR}/../../include
4
5 LIB=            egacy
6 SRC=
7 INCSGROUPS=     INCS
8 INCS=
9
10 BOOTSTRAPPING?= 0
11
12 _WITH_GETLINE!= grep -c _WITH_GETLINE /usr/include/stdio.h || true
13 .if ${_WITH_GETLINE} == 0
14 .PATH: ${.CURDIR}/../../contrib/file ${.CURDIR}/../../lib/libmagic
15 SRCS=           getline.c config.h
16 CFLAGS+=        -DHAVE_CONFIG_H -I.
17 CLEANFILES+=    config.h
18
19 ${SRCS:N*.h:R:S/$/.o/}: config.h
20 config.h: ${.CURDIR}/../../lib/libmagic/config.h
21         grep -v HAVE_GETLINE ${.ALLSRC} > ${.TARGET}
22 .endif
23
24 _WITH_PWCACHEDB!= grep -c pwcache_groupdb /usr/include/pwd.h || true
25 .if ${_WITH_PWCACHEDB} == 0
26 .PATH: ${.CURDIR}/../../contrib/libc-pwcache
27 CFLAGS+=        -I${.CURDIR}/../../contrib/libc-pwcache \
28                 -I${.CURDIR}/../../lib/libc/include
29 SRCS+=          pwcache.c
30 .endif
31
32 _WITH_STRSVIS!= grep -c strsvis /usr/include/vis.h || true
33 .if ${_WITH_STRSVIS} == 0
34 .PATH: ${.CURDIR}/../../contrib/libc-vis
35 SRCS+=          vis.c
36 CFLAGS+=        -I${.CURDIR}/../../contrib/libc-vis \
37                 -I${.CURDIR}/../../lib/libc/include
38 .endif
39
40 .if empty(SRCS)
41 SRCS=           dummy.c
42 .endif
43
44 .if defined(CROSS_BUILD_TESTING)
45 SUBDIR=         cross-build
46 .endif
47
48 .include <bsd.lib.mk>