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