1# -*- Makefile -*- Time-stamp: <08/06/12 16:41:21 ptr> 2 3SRCROOT := ../.. 4COMPILER_NAME := icc 5-include ${SRCROOT}/Makefiles/gmake/config.mak 6ALL_TAGS = release-shared check-release 7CHECK_TAGS = check-release 8ifndef WITHOUT_STLPORT 9ALL_TAGS += stldbg-shared check-stldbg 10CHECK_TAGS += check-stldbg 11endif 12STLPORT_DIR ?= ../../.. 13 14include Makefile.inc 15include ${SRCROOT}/Makefiles/gmake/top.mak 16 17ifdef WITHOUT_STLPORT 18DEFS += -DWITHOUT_STLPORT 19endif 20 21dbg-shared: DEFS += -D_STLP_DEBUG_UNINITIALIZED 22ifndef WITHOUT_STLPORT 23stldbg-shared: DEFS += -D_STLP_DEBUG_UNINITIALIZED 24endif 25 26ifdef STLP_BUILD_BOOST_PATH 27INCLUDES += -I${STLP_BUILD_BOOST_PATH} 28endif 29 30ifndef WITHOUT_STLPORT 31release-shared: LDFLAGS += -L${STLPORT_DIR}/build/lib/${OUTPUT_DIR} -Wl,-R${STLPORT_DIR}/build/lib/${OUTPUT_DIR} 32dbg-shared: LDFLAGS += -L${STLPORT_DIR}/build/lib/${OUTPUT_DIR_DBG} -Wl,-R${STLPORT_DIR}/build/lib/${OUTPUT_DIR_DBG} 33stldbg-shared: LDFLAGS += -L${STLPORT_DIR}/build/lib/${OUTPUT_DIR_STLDBG} -Wl,-R${STLPORT_DIR}/build/lib/${OUTPUT_DIR_STLDBG} 34 35ifeq ($(OSNAME),linux) 36ifeq ($(CXX_VERSION_MAJOR),8) 37ifeq ($(CXX_VERSION_MINOR),0) 38# 8.0 build 20031016Z 39release-shared: LDLIBS = -lpthread -lstlport 40stldbg-shared: LDLIBS = -lpthread -lstlportstlg 41dbg-shared: LDLIBS = -lpthread -lstlportg 42else 43# 8.1 build 028 44release-shared: LDLIBS = -lpthread -lstlport -lcprts -lunwind 45stldbg-shared: LDLIBS = -lpthread -lstlportstlg -lcprts -lunwind 46dbg-shared: LDLIBS = -lpthread -lstlportg -lcprts -lunwind 47endif 48else 49ifeq ($(CXX_VERSION_MAJOR),9) 50# 9.0 build 20050430 51release-shared: LDLIBS = -lpthread -lstlport -lcprts -lunwind 52stldbg-shared: LDLIBS = -lpthread -lstlportstlg -lcprts -lunwind 53dbg-shared: LDLIBS = -lpthread -lstlportg -lcprts -lunwind 54else 55# 7.1 build 20030307Z 56release-shared: LDLIBS = -lpthread -lstlport 57stldbg-shared: LDLIBS = -lpthread -lstlportstlg 58dbg-shared: LDLIBS = -lpthread -lstlportg 59endif 60endif 61endif 62 63endif 64 65check-release: release-shared 66 -${OUTPUT_DIR}/${PRGNAME} 67 68ifndef WITHOUT_STLPORT 69check-stldbg: stldbg-shared 70 -${OUTPUT_DIR_STLDBG}/${PRGNAME} 71endif 72 73check: ${CHECK_TAGS} 74 75