mirror of
https://github.com/darlinghq/darling-libcxx.git
synced 2024-11-23 20:09:41 +00:00
c7e4d82bc0
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@113616 91177308-0d34-0410-b5e6-96231b3b80d8
39 lines
1.0 KiB
Makefile
39 lines
1.0 KiB
Makefile
##
|
|
# libcpp Makefile
|
|
##
|
|
|
|
SRCDIRS = .
|
|
DESTDIR = $(DSTROOT)
|
|
|
|
OBJROOT=.
|
|
SYMROOT=.
|
|
export TRIPLE=-apple-
|
|
|
|
installsrc:: $(SRCROOT)
|
|
|
|
ditto $(SRCDIRS)/include $(SRCROOT)/include
|
|
ditto $(SRCDIRS)/lib $(SRCROOT)/lib
|
|
ditto $(SRCDIRS)/src $(SRCROOT)/src
|
|
ditto $(SRCDIRS)/Makefile $(SRCROOT)/Makefile
|
|
|
|
clean::
|
|
|
|
installhdrs::
|
|
|
|
mkdir -p $(DSTROOT)/usr/include/c++/v1/ext
|
|
rsync -r --exclude=".*" $(SRCDIRS)/include/* $(DSTROOT)/usr/include/c++/v1/
|
|
chown -R root:wheel $(DSTROOT)/usr/include
|
|
chmod 755 $(DSTROOT)/usr/include/c++/v1
|
|
chmod 644 $(DSTROOT)/usr/include/c++/v1/*
|
|
chmod 755 $(DSTROOT)/usr/include/c++/v1/ext
|
|
chmod 644 $(DSTROOT)/usr/include/c++/v1/ext/*
|
|
|
|
install:: installhdrs $(DESTDIR)
|
|
|
|
cd lib && ./buildit
|
|
ditto lib/libc++.1.dylib $(SYMROOT)/usr/lib/libc++.1.dylib
|
|
cd lib && dsymutil -o $(SYMROOT)/libc++.1.dylib.dSYM $(SYMROOT)/usr/lib/libc++.1.dylib
|
|
mkdir -p $(DSTROOT)/usr/lib
|
|
strip -S -o $(DSTROOT)/usr/lib/libc++.1.dylib $(SYMROOT)/usr/lib/libc++.1.dylib
|
|
cd $(DSTROOT)/usr/lib && ln -s libc++.1.dylib libc++.dylib
|