2010-05-11 19:42:16 +00:00
|
|
|
##
|
|
|
|
# libcpp Makefile
|
|
|
|
##
|
|
|
|
|
|
|
|
SRCDIRS = .
|
|
|
|
DESTDIR = $(DSTROOT)
|
|
|
|
|
|
|
|
OBJROOT=.
|
|
|
|
SYMROOT=.
|
2010-06-28 17:19:47 +00:00
|
|
|
export TRIPLE=-apple-
|
2010-05-11 19:42:16 +00:00
|
|
|
|
2011-05-24 20:27:31 +00:00
|
|
|
ifeq (,$(RC_INDIGO))
|
|
|
|
INSTALL_PREFIX=""
|
|
|
|
else
|
|
|
|
INSTALL_PREFIX="$(SDKROOT)"
|
|
|
|
endif
|
2011-11-27 05:39:58 +00:00
|
|
|
INSTALL_DIR=$(DSTROOT)/$(INSTALL_PREFIX)
|
|
|
|
|
2012-01-21 06:16:39 +00:00
|
|
|
.PHONY: help installsrc clean installheaders do-installhdrs install
|
2011-05-24 20:27:31 +00:00
|
|
|
|
2011-07-04 14:12:27 +00:00
|
|
|
help::
|
2012-06-25 23:51:05 +00:00
|
|
|
@echo "Use make install DSTROOT=<destination>"
|
2011-07-04 14:12:27 +00:00
|
|
|
|
2010-05-11 19:42:16 +00:00
|
|
|
installsrc:: $(SRCROOT)
|
|
|
|
|
|
|
|
ditto $(SRCDIRS)/include $(SRCROOT)/include
|
2010-09-10 20:42:36 +00:00
|
|
|
ditto $(SRCDIRS)/lib $(SRCROOT)/lib
|
2010-05-11 19:42:16 +00:00
|
|
|
ditto $(SRCDIRS)/src $(SRCROOT)/src
|
|
|
|
ditto $(SRCDIRS)/Makefile $(SRCROOT)/Makefile
|
|
|
|
|
|
|
|
clean::
|
|
|
|
|
2012-01-18 17:44:31 +00:00
|
|
|
installheaders:: do-installhdrs
|
|
|
|
|
2012-01-17 16:09:32 +00:00
|
|
|
install::
|
2010-05-11 19:42:16 +00:00
|
|
|
|
|
|
|
cd lib && ./buildit
|
|
|
|
ditto lib/libc++.1.dylib $(SYMROOT)/usr/lib/libc++.1.dylib
|
2011-11-27 05:39:58 +00:00
|
|
|
cd lib && dsymutil -o $(SYMROOT)/libc++.1.dylib.dSYM \
|
|
|
|
$(SYMROOT)/usr/lib/libc++.1.dylib
|
|
|
|
mkdir -p $(INSTALL_DIR)/usr/lib
|
|
|
|
strip -S -o $(INSTALL_DIR)/usr/lib/libc++.1.dylib \
|
|
|
|
$(SYMROOT)/usr/lib/libc++.1.dylib
|
|
|
|
cd $(INSTALL_DIR)/usr/lib && ln -s libc++.1.dylib libc++.dylib
|