Makefile revision 232950
1# $FreeBSD: head/lib/libc++/Makefile 232950 2012-03-14 00:09:36Z theraven $
2
3LIBCXXRTDIR=    ${.CURDIR}/../../contrib/libcxxrt
4HDRDIR=         ${.CURDIR}/../../contrib/libc++/include
5SRCDIR=         ${.CURDIR}/../../contrib/libc++/src
6CXXINCLUDEDIR=  ${INCLUDEDIR}/c++/v${SHLIB_MAJOR}
7
8.PATH: ${SRCDIR}
9
10LIB=            c++
11SHLIB_MAJOR=    1
12
13SRCS+=          algorithm.cpp\
14                bind.cpp\
15                chrono.cpp\
16                condition_variable.cpp\
17                debug.cpp\
18                exception.cpp\
19                future.cpp\
20                hash.cpp\
21                ios.cpp\
22                iostream.cpp\
23                locale.cpp\
24                memory.cpp\
25                mutex.cpp\
26                new.cpp\
27                random.cpp\
28                regex.cpp\
29                stdexcept.cpp\
30                string.cpp\
31                strstream.cpp\
32                system_error.cpp\
33                thread.cpp\
34                typeinfo.cpp\
35                utility.cpp\
36                valarray.cpp
37
38WARNS=          0
39CXXFLAGS+=      -I${HDRDIR} -I${LIBCXXRTDIR} -std=c++0x -nostdlib -DLIBCXXRT
40
41DPADD=          ${LIBCXXRT}
42LDADD=          -L${.OBJDIR}/../libcxxrt/ -lcxxrt
43LDFLAGS+=       --verbose
44INCSGROUPS=     STD EXT
45
46STD_HEADERS=    __bit_reference\
47                __config\
48                __debug\
49                __functional_03\
50                __functional_base\
51                __functional_base_03\
52                __hash_table\
53                __locale\
54                __mutex_base\
55                __split_buffer\
56                __sso_allocator\
57                __std_stream\
58                __tree\
59                __tuple\
60                __tuple_03\
61                __undef_min_max\
62                algorithm\
63                array\
64                atomic\
65                bitset\
66                cassert\
67                ccomplex\
68                cctype\
69                cerrno\
70                cfenv\
71                cfloat\
72                chrono\
73                cinttypes\
74                ciso646\
75                climits\
76                clocale\
77                cmath\
78                codecvt\
79                complex\
80                complex.h\
81                condition_variable\
82                csetjmp\
83                csignal\
84                cstdarg\
85                cstdbool\
86                cstddef\
87                cstdint\
88                cstdio\
89                cstdlib\
90                cstring\
91                ctgmath\
92                ctime\
93                cwchar\
94                cwctype\
95                deque\
96                exception\
97                forward_list\
98                fstream\
99                functional\
100                future\
101                initializer_list\
102                iomanip\
103                ios\
104                iosfwd\
105                iostream\
106                istream\
107                iterator\
108                limits\
109                list\
110                locale\
111                map\
112                memory\
113                mutex\
114                new\
115                numeric\
116                ostream\
117                queue\
118                random\
119                ratio\
120                regex\
121                scoped_allocator\
122                set\
123                sstream\
124                stack\
125                stdexcept\
126                streambuf\
127                string\
128                strstream\
129                system_error\
130                tgmath.h\
131                thread\
132                tuple\
133                type_traits\
134                typeindex\
135                typeinfo\
136                unordered_map\
137                unordered_set\
138                utility\
139                valarray\
140                vector
141
142.for hdr in ${STD_HEADERS}
143STD+=           ${HDRDIR}/${hdr}
144.endfor
145STDDIR=         ${CXXINCLUDEDIR}
146
147EXT_HEADERS=    __hash\
148                hash_map\
149                hash_set
150
151.for hdr in ${EXT_HEADERS}
152EXT+=           ${HDRDIR}/ext/${hdr}
153.endfor
154EXTDIR=         ${CXXINCLUDEDIR}/ext
155
156.include <bsd.lib.mk>
157