first commit
This commit is contained in:
85
extern/STLport/5.2.1/build/Makefiles/gmake/unix/lib.mak
vendored
Normal file
85
extern/STLport/5.2.1/build/Makefiles/gmake/unix/lib.mak
vendored
Normal file
@@ -0,0 +1,85 @@
|
||||
# -*- makefile -*- Time-stamp: <06/11/02 10:37:02 ptr>
|
||||
#
|
||||
# Copyright (c) 1997-1999, 2002, 2003, 2005, 2006
|
||||
# Petr Ovtchenkov
|
||||
#
|
||||
# Portion Copyright (c) 1999-2001
|
||||
# Parallel Graphics Ltd.
|
||||
#
|
||||
# Licensed under the Academic Free License version 3.0
|
||||
#
|
||||
|
||||
DBG_SUFFIX ?= g
|
||||
STLDBG_SUFFIX ?= stl${DBG_SUFFIX}
|
||||
|
||||
# Shared libraries:
|
||||
|
||||
ifndef LIB_MOTIF
|
||||
SO_NAME := lib${LIBNAME}.$(SO)
|
||||
else
|
||||
SO_NAME := lib${LIBNAME}_${LIB_MOTIF}.${SO}
|
||||
endif
|
||||
SO_NAMEx := ${SO_NAME}.${MAJOR}
|
||||
SO_NAMExx := ${SO_NAMEx}.${MINOR}
|
||||
SO_NAMExxx := ${SO_NAMExx}.${PATCH}
|
||||
|
||||
SO_NAME_OUT := $(OUTPUT_DIR)/${SO_NAME}
|
||||
SO_NAME_OUTx := $(OUTPUT_DIR)/${SO_NAMEx}
|
||||
SO_NAME_OUTxx := $(OUTPUT_DIR)/${SO_NAMExx}
|
||||
SO_NAME_OUTxxx := $(OUTPUT_DIR)/${SO_NAMExxx}
|
||||
|
||||
ifndef LIB_MOTIF
|
||||
SO_NAME_DBG := lib${LIBNAME}${DBG_SUFFIX}.$(SO)
|
||||
else
|
||||
SO_NAME_DBG := lib${LIBNAME}${DBG_SUFFIX}_${LIB_MOTIF}.$(SO)
|
||||
endif
|
||||
SO_NAME_DBGx := ${SO_NAME_DBG}.${MAJOR}
|
||||
SO_NAME_DBGxx := ${SO_NAME_DBGx}.${MINOR}
|
||||
SO_NAME_DBGxxx := ${SO_NAME_DBGxx}.${PATCH}
|
||||
|
||||
SO_NAME_OUT_DBG := $(OUTPUT_DIR_DBG)/${SO_NAME_DBG}
|
||||
SO_NAME_OUT_DBGx := $(OUTPUT_DIR_DBG)/${SO_NAME_DBGx}
|
||||
SO_NAME_OUT_DBGxx := $(OUTPUT_DIR_DBG)/${SO_NAME_DBGxx}
|
||||
SO_NAME_OUT_DBGxxx := $(OUTPUT_DIR_DBG)/${SO_NAME_DBGxxx}
|
||||
|
||||
ifndef WITHOUT_STLPORT
|
||||
ifndef LIB_MOTIF
|
||||
SO_NAME_STLDBG := lib${LIBNAME}${STLDBG_SUFFIX}.$(SO)
|
||||
else
|
||||
SO_NAME_STLDBG := lib${LIBNAME}${STLDBG_SUFFIX}_${LIB_MOTIF}.$(SO)
|
||||
endif
|
||||
SO_NAME_STLDBGx := ${SO_NAME_STLDBG}.${MAJOR}
|
||||
SO_NAME_STLDBGxx := ${SO_NAME_STLDBGx}.${MINOR}
|
||||
SO_NAME_STLDBGxxx := ${SO_NAME_STLDBGxx}.${PATCH}
|
||||
|
||||
SO_NAME_OUT_STLDBG := $(OUTPUT_DIR_STLDBG)/${SO_NAME_STLDBG}
|
||||
SO_NAME_OUT_STLDBGx := $(OUTPUT_DIR_STLDBG)/${SO_NAME_STLDBGx}
|
||||
SO_NAME_OUT_STLDBGxx := $(OUTPUT_DIR_STLDBG)/${SO_NAME_STLDBGxx}
|
||||
SO_NAME_OUT_STLDBGxxx := $(OUTPUT_DIR_STLDBG)/${SO_NAME_STLDBGxxx}
|
||||
# WITHOUT_STLPORT
|
||||
endif
|
||||
|
||||
# Static libraries:
|
||||
|
||||
ifndef LIB_MOTIF
|
||||
A_NAME := lib${LIBNAME}.$(ARCH)
|
||||
else
|
||||
A_NAME := lib${LIBNAME}_${LIB_MOTIF}.$(ARCH)
|
||||
endif
|
||||
A_NAME_OUT := $(OUTPUT_DIR_A)/$(A_NAME)
|
||||
|
||||
ifndef LIB_MOTIF
|
||||
A_NAME_DBG := lib${LIBNAME}${DBG_SUFFIX}.$(ARCH)
|
||||
else
|
||||
A_NAME_DBG := lib${LIBNAME}${DBG_SUFFIX}_${LIB_MOTIF}.$(ARCH)
|
||||
endif
|
||||
A_NAME_OUT_DBG := $(OUTPUT_DIR_A_DBG)/$(A_NAME_DBG)
|
||||
|
||||
ifndef WITHOUT_STLPORT
|
||||
ifndef LIB_MOTIF
|
||||
A_NAME_STLDBG := lib${LIBNAME}${STLDBG_SUFFIX}.$(ARCH)
|
||||
else
|
||||
A_NAME_STLDBG := lib${LIBNAME}${STLDBG_SUFFIX}_${LIB_MOTIF}.$(ARCH)
|
||||
endif
|
||||
A_NAME_OUT_STLDBG := $(OUTPUT_DIR_A_STLDBG)/$(A_NAME_STLDBG)
|
||||
endif
|
||||
173
extern/STLport/5.2.1/build/Makefiles/gmake/unix/rules-install-so.mak
vendored
Normal file
173
extern/STLport/5.2.1/build/Makefiles/gmake/unix/rules-install-so.mak
vendored
Normal file
@@ -0,0 +1,173 @@
|
||||
# -*- makefile -*- Time-stamp: <07/12/12 01:52:19 ptr>
|
||||
#
|
||||
# Copyright (c) 1997-1999, 2002, 2003, 2005-2007
|
||||
# Petr Ovtchenkov
|
||||
#
|
||||
# Portion Copyright (c) 1999-2001
|
||||
# Parallel Graphics Ltd.
|
||||
#
|
||||
# Licensed under the Academic Free License version 3.0
|
||||
#
|
||||
|
||||
ifndef INSTALL_TAGS
|
||||
|
||||
ifndef _NO_SHARED_BUILD
|
||||
INSTALL_TAGS := install-release-shared
|
||||
else
|
||||
INSTALL_TAGS :=
|
||||
endif
|
||||
|
||||
ifdef _STATIC_BUILD
|
||||
INSTALL_TAGS += install-release-static
|
||||
endif
|
||||
|
||||
ifndef _NO_DBG_BUILD
|
||||
ifndef _NO_SHARED_BUILD
|
||||
INSTALL_TAGS += install-dbg-shared
|
||||
endif
|
||||
ifdef _STATIC_BUILD
|
||||
INSTALL_TAGS += install-dbg-static
|
||||
endif
|
||||
endif
|
||||
|
||||
ifndef _NO_STLDBG_BUILD
|
||||
ifndef WITHOUT_STLPORT
|
||||
ifndef _NO_SHARED_BUILD
|
||||
INSTALL_TAGS += install-stldbg-shared
|
||||
endif
|
||||
ifdef _STATIC_BUILD
|
||||
INSTALL_TAGS += install-stldbg-static
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
|
||||
ifndef INSTALL_STRIP_TAGS
|
||||
|
||||
ifndef _NO_SHARED_BUILD
|
||||
INSTALL_STRIP_TAGS := install-strip-shared
|
||||
else
|
||||
INSTALL_STRIP_TAGS :=
|
||||
endif
|
||||
|
||||
ifdef _STATIC_BUILD
|
||||
INSTALL_STRIP_TAGS += install-release-static
|
||||
endif
|
||||
|
||||
ifndef _NO_DBG_BUILD
|
||||
ifndef _NO_SHARED_BUILD
|
||||
INSTALL_STRIP_TAGS += install-dbg-shared
|
||||
endif
|
||||
ifdef _STATIC_BUILD
|
||||
INSTALL_STRIP_TAGS += install-dbg-static
|
||||
endif
|
||||
endif
|
||||
|
||||
ifndef _NO_STLDBG_BUILD
|
||||
ifndef WITHOUT_STLPORT
|
||||
ifndef _NO_SHARED_BUILD
|
||||
INSTALL_STRIP_TAGS += install-stldbg-shared
|
||||
endif
|
||||
ifdef _STATIC_BUILD
|
||||
INSTALL_STRIP_TAGS += install-stldbg-static
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
|
||||
PHONY += install install-strip install-headers $(INSTALL_TAGS) $(INSTALL_STRIP_TAGS)
|
||||
|
||||
install: $(INSTALL_TAGS) install-headers
|
||||
|
||||
install-strip: $(INSTALL_STRIP_TAGS) install-headers
|
||||
|
||||
# Workaround for GNU make 3.80; see comments in rules-so.mak
|
||||
define do_install_so_links
|
||||
$${INSTALL_LIB_DIR$(1)}/$${SO_NAME$(1)xxx}: $${SO_NAME_OUT$(1)xxx}
|
||||
$$(INSTALL_SO) $${SO_NAME_OUT$(1)xxx} $$(INSTALL_LIB_DIR$(1))
|
||||
@$(call do_so_links_1,$$(INSTALL_LIB_DIR$(1)),$${SO_NAME$(1)xx},$${SO_NAME$(1)xxx})
|
||||
@$(call do_so_links_1,$$(INSTALL_LIB_DIR$(1)),$${SO_NAME$(1)x},$${SO_NAME$(1)xx})
|
||||
@$(call do_so_links_1,$$(INSTALL_LIB_DIR$(1)),$${SO_NAME$(1)},$${SO_NAME$(1)x})
|
||||
endef
|
||||
|
||||
# Workaround for GNU make 3.80; see comments in rules-so.mak
|
||||
define do_install_so_links_wk
|
||||
# expand to nothing, if equal
|
||||
ifneq (${INSTALL_LIB_DIR}/${SO_NAMExxx},${INSTALL_LIB_DIR_STLDBG}/${SO_NAME_STLDBGxxx})
|
||||
# expand to nothing, if WITHOUT_STLPORT
|
||||
ifndef WITHOUT_STLPORT
|
||||
$(call do_install_so_links,$(1))
|
||||
endif
|
||||
endif
|
||||
endef
|
||||
|
||||
# Workaround for GNU make 3.80; see comments in rules-so.mak
|
||||
define do_install_so_links_wk2
|
||||
# expand to nothing, if equal
|
||||
ifneq (${INSTALL_LIB_DIR}/${SO_NAMExxx},${INSTALL_LIB_DIR_DBG}/${SO_NAME_DBGxxx})
|
||||
$(call do_install_so_links,$(1))
|
||||
endif
|
||||
endef
|
||||
|
||||
|
||||
$(eval $(call do_install_so_links,))
|
||||
# ifneq (${INSTALL_LIB_DIR}/${SO_NAMExxx},${INSTALL_LIB_DIR_DBG}/${SO_NAME_DBGxxx})
|
||||
# $(eval $(call do_install_so_links,_DBG))
|
||||
$(eval $(call do_install_so_links_wk2,_DBG))
|
||||
# endif
|
||||
# ifneq (${INSTALL_LIB_DIR}/${SO_NAMExxx},${INSTALL_LIB_DIR_STLDBG}/${SO_NAME_STLDBGxxx})
|
||||
# ifndef WITHOUT_STLPORT
|
||||
$(eval $(call do_install_so_links_wk,_STLDBG))
|
||||
# endif
|
||||
# endif
|
||||
|
||||
install-release-shared: release-shared $(INSTALL_LIB_DIR) $(INSTALL_LIB_DIR)/${SO_NAMExxx} install-headers
|
||||
${POST_INSTALL}
|
||||
|
||||
install-strip-shared: release-shared $(INSTALL_LIB_DIR) $(INSTALL_LIB_DIR)/${SO_NAMExxx} install-headers
|
||||
${STRIP} ${_SO_STRIP_OPTION} $(INSTALL_LIB_DIR)/${SO_NAMExxx}
|
||||
${POST_INSTALL}
|
||||
|
||||
install-dbg-shared: dbg-shared $(INSTALL_LIB_DIR_DBG) $(INSTALL_LIB_DIR_DBG)/${SO_NAME_DBGxxx}
|
||||
${POST_INSTALL_DBG}
|
||||
|
||||
ifndef WITHOUT_STLPORT
|
||||
install-stldbg-shared: stldbg-shared $(INSTALL_LIB_DIR_STLDBG) $(INSTALL_LIB_DIR_STLDBG)/${SO_NAME_STLDBGxxx}
|
||||
${POST_INSTALL_STLDBG}
|
||||
endif
|
||||
|
||||
define do_install_headers
|
||||
if [ ! -d $(INSTALL_HDR_DIR) ]; then \
|
||||
$(INSTALL_D) $(INSTALL_HDR_DIR) || { echo "Can't create $(INSTALL_HDR_DIR)"; exit 1; }; \
|
||||
fi; \
|
||||
for dd in $(HEADERS_BASE); do \
|
||||
d=`dirname $$dd`; \
|
||||
h=`basename $$dd`; \
|
||||
f=`cd $$d; find $$h \( -wholename "*/.svn" -prune \) -o \( -type d -print \)`; \
|
||||
for ddd in $$f; do \
|
||||
if [ ! -d $(INSTALL_HDR_DIR)/$$ddd ]; then \
|
||||
$(INSTALL_D) $(INSTALL_HDR_DIR)/$$ddd || { echo "Can't create $(INSTALL_HDR_DIR)/$$ddd"; exit 1; }; \
|
||||
fi; \
|
||||
done; \
|
||||
f=`find $$dd \( -wholename "*/.svn*" -o -name "*~" -o -name "*.bak" \) -prune -o \( -type f -print \)`; \
|
||||
for ff in $$f; do \
|
||||
h=`echo $$ff | sed -e "s|$$d|$(INSTALL_HDR_DIR)|"`; \
|
||||
$(INSTALL_F) $$ff $$h; \
|
||||
done; \
|
||||
done; \
|
||||
for f in $(HEADERS); do \
|
||||
h=`basename $$f`; \
|
||||
$(INSTALL_F) $$f $(INSTALL_HDR_DIR)/$$h || { echo "Can't install $(INSTALL_HDR_DIR)/$$h"; exit 1; }; \
|
||||
done
|
||||
endef
|
||||
|
||||
# find $$dd \( -type f \( \! \( -wholename "*/.svn*" -o -name "*~" -o -name "*.bak" \) \) \) -print
|
||||
# _HEADERS_FROM = $(shell for dd in $(HEADERS_BASE); do find $$dd \( -type f \( \! \( -wholename "*/.svn/*" -o -name "*~" -o -name "*.bak" \) \) \) -print ; done )
|
||||
# _HEADERS_TO = $(foreach d,$(HEADERS_BASE),$(patsubst $(d)/%,$(BASE_INSTALL_DIR)include/%,$(_HEADERS_FROM)))
|
||||
|
||||
install-headers:
|
||||
@$(do_install_headers)
|
||||
76
extern/STLport/5.2.1/build/Makefiles/gmake/unix/rules-so.mak
vendored
Normal file
76
extern/STLport/5.2.1/build/Makefiles/gmake/unix/rules-so.mak
vendored
Normal file
@@ -0,0 +1,76 @@
|
||||
# -*- makefile -*- Time-stamp: <06/12/12 09:43:02 ptr>
|
||||
#
|
||||
# Copyright (c) 1997-1999, 2002, 2003, 2005, 2006
|
||||
# Petr Ovtchenkov
|
||||
#
|
||||
# Portion Copyright (c) 1999-2001
|
||||
# Parallel Graphics Ltd.
|
||||
#
|
||||
# Licensed under the Academic Free License version 3.0
|
||||
#
|
||||
|
||||
# Shared libraries tags
|
||||
|
||||
PHONY += release-shared dbg-shared stldbg-shared
|
||||
|
||||
release-shared: $(EXTRA_PRE) $(OUTPUT_DIR) ${SO_NAME_OUTxxx} $(EXTRA_POST)
|
||||
|
||||
dbg-shared: $(EXTRA_PRE_DBG) $(OUTPUT_DIR_DBG) ${SO_NAME_OUT_DBGxxx} $(EXTRA_POST_DBG)
|
||||
|
||||
ifndef WITHOUT_STLPORT
|
||||
stldbg-shared: $(EXTRA_PRE_STLDBG) $(OUTPUT_DIR_STLDBG) ${SO_NAME_OUT_STLDBGxxx} $(EXTRA_POST_STLDBG)
|
||||
endif
|
||||
|
||||
define do_so_links_1
|
||||
if [ -h $(1)/$(2) ]; then \
|
||||
if [ `readlink $(1)/$(2)` != "$(3)" ]; then \
|
||||
rm $(1)/$(2); \
|
||||
ln -s $(3) $(1)/$(2); \
|
||||
fi; \
|
||||
else \
|
||||
ln -s $(3) $(1)/$(2); \
|
||||
fi;
|
||||
endef
|
||||
|
||||
# Workaround for GNU make 3.80: it fail on 'eval' within 'if'
|
||||
# directive after some level of complexity, i.e. after complex
|
||||
# rules it fails on code:
|
||||
#
|
||||
# $(eval $(call do_so_links,cc,))
|
||||
# $(eval $(call do_so_links,cc,_DBG))
|
||||
# ifndef WITHOUT_STLPORT
|
||||
# $(eval $(call do_so_links,cc,_STLDBG))
|
||||
# endif
|
||||
#
|
||||
# Put 'if' logic into defined macro looks as workaround.
|
||||
#
|
||||
# The GNU make 3.81 free from this problem, but it new...
|
||||
|
||||
define do_so_links
|
||||
$${SO_NAME_OUT$(1)xxx}: $$(OBJ$(1)) $$(LIBSDEP)
|
||||
ifeq ("${_C_SOURCES_ONLY}","")
|
||||
ifneq ($(COMPILER_NAME),bcc)
|
||||
$$(LINK.cc) $$(LINK_OUTPUT_OPTION) $${START_OBJ} $$(OBJ$(1)) $$(LDLIBS) $${STDLIBS} $${END_OBJ}
|
||||
else
|
||||
$$(LINK.cc) $${START_OBJ} $$(OBJ$(1)) $${END_OBJ}, $$(LINK_OUTPUT_OPTION), , $$(LDLIBS) $${STDLIBS}
|
||||
endif
|
||||
else
|
||||
$$(LINK.c) $$(LINK_OUTPUT_OPTION) $$(OBJ$(1)) $$(LDLIBS)
|
||||
endif
|
||||
@$(call do_so_links_1,$$(OUTPUT_DIR$(1)),$${SO_NAME$(1)xx},$${SO_NAME$(1)xxx})
|
||||
@$(call do_so_links_1,$$(OUTPUT_DIR$(1)),$${SO_NAME$(1)x},$${SO_NAME$(1)xx})
|
||||
@$(call do_so_links_1,$$(OUTPUT_DIR$(1)),$${SO_NAME$(1)},$${SO_NAME$(1)x})
|
||||
endef
|
||||
|
||||
define do_so_links_wk
|
||||
# expand to nothing, if WITHOUT_STLPORT
|
||||
ifndef WITHOUT_STLPORT
|
||||
$(call do_so_links,$(1))
|
||||
endif
|
||||
endef
|
||||
|
||||
$(eval $(call do_so_links,))
|
||||
$(eval $(call do_so_links,_DBG))
|
||||
# ifndef WITHOUT_STLPORT
|
||||
$(eval $(call do_so_links_wk,_STLDBG))
|
||||
# endif
|
||||
Reference in New Issue
Block a user