first commit
This commit is contained in:
10
extern/STLport/5.2.1/build/Makefiles/gmake/app/CC.mak
vendored
Normal file
10
extern/STLport/5.2.1/build/Makefiles/gmake/app/CC.mak
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
# -*- Makefile -*- Time-stamp: <07/03/08 21:53:08 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
|
||||
#
|
||||
10
extern/STLport/5.2.1/build/Makefiles/gmake/app/aCC.mak
vendored
Normal file
10
extern/STLport/5.2.1/build/Makefiles/gmake/app/aCC.mak
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
# -*- Makefile -*- Time-stamp: <07/03/08 21:55:22 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
|
||||
#
|
||||
98
extern/STLport/5.2.1/build/Makefiles/gmake/app/bcc.mak
vendored
Normal file
98
extern/STLport/5.2.1/build/Makefiles/gmake/app/bcc.mak
vendored
Normal file
@@ -0,0 +1,98 @@
|
||||
# -*- Makefile -*- Time-stamp: <07/05/31 01:05:40 ptr>
|
||||
#
|
||||
# Copyright (c) 1997-1999, 2002, 2003, 2005-2007
|
||||
# Petr Ovtchenkov
|
||||
#
|
||||
# Copyright (c) 2006, 2007
|
||||
# Francois Dumont
|
||||
#
|
||||
# Portion Copyright (c) 1999-2001
|
||||
# Parallel Graphics Ltd.
|
||||
#
|
||||
# Licensed under the Academic Free License version 3.0
|
||||
#
|
||||
|
||||
ifneq ($(OSNAME),linux)
|
||||
|
||||
OPT += -tWC -w-par
|
||||
|
||||
LDFLAGS += -Tpe -w -w-dup
|
||||
|
||||
START_OBJ = c0x32.obj
|
||||
|
||||
LDFLAGS += -L$(subst /,\\,$(STLPORT_DIR)/lib)
|
||||
|
||||
ifdef WITH_DYNAMIC_RTL
|
||||
release-static: DEFS += -D_STLP_USE_STATIC_LIB
|
||||
dbg-static: DEFS += -D_STLP_USE_STATIC_LIB
|
||||
stldbg-static: DEFS += -D_STLP_USE_STATIC_LIB
|
||||
endif
|
||||
|
||||
ifdef WITH_STATIC_RTL
|
||||
release-shared: DEFS += -D_STLP_USE_DYNAMIC_LIB
|
||||
dbg-shared: DEFS += -D_STLP_USE_DYNAMIC_LIB
|
||||
stldbg-shared: DEFS += -D_STLP_USE_DYNAMIC_LIB
|
||||
endif
|
||||
|
||||
else
|
||||
|
||||
OPT += -tC
|
||||
|
||||
LDFLAGS += -ap
|
||||
|
||||
START_OBJ = borinit.o crt1.o
|
||||
|
||||
endif
|
||||
|
||||
ifdef USE_BCC_DBG_OPTS
|
||||
|
||||
# optimization and debug compiler flags
|
||||
|
||||
dbg-static : OPT += -R -v -y
|
||||
dbg-shared : OPT += -R -v -y
|
||||
stldbg-static : OPT += -R -v -y
|
||||
stldbg-shared : OPT += -R -v -y
|
||||
|
||||
dbg-shared : LDFLAGS += -v
|
||||
dbg-static : LDFLAGS += -v
|
||||
stldbg-shared : LDFLAGS += -v
|
||||
stldbg-static : LDFLAGS += -v
|
||||
|
||||
install-dbg-shared: install-dbg-shared-tds
|
||||
install-stldbg-shared: install-stldbg-shared-tds
|
||||
|
||||
install-dbg-static: install-dbg-static-tds
|
||||
install-stldbg-static: install-stldbg-static-tds
|
||||
|
||||
install-dbg-shared-tds:
|
||||
$(INSTALL_EXE) $(OUTPUT_DIR_DBG)/${PRGNAME}.tds $(INSTALL_BIN_DIR_DBG)/${PRGNAME}.tds
|
||||
|
||||
install-stldbg-shared-tds:
|
||||
$(INSTALL_EXE) $(OUTPUT_DIR_STLDBG)/${PRGNAME}.tds $(INSTALL_BIN_DIR_STLDBG)/${PRGNAME}.tds
|
||||
|
||||
install-dbg-static-tds:
|
||||
$(INSTALL_EXE) $(OUTPUT_DIR_DBG)/${PRGNAME}.tds $(INSTALL_BIN_DIR_DBG)/${PRGNAME}.tds
|
||||
|
||||
install-stldbg-static-tds:
|
||||
$(INSTALL_EXE) $(OUTPUT_DIR_STLDBG)/${PRGNAME}.tds $(INSTALL_BIN_DIR_STLDBG)/${PRGNAME}.tds
|
||||
|
||||
else
|
||||
|
||||
dbg-shared : OPT += -vi-
|
||||
dbg-static : OPT += -vi-
|
||||
stldbg-shared : OPT += -vi-
|
||||
stldbg-static : OPT += -vi-
|
||||
|
||||
endif
|
||||
|
||||
PRG_FILES := ${PRGNAME}${EXE} ${PRGNAME}.tds ${PRGNAME}.map
|
||||
TMP_FILES := test.txt test_file.txt win32_file_format.tmp
|
||||
|
||||
clean::
|
||||
$(foreach d, $(OUTPUT_DIRS), $(foreach f, $(PRG_FILES), @rm -f $(d)/$(f)))
|
||||
|
||||
uninstall::
|
||||
$(foreach d, $(INSTALL_DIRS), $(foreach f, $(PRG_FILES), @rm -f $(d)/$(f)))
|
||||
$(foreach d, $(INSTALL_DIRS), $(foreach f, $(TMP_FILES), @rm -f $(d)/$(f)))
|
||||
$(foreach d, $(INSTALL_DIRS), @-rmdir -p $(d) 2>/dev/null)
|
||||
|
||||
67
extern/STLport/5.2.1/build/Makefiles/gmake/app/dmc.mak
vendored
Normal file
67
extern/STLport/5.2.1/build/Makefiles/gmake/app/dmc.mak
vendored
Normal file
@@ -0,0 +1,67 @@
|
||||
# -*- Makefile -*- Time-stamp: <07/05/31 01:05:57 ptr>
|
||||
#
|
||||
# Copyright (c) 1997-1999, 2002, 2003, 2005-2007
|
||||
# Petr Ovtchenkov
|
||||
#
|
||||
# Copyright (c) 2006, 2007
|
||||
# Francois Dumont
|
||||
#
|
||||
# Portion Copyright (c) 1999-2001
|
||||
# Parallel Graphics Ltd.
|
||||
#
|
||||
# Licensed under the Academic Free License version 3.0
|
||||
#
|
||||
|
||||
CXXFLAGS += -w6 -w7 -w18
|
||||
|
||||
stldbg-shared : CXXFLAGS += -HP50
|
||||
stldbg-static : CXXFLAGS += -HP50
|
||||
|
||||
OPT += -WA
|
||||
|
||||
release-shared : LDFLAGS += /DELEXECUTABLE
|
||||
release-static : LDFLAGS += /DELEXECUTABLE
|
||||
dbg-shared : LDFLAGS += /DELEXECUTABLE/CODEVIEW/NOCVPACK
|
||||
dbg-static : LDFLAGS += /DELEXECUTABLE/CODEVIEW/NOCVPACK
|
||||
stldbg-shared : LDFLAGS += /DELEXECUTABLE/CODEVIEW/NOCVPACK
|
||||
stldbg-static : LDFLAGS += /DELEXECUTABLE/CODEVIEW/NOCVPACK
|
||||
|
||||
# workaround for stl/config/_auto_link.h
|
||||
STL_LIBNAME = stlport
|
||||
DBG_SUFFIX := d
|
||||
STLDBG_SUFFIX := stld
|
||||
|
||||
ifdef LIB_MOTIF
|
||||
LIB_SUFFIX := _$(LIB_MOTIF).${LIBMAJOR}.${LIBMINOR}
|
||||
else
|
||||
LIB_SUFFIX := .${LIBMAJOR}.${LIBMINOR}
|
||||
endif
|
||||
|
||||
# Shared libraries:
|
||||
ifdef WITH_STATIC_RTL
|
||||
LIB_TYPE := _x
|
||||
else
|
||||
LIB_TYPE :=
|
||||
endif
|
||||
|
||||
LIB_NAME := $(LIB_PREFIX)${STL_LIBNAME}${LIB_TYPE}${LIB_SUFFIX}.$(LIB)
|
||||
LIB_NAME_DBG := $(LIB_PREFIX)${STL_LIBNAME}${DBG_SUFFIX}${LIB_TYPE}${LIB_SUFFIX}.$(LIB)
|
||||
LIB_NAME_STLDBG := $(LIB_PREFIX)${STL_LIBNAME}${STLDBG_SUFFIX}${LIB_TYPE}${LIB_SUFFIX}.$(LIB)
|
||||
|
||||
# Static libraries:
|
||||
ifdef WITH_DYNAMIC_RTL
|
||||
A_LIB_TYPE := _statix
|
||||
else
|
||||
A_LIB_TYPE := _static
|
||||
endif
|
||||
|
||||
A_NAME := $(LIB_PREFIX)${STL_LIBNAME}${A_LIB_TYPE}${LIB_SUFFIX}.$(ARCH)
|
||||
A_NAME_DBG := $(LIB_PREFIX)${STL_LIBNAME}${DBG_SUFFIX}${A_LIB_TYPE}${LIB_SUFFIX}.${ARCH}
|
||||
A_NAME_STLDBG := ${LIB_PREFIX}${STL_LIBNAME}${STLDBG_SUFFIX}${A_LIB_TYPE}${LIB_SUFFIX}.${ARCH}
|
||||
|
||||
release-shared : LDLIBS += $(STLPORT_DIR)/lib/$(LIB_NAME)
|
||||
dbg-shared : LDLIBS += $(STLPORT_DIR)/lib/$(LIB_NAME_DBG)
|
||||
stldbg-shared : LDLIBS += $(STLPORT_DIR)/lib/$(LIB_NAME_STLDBG)
|
||||
release-static : LDLIBS += $(STLPORT_DIR)/lib/$(A_NAME)
|
||||
dbg-static : LDLIBS += $(STLPORT_DIR)/lib/$(A_NAME_DBG)
|
||||
stldbg-static : LDLIBS += $(STLPORT_DIR)/lib/$(A_NAME_STLDBG)
|
||||
230
extern/STLport/5.2.1/build/Makefiles/gmake/app/gcc.mak
vendored
Normal file
230
extern/STLport/5.2.1/build/Makefiles/gmake/app/gcc.mak
vendored
Normal file
@@ -0,0 +1,230 @@
|
||||
# -*- Makefile -*- Time-stamp: <08/06/12 16:03:31 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 NOT_USE_NOSTDLIB
|
||||
|
||||
ifeq ($(CXX_VERSION_MAJOR),2)
|
||||
# i.e. gcc before 3.x.x: 2.95, etc.
|
||||
# gcc before 3.x don't had libsupc++.a and libgcc_s.so
|
||||
# exceptions and operators new are in libgcc.a
|
||||
# Unfortunatly gcc before 3.x has a buggy C++ language support outside stdc++, so definition of STDLIB below is commented
|
||||
NOT_USE_NOSTDLIB := 1
|
||||
#STDLIBS := $(shell ${CXX} -print-file-name=libgcc.a) -lpthread -lc -lm
|
||||
endif
|
||||
|
||||
ifeq ($(CXX_VERSION_MAJOR),3)
|
||||
# gcc before 3.3 (i.e. 3.0.x, 3.1.x, 3.2.x) has buggy libsupc++, so we should link with libstdc++ to avoid one
|
||||
ifeq ($(CXX_VERSION_MINOR),0)
|
||||
NOT_USE_NOSTDLIB := 1
|
||||
endif
|
||||
ifeq ($(CXX_VERSION_MINOR),1)
|
||||
NOT_USE_NOSTDLIB := 1
|
||||
endif
|
||||
ifeq ($(CXX_VERSION_MINOR),2)
|
||||
NOT_USE_NOSTDLIB := 1
|
||||
endif
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
ifndef NOT_USE_NOSTDLIB
|
||||
ifeq ($(OSNAME),linux)
|
||||
_USE_NOSTDLIB := 1
|
||||
endif
|
||||
|
||||
ifeq ($(OSNAME),openbsd)
|
||||
_USE_NOSTDLIB := 1
|
||||
endif
|
||||
|
||||
ifeq ($(OSNAME),freebsd)
|
||||
_USE_NOSTDLIB := 1
|
||||
endif
|
||||
|
||||
ifeq ($(OSNAME),netbsd)
|
||||
_USE_NOSTDLIB := 1
|
||||
endif
|
||||
|
||||
ifeq ($(OSNAME),sunos)
|
||||
_USE_NOSTDLIB := 1
|
||||
endif
|
||||
|
||||
ifeq ($(OSNAME),darwin)
|
||||
_USE_NOSTDLIB := 1
|
||||
endif
|
||||
|
||||
ifeq ($(OSNAME),cygming)
|
||||
_USE_NOSTDLIB := 1
|
||||
endif
|
||||
endif
|
||||
|
||||
ifndef WITHOUT_STLPORT
|
||||
ifeq (${STLPORT_LIB_DIR},)
|
||||
ifneq ($(OSNAME),cygming)
|
||||
release-shared: STLPORT_LIB = -lstlport
|
||||
release-static: STLPORT_LIB = -Wl,-Bstatic -lstlport -Wl,-Bdynamic
|
||||
dbg-shared: STLPORT_LIB = -lstlportg
|
||||
dbg-static: STLPORT_LIB = -Wl,-Bstatic -lstlportg -Wl,-Bdynamic
|
||||
stldbg-shared: STLPORT_LIB = -lstlportstlg
|
||||
stldbg-static: STLPORT_LIB = -Wl,-Bstatic -lstlportstlg -Wl,-Bdynamic
|
||||
else
|
||||
LIB_VERSION = ${LIBMAJOR}.${LIBMINOR}
|
||||
release-shared : STLPORT_LIB = -lstlport.${LIB_VERSION}
|
||||
dbg-shared : STLPORT_LIB = -lstlportg.${LIB_VERSION}
|
||||
stldbg-shared : STLPORT_LIB = -lstlportstlg.${LIB_VERSION}
|
||||
endif
|
||||
else
|
||||
# STLPORT_LIB_DIR not empty
|
||||
ifneq ($(OSNAME),cygming)
|
||||
release-shared: STLPORT_LIB = -L${STLPORT_LIB_DIR} -lstlport
|
||||
release-static: STLPORT_LIB = -L${STLPORT_LIB_DIR} -Wl,-Bstatic -lstlport -Wl,-Bdynamic
|
||||
dbg-shared: STLPORT_LIB = -L${STLPORT_LIB_DIR} -lstlportg
|
||||
dbg-static: STLPORT_LIB = -L${STLPORT_LIB_DIR} -Wl,-Bstatic -lstlportg -Wl,-Bdynamic
|
||||
stldbg-shared: STLPORT_LIB = -L${STLPORT_LIB_DIR} -lstlportstlg
|
||||
stldbg-static: STLPORT_LIB = -L${STLPORT_LIB_DIR} -Wl,-Bstatic -lstlportstlg -Wl,-Bdynamic
|
||||
else
|
||||
LIB_VERSION = ${LIBMAJOR}.${LIBMINOR}
|
||||
release-shared : STLPORT_LIB = -L${BASE_INSTALL_DIR}/lib -lstlport.${LIB_VERSION}
|
||||
dbg-shared : STLPORT_LIB = -L${BASE_INSTALL_DIR}/lib -lstlportg.${LIB_VERSION}
|
||||
stldbg-shared : STLPORT_LIB = -L${BASE_INSTALL_DIR}/lib -lstlportstlg.${LIB_VERSION}
|
||||
endif
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
ifdef _USE_NOSTDLIB
|
||||
|
||||
# Check whether gcc builded with --disable-shared
|
||||
ifeq ($(shell ${CXX} ${CXXFLAGS} -print-file-name=libgcc_eh.a),libgcc_eh.a)
|
||||
# gcc builded with --disable-shared, (no library libgcc_eh.a); all exception support in libgcc.a
|
||||
_LGCC_EH :=
|
||||
_LGCC_S := -lgcc
|
||||
else
|
||||
# gcc builded with --enable-shared (default)
|
||||
ifdef USE_STATIC_LIBGCC
|
||||
# if force usage of static libgcc, then exceptions support should be taken from libgcc_eh
|
||||
_LGCC_EH := -lgcc_eh
|
||||
_LGCC_S := -lgcc
|
||||
else
|
||||
# otherwise, exceptions support is in libgcc_s.so
|
||||
_LGCC_EH :=
|
||||
ifneq ($(OSNAME),darwin)
|
||||
_LGCC_S := -lgcc_s
|
||||
else
|
||||
ifdef GCC_APPLE_CC
|
||||
ifeq ($(MACOSX_TEN_FIVE),true)
|
||||
_LGCC_S := -lgcc_s.10.5
|
||||
else
|
||||
_LGCC_S := -lgcc_s.10.4
|
||||
endif
|
||||
else
|
||||
_LGCC_S := -lgcc_s
|
||||
# end of GCC_APPLE_CC
|
||||
endif
|
||||
# end of Darwin
|
||||
endif
|
||||
# end of !USE_STATIC_LIBGCC
|
||||
endif
|
||||
# end of present libgcc_eh.a
|
||||
endif
|
||||
|
||||
# ifeq ($(CXX_VERSION_MAJOR),3)
|
||||
ifeq ($(OSNAME),linux)
|
||||
START_OBJ := $(shell for o in crt1.o crti.o crtbegin.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)
|
||||
END_OBJ := $(shell for o in crtend.o crtn.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)
|
||||
STDLIBS = ${STLPORT_LIB} ${_LGCC_S} -lpthread -lc -lm
|
||||
endif
|
||||
|
||||
ifeq ($(OSNAME),openbsd)
|
||||
START_OBJ := $(shell for o in crt0.o crtbegin.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)
|
||||
END_OBJ := $(shell for o in crtend.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)
|
||||
STDLIBS = ${STLPORT_LIB} ${_LGCC_S} -lpthread -lc -lm
|
||||
endif
|
||||
|
||||
ifeq ($(OSNAME),freebsd)
|
||||
# FreeBSD < 5.3 should use -lc_r, while FreeBSD >= 5.3 use -lpthread
|
||||
PTHR := $(shell if [ ${OSREL_MAJOR} -gt 5 ] ; then echo "pthread" ; else if [ ${OSREL_MAJOR} -lt 5 ] ; then echo "c_r" ; else if [ ${OSREL_MINOR} -lt 3 ] ; then echo "c_r" ; else echo "pthread"; fi ; fi ; fi)
|
||||
START_OBJ := $(shell for o in crt1.o crti.o crtbegin.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)
|
||||
END_OBJ := $(shell for o in crtend.o crtn.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)
|
||||
STDLIBS = ${STLPORT_LIB} ${_LGCC_S} -l${PTHR} -lc -lm
|
||||
endif
|
||||
|
||||
ifeq ($(OSNAME),netbsd)
|
||||
START_OBJ := $(shell for o in crt1.o crti.o crtbegin.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)
|
||||
END_OBJ := $(shell for o in crtend.o crtn.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)
|
||||
STDLIBS = ${STLPORT_LIB} ${_LGCC_S} -lpthread -lc -lm
|
||||
endif
|
||||
|
||||
ifeq ($(OSNAME),sunos)
|
||||
START_OBJ := $(shell for o in crt1.o crti.o crtbegin.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)
|
||||
END_OBJ := $(shell for o in crtend.o crtn.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)
|
||||
STDLIBS = ${STLPORT_LIB} ${_LGCC_S} -lpthread -lc -lm
|
||||
endif
|
||||
|
||||
ifeq ($(OSNAME),darwin)
|
||||
# sometimes crt3.o will required: it has __cxa_at_exit, but the same defined in libc.dyn
|
||||
# at least in Mac OS X 10.4.10 (8R2218)
|
||||
ifeq ($(CXX_VERSION_MAJOR),3)
|
||||
# i.e. gcc 3.3
|
||||
START_OBJ := $(shell for o in crt1.o crt2.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)
|
||||
else
|
||||
START_OBJ := -lcrt1.o
|
||||
endif
|
||||
END_OBJ :=
|
||||
STDLIBS = ${STLPORT_LIB} ${_LGCC_S} -lpthread -lc -lm -lsupc++ ${_LGCC_EH}
|
||||
#LDFLAGS += -dynamic
|
||||
endif
|
||||
|
||||
ifeq ($(OSNAME),cygming)
|
||||
LDFLAGS += -nodefaultlibs
|
||||
ifndef USE_STATIC_LIBGCC
|
||||
ifeq ($(shell ${CXX} ${CXXFLAGS} -print-file-name=libgcc_s.a),libgcc_s.a)
|
||||
_LGCC_S := -lgcc
|
||||
else
|
||||
_LGCC_S := -lgcc_s
|
||||
endif
|
||||
else
|
||||
_LGCC_S := -lgcc
|
||||
endif
|
||||
ifeq ($(OSREALNAME),mingw)
|
||||
STDLIBS = ${STLPORT_LIB} -lsupc++ ${_LGCC_S} -lmingw32 -lmingwex -lmsvcrt -lm -lmoldname -lcoldname -lkernel32
|
||||
else
|
||||
LDFLAGS += -Wl,-enable-auto-import
|
||||
ifneq (,$(findstring no-cygwin,$(EXTRA_CXXFLAGS)))
|
||||
STDLIBS = ${STLPORT_LIB} ${_LGCC_S} -lmingw32 -lmingwex -lmsvcrt -lm -lmoldname -lcoldname -lkernel32
|
||||
else
|
||||
STDLIBS = ${STLPORT_LIB} ${_LGCC_S} -lm -lc -lpthread -lkernel32
|
||||
endif
|
||||
endif
|
||||
else
|
||||
LDFLAGS += -nostdlib
|
||||
endif
|
||||
|
||||
# endif
|
||||
# _USE_NOSTDLIB
|
||||
else
|
||||
ifndef USE_STATIC_LIBGCC
|
||||
release-shared : LDFLAGS += -shared-libgcc
|
||||
dbg-shared : LDFLAGS += -shared-libgcc
|
||||
stldbg-shared : LDFLAGS += -shared-libgcc
|
||||
endif
|
||||
ifndef WITHOUT_STLPORT
|
||||
STDLIBS = ${STLPORT_LIB}
|
||||
else
|
||||
STDLIBS =
|
||||
endif
|
||||
endif
|
||||
|
||||
# workaround for gcc 2.95.x bug:
|
||||
ifeq ($(CXX_VERSION_MAJOR),2)
|
||||
ifneq ($(OSNAME),cygming)
|
||||
OPT += -fPIC
|
||||
endif
|
||||
endif
|
||||
10
extern/STLport/5.2.1/build/Makefiles/gmake/app/icc.mak
vendored
Normal file
10
extern/STLport/5.2.1/build/Makefiles/gmake/app/icc.mak
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
# -*- Makefile -*- Time-stamp: <07/03/08 21:55:41 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
|
||||
#
|
||||
66
extern/STLport/5.2.1/build/Makefiles/gmake/app/rules-install.mak
vendored
Normal file
66
extern/STLport/5.2.1/build/Makefiles/gmake/app/rules-install.mak
vendored
Normal file
@@ -0,0 +1,66 @@
|
||||
# -*- makefile -*- Time-stamp: <06/12/12 09:37:04 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
|
||||
#
|
||||
|
||||
ifndef WITHOUT_STLPORT
|
||||
install: install-release-shared install-dbg-shared install-stldbg-shared
|
||||
else
|
||||
install: install-release-shared install-dbg-shared
|
||||
endif
|
||||
|
||||
INSTALL_PRGNAME_CMD =
|
||||
INSTALL_PRGNAME_CMD_DBG =
|
||||
INSTALL_PRGNAME_CMD_STLDBG =
|
||||
|
||||
define prog_install
|
||||
INSTALL_$(1)_PRGNAME := $(1)${EXE}
|
||||
INSTALL_PRGNAME_CMD += $$(INSTALL_EXE) $${$(1)_PRG} $$(INSTALL_BIN_DIR)/$${INSTALL_$(1)_PRGNAME}; \
|
||||
|
||||
INSTALL_$(1)_PRGNAME_DBG := $${INSTALL_$(1)_PRGNAME}
|
||||
INSTALL_PRGNAME_CMD_DBG += $$(INSTALL_EXE) $${$(1)_PRG_DBG} $$(INSTALL_BIN_DIR_DBG)/$${INSTALL_$(1)_PRGNAME_DBG}; \
|
||||
|
||||
ifndef WITHOUT_STLPORT
|
||||
INSTALL_$(1)_PRGNAME_STLDBG := $${INSTALL_$(1)_PRGNAME}
|
||||
INSTALL_PRGNAME_CMD_STLDBG += $$(INSTALL_EXE) $${$(1)_PRG_STLDBG} $$(INSTALL_BIN_DIR_STLDBG)/$${INSTALL_$(1)_PRGNAME_STLDBG}; \
|
||||
|
||||
endif
|
||||
endef
|
||||
|
||||
INSTALL_PRGNAME := ${PRGNAME}${EXE}
|
||||
$(foreach prg,$(PRGNAMES),$(eval $(call prog_install,$(prg))))
|
||||
|
||||
INSTALL_PRGNAME_DBG := ${INSTALL_PRGNAME}
|
||||
|
||||
ifndef WITHOUT_STLPORT
|
||||
INSTALL_PRGNAME_STLDBG := ${INSTALL_PRGNAME}
|
||||
endif
|
||||
|
||||
install-release-shared: release-shared $(INSTALL_BIN_DIR)
|
||||
ifdef PRGNAME
|
||||
$(INSTALL_EXE) ${PRG} $(INSTALL_BIN_DIR)/${INSTALL_PRGNAME}
|
||||
endif
|
||||
$(INSTALL_PRGNAME_CMD)
|
||||
$(POST_INSTALL)
|
||||
|
||||
install-dbg-shared: dbg-shared $(INSTALL_BIN_DIR_DBG)
|
||||
ifdef PRGNAME
|
||||
$(INSTALL_EXE) ${PRG_DBG} $(INSTALL_BIN_DIR_DBG)/${INSTALL_PRGNAME_DBG}
|
||||
endif
|
||||
$(INSTALL_PRGNAME_CMD_DBG)
|
||||
$(POST_INSTALL_DBG)
|
||||
|
||||
ifndef WITHOUT_STLPORT
|
||||
install-stldbg-shared: stldbg-shared $(INSTALL_BIN_DIR_STLDBG)
|
||||
ifdef PRGNAME
|
||||
$(INSTALL_EXE) ${PRG_STLDBG} $(INSTALL_BIN_DIR_STLDBG)/${INSTALL_PRGNAME_STLDBG}
|
||||
endif
|
||||
$(INSTALL_PRGNAME_CMD_STLDBG)
|
||||
$(POST_INSTALL_STLDBG)
|
||||
endif
|
||||
92
extern/STLport/5.2.1/build/Makefiles/gmake/app/rules.mak
vendored
Normal file
92
extern/STLport/5.2.1/build/Makefiles/gmake/app/rules.mak
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
# -*- makefile -*- Time-stamp: <06/11/17 10:34:26 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
|
||||
#
|
||||
|
||||
dbg-shared: $(EXTRA_PRE_DBG) $(OUTPUT_DIR_DBG) ${PRG_DBG} ${ALLPRGS_DBG} $(EXTRA_POST_DBG)
|
||||
|
||||
dbg-static: $(EXTRA_PRE_DBG) $(OUTPUT_DIR_DBG) ${PRG_DBG} ${ALLPRGS_DBG} $(EXTRA_POST_DBG)
|
||||
|
||||
release-shared: $(EXTRA_PRE) $(OUTPUT_DIR) ${PRG} ${ALLPRGS} $(EXTRA_POST)
|
||||
|
||||
release-static: $(EXTRA_PRE) $(OUTPUT_DIR) ${PRG} ${ALLPRGS} $(EXTRA_POST)
|
||||
|
||||
ifndef WITHOUT_STLPORT
|
||||
stldbg-shared: $(EXTRA_PRE_STLDBG) $(OUTPUT_DIR_STLDBG) ${PRG_STLDBG} ${ALLPRGS_STLDBG} $(EXTRA_POST_STLDBG)
|
||||
|
||||
stldbg-static: $(EXTRA_PRE_STLDBG) $(OUTPUT_DIR_STLDBG) ${PRG_STLDBG} ${ALLPRGS_STLDBG} $(EXTRA_POST_STLDBG)
|
||||
endif
|
||||
|
||||
ifeq ("$(findstring $(COMPILER_NAME),bcc dmc)","")
|
||||
define cpplnk_str
|
||||
$(LINK.cc) $(LINK_OUTPUT_OPTION) ${START_OBJ} $(1) $(LDLIBS) ${STDLIBS} ${END_OBJ}
|
||||
endef
|
||||
else
|
||||
ifneq ($(OSNAME),linux)
|
||||
define cpplnk_str
|
||||
$(LINK.cc) $(subst /,\\,${START_OBJ} $(1) ${END_OBJ}, $(LINK_OUTPUT_OPTION), $(MAP_OUTPUT_OPTION), $(LDLIBS) ${STDLIBS},,)
|
||||
endef
|
||||
else
|
||||
define cpplnk_str
|
||||
$(LINK.cc) ${START_OBJ} $(1) ${END_OBJ}, $(LINK_OUTPUT_OPTION), $(MAP_OUTPUT_OPTION), $(LDLIBS) ${STDLIBS},,
|
||||
endef
|
||||
endif
|
||||
endif
|
||||
|
||||
define prog_lnk
|
||||
ifeq ($${_$(1)_C_SOURCES_ONLY},)
|
||||
$${$(1)_PRG}: $$($(1)_OBJ) $$(LIBSDEP)
|
||||
$$(call cpplnk_str,$$($(1)_OBJ))
|
||||
|
||||
$${$(1)_PRG_DBG}: $$($(1)_OBJ_DBG) $$(LIBSDEP)
|
||||
$$(call cpplnk_str,$$($(1)_OBJ_DBG))
|
||||
|
||||
ifndef WITHOUT_STLPORT
|
||||
$${$(1)_PRG_STLDBG}: $$($(1)_OBJ_STLDBG) $$(LIBSDEP)
|
||||
$$(call cpplnk_str,$$($(1)_OBJ_STLDBG))
|
||||
endif
|
||||
else
|
||||
$${$(1)_PRG}: $$($(1)_OBJ) $$(LIBSDEP)
|
||||
$$(LINK.c) $$(LINK_OUTPUT_OPTION) $$($(1)_OBJ) $$(LDLIBS)
|
||||
|
||||
$${$(1)_PRG_DBG}: $$(OBJ_DBG) $$(LIBSDEP)
|
||||
$$(LINK.c) $$(LINK_OUTPUT_OPTION) $$($(1)_OBJ_DBG) $$(LDLIBS)
|
||||
|
||||
ifndef WITHOUT_STLPORT
|
||||
$${$(1)_PRG_STLDBG}: $$($(1)_OBJ_STLDBG) $$(LIBSDEP)
|
||||
$$(LINK.c) $$(LINK_OUTPUT_OPTION) $$($(1)_OBJ_STLDBG) $$(LDLIBS)
|
||||
endif
|
||||
endif
|
||||
endef
|
||||
|
||||
$(foreach prg,$(PRGNAMES),$(eval $(call prog_lnk,$(prg))))
|
||||
|
||||
ifeq ("${_C_SOURCES_ONLY}","")
|
||||
${PRG}: $(OBJ) $(LIBSDEP)
|
||||
$(call cpplnk_str,$(OBJ))
|
||||
|
||||
${PRG_DBG}: $(OBJ_DBG) $(LIBSDEP)
|
||||
$(call cpplnk_str,$(OBJ_DBG))
|
||||
|
||||
ifndef WITHOUT_STLPORT
|
||||
${PRG_STLDBG}: $(OBJ_STLDBG) $(LIBSDEP)
|
||||
$(call cpplnk_str,$(OBJ_STLDBG))
|
||||
endif
|
||||
else
|
||||
${PRG}: $(OBJ) $(LIBSDEP)
|
||||
$(LINK.c) $(LINK_OUTPUT_OPTION) $(OBJ) $(LDLIBS)
|
||||
|
||||
${PRG_DBG}: $(OBJ_DBG) $(LIBSDEP)
|
||||
$(LINK.c) $(LINK_OUTPUT_OPTION) $(OBJ_DBG) $(LDLIBS)
|
||||
|
||||
ifndef WITHOUT_STLPORT
|
||||
${PRG_STLDBG}: $(OBJ_STLDBG) $(LIBSDEP)
|
||||
$(LINK.c) $(LINK_OUTPUT_OPTION) $(OBJ_STLDBG) $(LDLIBS)
|
||||
endif
|
||||
endif
|
||||
61
extern/STLport/5.2.1/build/Makefiles/gmake/app/top.mak
vendored
Normal file
61
extern/STLport/5.2.1/build/Makefiles/gmake/app/top.mak
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
# -*- makefile -*- Time-stamp: <08/06/12 15:54:12 ptr>
|
||||
#
|
||||
# Copyright (c) 1997-1999, 2002, 2003, 2005-2008
|
||||
# Petr Ovtchenkov
|
||||
#
|
||||
# Portion Copyright (c) 1999-2001
|
||||
# Parallel Graphics Ltd.
|
||||
#
|
||||
# Licensed under the Academic Free License version 3.0
|
||||
#
|
||||
|
||||
ifdef PRGNAME
|
||||
PRG := $(OUTPUT_DIR)/${PRGNAME}${EXE}
|
||||
PRG_DBG := $(OUTPUT_DIR_DBG)/${PRGNAME}${EXE}
|
||||
PRG_STLDBG := $(OUTPUT_DIR_STLDBG)/${PRGNAME}${EXE}
|
||||
endif
|
||||
|
||||
ALLPRGS = ${PRG}
|
||||
ALLPRGS_DBG = ${PRG_DBG}
|
||||
ALLPRGS_STLDBG = ${PRG_STLDBG}
|
||||
|
||||
define prog_prog
|
||||
$(1)_PRG := $(OUTPUT_DIR)/$(1)${EXE}
|
||||
$(1)_PRG_DBG := $(OUTPUT_DIR_DBG)/$(1)${EXE}
|
||||
$(1)_PRG_STLDBG := $(OUTPUT_DIR_STLDBG)/$(1)${EXE}
|
||||
|
||||
ALLPRGS += $${$(1)_PRG}
|
||||
ALLPRGS_DBG += $${$(1)_PRG_DBG}
|
||||
ALLPRGS_STLDBG += $${$(1)_PRG_STLDBG}
|
||||
endef
|
||||
|
||||
$(foreach prg,$(PRGNAMES),$(eval $(call prog_prog,$(prg))))
|
||||
|
||||
include ${RULESBASE}/gmake/app/${COMPILER_NAME}.mak
|
||||
include ${RULESBASE}/gmake/app/rules.mak
|
||||
include ${RULESBASE}/gmake/app/rules-install.mak
|
||||
|
||||
define prog_clean
|
||||
clean::
|
||||
@rm -f $${$(1)_PRG} $${$(1)_PRG_DBG} $${$(1)_PRG_STLDBG}
|
||||
|
||||
uninstall::
|
||||
@rm -f $$(INSTALL_BIN_DIR)/$$($(1)_PRG) $$(INSTALL_BIN_DIR_DBG)/$$($(1)_PRG_DBG) $$(INSTALL_BIN_DIR_STLDBG)/$$($(1)_PRG_STLDBG)
|
||||
endef
|
||||
|
||||
clean::
|
||||
ifdef PRGNAME
|
||||
@-rm -f ${PRG} ${PRG_DBG} ${PRG_STLDBG}
|
||||
endif
|
||||
|
||||
$(foreach prg,$(PRGNAMES),$(eval $(call prog_clean,$(prg))))
|
||||
|
||||
distclean::
|
||||
@-rm -f $(DEPENDS_COLLECTION)
|
||||
@-rmdir -p ${OUTPUT_DIR} ${OUTPUT_DIR_DBG} ${OUTPUT_DIR_STLDBG} 2>/dev/null
|
||||
|
||||
uninstall::
|
||||
ifdef PRGNAME
|
||||
@-rm -f $(INSTALL_BIN_DIR)/${PRGNAME}${EXE} $(INSTALL_BIN_DIR_DBG)/${PRGNAME}${EXE} $(INSTALL_BIN_DIR_STLDBG)/${PRGNAME}${EXE}
|
||||
endif
|
||||
@-rmdir -p $(INSTALL_BIN_DIR) $(INSTALL_BIN_DIR_DBG) $(INSTALL_BIN_DIR_STLDBG) 2>/dev/null
|
||||
Reference in New Issue
Block a user