blob: 461551e9cafa404b1c124aa73e950384e683f2a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# $NetBSD: Makefile,v 1.16 2014/06/23 18:37:45 christos Exp $
.include <bsd.init.mk>
.include "${.CURDIR}/../../arch/${GCC_MACHINE_ARCH}/defs.mk"
.cc: # disable .cc->NULL transform
GNUHOSTDIST= ${DIST}
BUILDINCS= basic_file.h c++allocator.h c++io.h c++locale.h
BUILDINCS+= messages_members.h time_members.h opt_random.h gthr-default.h
INCS= ${G_bits_headers} ${G_c_base_headers_extra} ${G_host_headers}
INCS+= gthr.h gthr-single.h gthr-posix.h
INCS+= ${BUILDINCS}
# libsupc++
INCS+= nested_exception.h hash_bytes.h atomic_lockfree_defines.h
INCS+= cxxabi_forced.h exception_defines.h exception_ptr.h
.if ${MKCOMPAT} != no && !empty(MACHINE_ARCH:M*64*)
SUBDIR+= arch
.else
INCS+= c++config.h
.endif
INCSDIR= /usr/include/g++/bits
.include "${.CURDIR}/../Makefile.includes"
CLEANFILES+= {BUILDINCS}
CXXDIST= ${DIST}/libstdc++-v3
COPYHEADERS= \
opt_random.h ${CXXDIST}/${G_CPU_OPT_BITS_RANDOM} \
basic_file.h ${CXXDIST}/${G_BASIC_FILE_H} \
c++allocator.h ${CXXDIST}/${G_ALLOCATOR_H} \
c++locale.h ${CXXDIST}/${G_CLOCALE_H} \
c++io.h ${CXXDIST}/${G_CSTDIO_H} \
messages_members.h ${CXXDIST}/${G_CMESSAGES_H} \
time_members.h ${CXXDIST}/${G_CTIME_H}
# gthr-default.h is a little special
.for _src _dst in ${G_CONFIGLINKS}
. if ${_dst} == "gthr-default.h"
COPYHEADERS+= ${_dst} ${_src}
. endif
.endfor
.for _h _s in ${COPYHEADERS}
${_h}: ${_s}
cp -pf ${.ALLSRC} ${.TARGET}
.endfor
# Get default targets including <bsd.inc.mk>.
.include <bsd.prog.mk>
.PATH: ${.CURDIR}/../../arch/${GCC_MACHINE_ARCH} \
${DIST}/libstdc++-v3/include \
${DIST}/libstdc++-v3/config \
${DIST}/libstdc++-v3/ \
${DIST}/libstdc++-v3/libsupc++
.include <bsd.subdir.mk>
|