mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Update the libc++ Makefile to be more like the other llvm and clang
Makefiles.
This commit is contained in:
parent
80779b3774
commit
3f910b9131
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/projects/clang400-import/; revision=311835
@ -3,9 +3,9 @@
|
|||||||
.include <src.opts.mk>
|
.include <src.opts.mk>
|
||||||
|
|
||||||
PACKAGE= clibs
|
PACKAGE= clibs
|
||||||
_LIBCXXRTDIR= ${.CURDIR}/../../contrib/libcxxrt
|
_LIBCXXRTDIR= ${SRCTOP}/contrib/libcxxrt
|
||||||
HDRDIR= ${.CURDIR}/../../contrib/libc++/include
|
HDRDIR= ${SRCTOP}/contrib/libc++/include
|
||||||
SRCDIR= ${.CURDIR}/../../contrib/libc++/src
|
SRCDIR= ${SRCTOP}/contrib/libc++/src
|
||||||
CXXINCLUDEDIR= ${INCLUDEDIR}/c++/v${SHLIB_MAJOR}
|
CXXINCLUDEDIR= ${INCLUDEDIR}/c++/v${SHLIB_MAJOR}
|
||||||
.if ${MACHINE_CPUARCH} == "arm"
|
.if ${MACHINE_CPUARCH} == "arm"
|
||||||
STATIC_CXXFLAGS+= -mlong-calls
|
STATIC_CXXFLAGS+= -mlong-calls
|
||||||
@ -17,43 +17,43 @@ LIB= c++
|
|||||||
SHLIB_MAJOR= 1
|
SHLIB_MAJOR= 1
|
||||||
SHLIB_LDSCRIPT= libc++.ldscript
|
SHLIB_LDSCRIPT= libc++.ldscript
|
||||||
|
|
||||||
SRCS+= algorithm.cpp\
|
SRCS+= algorithm.cpp
|
||||||
any.cpp\
|
SRCS+= any.cpp
|
||||||
bind.cpp\
|
SRCS+= bind.cpp
|
||||||
chrono.cpp\
|
SRCS+= chrono.cpp
|
||||||
condition_variable.cpp\
|
SRCS+= condition_variable.cpp
|
||||||
debug.cpp\
|
SRCS+= debug.cpp
|
||||||
exception.cpp\
|
SRCS+= exception.cpp
|
||||||
future.cpp\
|
SRCS+= future.cpp
|
||||||
hash.cpp\
|
SRCS+= hash.cpp
|
||||||
ios.cpp\
|
SRCS+= ios.cpp
|
||||||
iostream.cpp\
|
SRCS+= iostream.cpp
|
||||||
locale.cpp\
|
SRCS+= locale.cpp
|
||||||
memory.cpp\
|
SRCS+= memory.cpp
|
||||||
mutex.cpp\
|
SRCS+= mutex.cpp
|
||||||
new.cpp\
|
SRCS+= new.cpp
|
||||||
optional.cpp\
|
SRCS+= optional.cpp
|
||||||
random.cpp\
|
SRCS+= random.cpp
|
||||||
regex.cpp\
|
SRCS+= regex.cpp
|
||||||
shared_mutex.cpp\
|
SRCS+= shared_mutex.cpp
|
||||||
stdexcept.cpp\
|
SRCS+= stdexcept.cpp
|
||||||
string.cpp\
|
SRCS+= string.cpp
|
||||||
strstream.cpp\
|
SRCS+= strstream.cpp
|
||||||
system_error.cpp\
|
SRCS+= system_error.cpp
|
||||||
thread.cpp\
|
SRCS+= thread.cpp
|
||||||
typeinfo.cpp\
|
SRCS+= typeinfo.cpp
|
||||||
utility.cpp\
|
SRCS+= utility.cpp
|
||||||
valarray.cpp
|
SRCS+= valarray.cpp
|
||||||
|
|
||||||
CXXRT_SRCS+= libelftc_dem_gnu3.c\
|
CXXRT_SRCS+= auxhelper.cc
|
||||||
terminate.cc\
|
CXXRT_SRCS+= dynamic_cast.cc
|
||||||
dynamic_cast.cc\
|
CXXRT_SRCS+= exception.cc
|
||||||
memory.cc\
|
CXXRT_SRCS+= guard.cc
|
||||||
auxhelper.cc\
|
CXXRT_SRCS+= libelftc_dem_gnu3.c
|
||||||
exception.cc\
|
CXXRT_SRCS+= memory.cc
|
||||||
stdexcept.cc\
|
CXXRT_SRCS+= stdexcept.cc
|
||||||
typeinfo.cc\
|
CXXRT_SRCS+= terminate.cc
|
||||||
guard.cc
|
CXXRT_SRCS+= typeinfo.cc
|
||||||
|
|
||||||
.for _S in ${CXXRT_SRCS}
|
.for _S in ${CXXRT_SRCS}
|
||||||
CLEANFILES+= cxxrt_${_S}
|
CLEANFILES+= cxxrt_${_S}
|
||||||
@ -71,132 +71,133 @@ CXXFLAGS+= -std=c++11
|
|||||||
LIBADD+= cxxrt
|
LIBADD+= cxxrt
|
||||||
INCSGROUPS= STD EXP EXT
|
INCSGROUPS= STD EXP EXT
|
||||||
|
|
||||||
STD_HEADERS= __bit_reference\
|
STD_HEADERS+= __bit_reference
|
||||||
__bsd_locale_defaults.h\
|
STD_HEADERS+= __bsd_locale_defaults.h
|
||||||
__bsd_locale_fallbacks.h\
|
STD_HEADERS+= __bsd_locale_fallbacks.h
|
||||||
__config\
|
STD_HEADERS+= __config
|
||||||
__debug\
|
STD_HEADERS+= __debug
|
||||||
__functional_03\
|
STD_HEADERS+= __functional_03
|
||||||
__functional_base\
|
STD_HEADERS+= __functional_base
|
||||||
__functional_base_03\
|
STD_HEADERS+= __functional_base_03
|
||||||
__hash_table\
|
STD_HEADERS+= __hash_table
|
||||||
__libcpp_version\
|
STD_HEADERS+= __libcpp_version
|
||||||
__locale\
|
STD_HEADERS+= __locale
|
||||||
__mutex_base\
|
STD_HEADERS+= __mutex_base
|
||||||
__nullptr\
|
STD_HEADERS+= __nullptr
|
||||||
__refstring\
|
STD_HEADERS+= __refstring
|
||||||
__split_buffer\
|
STD_HEADERS+= __split_buffer
|
||||||
__sso_allocator\
|
STD_HEADERS+= __sso_allocator
|
||||||
__std_stream\
|
STD_HEADERS+= __std_stream
|
||||||
__string\
|
STD_HEADERS+= __string
|
||||||
__threading_support\
|
STD_HEADERS+= __threading_support
|
||||||
__tree\
|
STD_HEADERS+= __tree
|
||||||
__tuple\
|
STD_HEADERS+= __tuple
|
||||||
__undef_min_max\
|
STD_HEADERS+= __undef_min_max
|
||||||
algorithm\
|
STD_HEADERS+= algorithm
|
||||||
any\
|
STD_HEADERS+= any
|
||||||
array\
|
STD_HEADERS+= array
|
||||||
atomic\
|
STD_HEADERS+= atomic
|
||||||
bitset\
|
STD_HEADERS+= bitset
|
||||||
cassert\
|
STD_HEADERS+= cassert
|
||||||
ccomplex\
|
STD_HEADERS+= ccomplex
|
||||||
cctype\
|
STD_HEADERS+= cctype
|
||||||
cerrno\
|
STD_HEADERS+= cerrno
|
||||||
cfenv\
|
STD_HEADERS+= cfenv
|
||||||
cfloat\
|
STD_HEADERS+= cfloat
|
||||||
chrono\
|
STD_HEADERS+= chrono
|
||||||
cinttypes\
|
STD_HEADERS+= cinttypes
|
||||||
ciso646\
|
STD_HEADERS+= ciso646
|
||||||
climits\
|
STD_HEADERS+= climits
|
||||||
clocale\
|
STD_HEADERS+= clocale
|
||||||
cmath\
|
STD_HEADERS+= cmath
|
||||||
codecvt\
|
STD_HEADERS+= codecvt
|
||||||
complex\
|
STD_HEADERS+= complex
|
||||||
complex.h\
|
STD_HEADERS+= complex.h
|
||||||
condition_variable\
|
STD_HEADERS+= condition_variable
|
||||||
csetjmp\
|
STD_HEADERS+= csetjmp
|
||||||
csignal\
|
STD_HEADERS+= csignal
|
||||||
cstdarg\
|
STD_HEADERS+= cstdarg
|
||||||
cstdbool\
|
STD_HEADERS+= cstdbool
|
||||||
cstddef\
|
STD_HEADERS+= cstddef
|
||||||
cstdint\
|
STD_HEADERS+= cstdint
|
||||||
cstdio\
|
STD_HEADERS+= cstdio
|
||||||
cstdlib\
|
STD_HEADERS+= cstdlib
|
||||||
cstring\
|
STD_HEADERS+= cstring
|
||||||
ctgmath\
|
STD_HEADERS+= ctgmath
|
||||||
ctime\
|
STD_HEADERS+= ctime
|
||||||
ctype.h\
|
STD_HEADERS+= ctype.h
|
||||||
cwchar\
|
STD_HEADERS+= cwchar
|
||||||
cwctype\
|
STD_HEADERS+= cwctype
|
||||||
deque\
|
STD_HEADERS+= deque
|
||||||
errno.h\
|
STD_HEADERS+= errno.h
|
||||||
exception\
|
STD_HEADERS+= exception
|
||||||
float.h\
|
STD_HEADERS+= float.h
|
||||||
forward_list\
|
STD_HEADERS+= forward_list
|
||||||
fstream\
|
STD_HEADERS+= fstream
|
||||||
functional\
|
STD_HEADERS+= functional
|
||||||
future\
|
STD_HEADERS+= future
|
||||||
initializer_list\
|
STD_HEADERS+= initializer_list
|
||||||
inttypes.h\
|
STD_HEADERS+= inttypes.h
|
||||||
iomanip\
|
STD_HEADERS+= iomanip
|
||||||
ios\
|
STD_HEADERS+= ios
|
||||||
iosfwd\
|
STD_HEADERS+= iosfwd
|
||||||
iostream\
|
STD_HEADERS+= iostream
|
||||||
istream\
|
STD_HEADERS+= istream
|
||||||
iterator\
|
STD_HEADERS+= iterator
|
||||||
limits\
|
STD_HEADERS+= limits
|
||||||
limits.h\
|
STD_HEADERS+= limits.h
|
||||||
list\
|
STD_HEADERS+= list
|
||||||
locale\
|
STD_HEADERS+= locale
|
||||||
locale.h\
|
STD_HEADERS+= locale.h
|
||||||
map\
|
STD_HEADERS+= map
|
||||||
math.h\
|
STD_HEADERS+= math.h
|
||||||
memory\
|
STD_HEADERS+= memory
|
||||||
mutex\
|
STD_HEADERS+= mutex
|
||||||
new\
|
STD_HEADERS+= new
|
||||||
numeric\
|
STD_HEADERS+= numeric
|
||||||
optional\
|
STD_HEADERS+= optional
|
||||||
ostream\
|
STD_HEADERS+= ostream
|
||||||
queue\
|
STD_HEADERS+= queue
|
||||||
random\
|
STD_HEADERS+= random
|
||||||
ratio\
|
STD_HEADERS+= ratio
|
||||||
regex\
|
STD_HEADERS+= regex
|
||||||
scoped_allocator\
|
STD_HEADERS+= scoped_allocator
|
||||||
set\
|
STD_HEADERS+= set
|
||||||
setjmp.h\
|
STD_HEADERS+= setjmp.h
|
||||||
shared_mutex\
|
STD_HEADERS+= shared_mutex
|
||||||
sstream\
|
STD_HEADERS+= sstream
|
||||||
stack\
|
STD_HEADERS+= stack
|
||||||
stdbool.h\
|
STD_HEADERS+= stdbool.h
|
||||||
stddef.h\
|
STD_HEADERS+= stddef.h
|
||||||
stdexcept\
|
STD_HEADERS+= stdexcept
|
||||||
stdint.h\
|
STD_HEADERS+= stdint.h
|
||||||
stdio.h\
|
STD_HEADERS+= stdio.h
|
||||||
stdlib.h\
|
STD_HEADERS+= stdlib.h
|
||||||
streambuf\
|
STD_HEADERS+= streambuf
|
||||||
string\
|
STD_HEADERS+= string
|
||||||
string.h\
|
STD_HEADERS+= string.h
|
||||||
string_view\
|
STD_HEADERS+= string_view
|
||||||
strstream\
|
STD_HEADERS+= strstream
|
||||||
system_error\
|
STD_HEADERS+= system_error
|
||||||
tgmath.h\
|
STD_HEADERS+= tgmath.h
|
||||||
thread\
|
STD_HEADERS+= thread
|
||||||
tuple\
|
STD_HEADERS+= tuple
|
||||||
type_traits\
|
STD_HEADERS+= type_traits
|
||||||
typeindex\
|
STD_HEADERS+= typeindex
|
||||||
typeinfo\
|
STD_HEADERS+= typeinfo
|
||||||
unordered_map\
|
STD_HEADERS+= unordered_map
|
||||||
unordered_set\
|
STD_HEADERS+= unordered_set
|
||||||
utility\
|
STD_HEADERS+= utility
|
||||||
valarray\
|
STD_HEADERS+= valarray
|
||||||
variant\
|
STD_HEADERS+= variant
|
||||||
vector\
|
STD_HEADERS+= vector
|
||||||
wchar.h\
|
STD_HEADERS+= wchar.h
|
||||||
wctype.h
|
STD_HEADERS+= wctype.h
|
||||||
RT_HEADERS= cxxabi.h\
|
|
||||||
unwind.h\
|
RT_HEADERS+= cxxabi.h
|
||||||
unwind-arm.h\
|
RT_HEADERS+= unwind-arm.h
|
||||||
unwind-itanium.h
|
RT_HEADERS+= unwind-itanium.h
|
||||||
|
RT_HEADERS+= unwind.h
|
||||||
|
|
||||||
.for hdr in ${STD_HEADERS}
|
.for hdr in ${STD_HEADERS}
|
||||||
STD+= ${HDRDIR}/${hdr}
|
STD+= ${HDRDIR}/${hdr}
|
||||||
@ -207,44 +208,44 @@ STD+= ${_LIBCXXRTDIR}/${hdr}
|
|||||||
.endfor
|
.endfor
|
||||||
STDDIR= ${CXXINCLUDEDIR}
|
STDDIR= ${CXXINCLUDEDIR}
|
||||||
|
|
||||||
EXP_HEADERS= __config\
|
EXP_HEADERS+= __config
|
||||||
__memory\
|
EXP_HEADERS+= __memory
|
||||||
algorithm\
|
EXP_HEADERS+= algorithm
|
||||||
any\
|
EXP_HEADERS+= any
|
||||||
chrono\
|
EXP_HEADERS+= chrono
|
||||||
deque\
|
EXP_HEADERS+= deque
|
||||||
dynarray\
|
EXP_HEADERS+= dynarray
|
||||||
filesystem\
|
EXP_HEADERS+= filesystem
|
||||||
forward_list\
|
EXP_HEADERS+= forward_list
|
||||||
functional\
|
EXP_HEADERS+= functional
|
||||||
iterator\
|
EXP_HEADERS+= iterator
|
||||||
list\
|
EXP_HEADERS+= list
|
||||||
map\
|
EXP_HEADERS+= map
|
||||||
memory_resource\
|
EXP_HEADERS+= memory_resource
|
||||||
numeric\
|
EXP_HEADERS+= numeric
|
||||||
optional\
|
EXP_HEADERS+= optional
|
||||||
propagate_const\
|
EXP_HEADERS+= propagate_const
|
||||||
ratio\
|
EXP_HEADERS+= ratio
|
||||||
regex\
|
EXP_HEADERS+= regex
|
||||||
set\
|
EXP_HEADERS+= set
|
||||||
string\
|
EXP_HEADERS+= string
|
||||||
string_view\
|
EXP_HEADERS+= string_view
|
||||||
system_error\
|
EXP_HEADERS+= system_error
|
||||||
tuple\
|
EXP_HEADERS+= tuple
|
||||||
type_traits\
|
EXP_HEADERS+= type_traits
|
||||||
unordered_map\
|
EXP_HEADERS+= unordered_map
|
||||||
unordered_set\
|
EXP_HEADERS+= unordered_set
|
||||||
utility\
|
EXP_HEADERS+= utility
|
||||||
vector
|
EXP_HEADERS+= vector
|
||||||
|
|
||||||
.for hdr in ${EXP_HEADERS}
|
.for hdr in ${EXP_HEADERS}
|
||||||
EXP+= ${HDRDIR}/experimental/${hdr}
|
EXP+= ${HDRDIR}/experimental/${hdr}
|
||||||
.endfor
|
.endfor
|
||||||
EXPDIR= ${CXXINCLUDEDIR}/experimental
|
EXPDIR= ${CXXINCLUDEDIR}/experimental
|
||||||
|
|
||||||
EXT_HEADERS= __hash\
|
EXT_HEADERS+= __hash
|
||||||
hash_map\
|
EXT_HEADERS+= hash_map
|
||||||
hash_set
|
EXT_HEADERS+= hash_set
|
||||||
|
|
||||||
.for hdr in ${EXT_HEADERS}
|
.for hdr in ${EXT_HEADERS}
|
||||||
EXT+= ${HDRDIR}/ext/${hdr}
|
EXT+= ${HDRDIR}/ext/${hdr}
|
||||||
|
Loading…
Reference in New Issue
Block a user