Makefile revision 113136
1113136Simp# $FreeBSD: head/tools/build/Makefile 113136 2003-04-05 20:30:30Z imp $
2113136Simp
3113136Simp.PATH: ${.CURDIR}/../../include
4113136Simp
5113136SimpLIB=		build
6113136SimpSRCS=
7113136SimpINCSGROUPS=	INCS
8113136SimpINCS=		
9113136Simp
10113136SimpBOOTSTRAPPING?=	0
11113136Simp
12113136Simp# Some tools need <sys/endian.h>.
13113136Simp.if !exists(/usr/include/sys/endian.h)
14113136SimpINCSGROUPS+=	SYSHDRS
15113136SimpSYSHDRS=	endian.h
16113136SimpSYSHDRSDIR=	${INCLUDEDIR}/sys
17113136Simp.endif
18113136Simp
19113136Simp# gnu/usr.bin/binutils/ld needs <elf-hints.h>.
20113136Simp.if !exists(/usr/include/elf-hints.h)
21113136SimpINCS+=		elf-hints.h
22113136Simp.endif
23113136Simp
24113136Simp# lib/libncurses needs <stdbool.h>.
25113136Simp.if !exists(/usr/include/stdbool.h)
26113136SimpINCS+=		stdbool.h
27113136Simp.endif
28113136Simp
29113136Simp# usr.bin/xargs needs <nl_langinfo.h>.
30113136Simp.if !exists(/usr/include/langinfo.h)
31113136SimpINCS+=		langinfo.h
32113136Simp.endif
33113136Simp
34113136Simp# gnu/usr.bin/binutils/libiberty needs basename(3).
35113136Simp.if ( ${BOOTSTRAPPING} < 440000 || \
36113136Simp    ( ${BOOTSTRAPPING} >= 500000 && ${BOOTSTRAPPING} < 500022 ))
37113136Simp.PATH: ${.CURDIR}/../../lib/libc/gen
38113136SimpSRCS+=		basename.c
39113136Simp.endif
40113136Simp
41113136Simp# Some tools need {get,set}progname(3).
42113136Simp.if ( ${BOOTSTRAPPING} < 440001 || \
43113136Simp    ( ${BOOTSTRAPPING} >= 500000 && ${BOOTSTRAPPING} < 500023 ))
44113136SimpSRCS+=		progname.c
45113136Simp.endif
46113136Simp
47113136Simp# install(1) needs strtofflags(3).
48113136Simp.if ( ${BOOTSTRAPPING} < 400021 || \
49113136Simp    ( ${BOOTSTRAPPING} >= 500000 && ${BOOTSTRAPPING} < 500007 ))
50113136Simp.PATH: ${.CURDIR}/../../lib/libc/gen
51113136SimpSRCS+=		strtofflags.c
52113136Simp.endif
53113136Simp
54113136Simp.if empty(SRCS)
55113136SimpSRCS=		dummy.c
56113136Simp.endif
57113136Simp
58113136Simp.include <bsd.lib.mk>
59