]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - tools/build/Makefile
MFV r284234:
[FreeBSD/FreeBSD.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_PWCACHEDB!= grep -c pwcache_groupdb /usr/include/grp.h || true
13 .if ${_WITH_PWCACHEDB} == 0
14 .PATH: ${.CURDIR}/../../contrib/libc-pwcache
15 CFLAGS+=        -I${.CURDIR}/../../contrib/libc-pwcache \
16                 -I${.CURDIR}/../../lib/libc/include
17 SRCS+=          pwcache.c
18 .endif
19
20 _WITH_STRSVIS!= grep -c strsvis /usr/include/vis.h || true
21 .if ${_WITH_STRSVIS} == 0
22 .PATH: ${.CURDIR}/../../contrib/libc-vis
23 SRCS+=          vis.c
24 CFLAGS+=        -I${.CURDIR}/../../contrib/libc-vis \
25                 -I${.CURDIR}/../../lib/libc/include
26 .endif
27
28 _WITH_REALLOCARRAY!= grep -c reallocarray /usr/include/stdlib.h || true
29 .if ${_WITH_REALLOCARRAY} == 0
30 .PATH: ${.CURDIR}/../../lib/libc/stdlib
31 INCS+=          stdlib.h
32 SRCS+=          reallocarray.c
33 CFLAGS+=        -I${.CURDIR}/../../lib/libc/include
34 .endif
35
36 .if empty(SRCS)
37 SRCS=           dummy.c
38 .endif
39
40 .if defined(CROSS_BUILD_TESTING)
41 SUBDIR=         cross-build
42 .endif
43
44 .include <bsd.lib.mk>