1# -*- Makefile -*- Time-stamp: <08/06/12 16:09:49 ptr>
2
3SRCROOT := ../..
4COMPILER_NAME := aCC
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
14STLPORT_INCLUDE_DIR = ../../../stlport
15include Makefile.inc
16include ${SRCROOT}/Makefiles/gmake/top.mak
17
18ifdef WITHOUT_STLPORT
19DEFS += -DWITHOUT_STLPORT
20endif
21
22dbg-shared:	DEFS += -D_STLP_DEBUG_UNINITIALIZED
23ifndef WITHOUT_STLPORT
24stldbg-shared:	DEFS += -D_STLP_DEBUG_UNINITIALIZED
25endif
26
27INCLUDES += -I$(STLPORT_INCLUDE_DIR)
28
29ifdef STLP_BUILD_BOOST_PATH
30INCLUDES += -I${STLP_BUILD_BOOST_PATH}
31endif
32
33ifndef WITHOUT_STLPORT
34release-shared: LDFLAGS += -L${STLPORT_DIR}/build/lib/${OUTPUT_DIR} -Wl,+b${STLPORT_DIR}/build/lib/${OUTPUT_DIR}
35dbg-shared:	LDFLAGS += -L${STLPORT_DIR}/build/lib/${OUTPUT_DIR_DBG} -Wl,+b${STLPORT_DIR}/build/lib/${OUTPUT_DIR_DBG}
36stldbg-shared:	LDFLAGS += -L${STLPORT_DIR}/build/lib/${OUTPUT_DIR_STLDBG} -Wl,+b${STLPORT_DIR}/build/lib/${OUTPUT_DIR_STLDBG}
37endif
38
39check-release:	release-shared
40	-${OUTPUT_DIR}/${PRGNAME}
41
42ifndef WITHOUT_STLPORT
43check-stldbg:	stldbg-shared
44	-${OUTPUT_DIR_STLDBG}/${PRGNAME}
45endif
46
47check:	${CHECK_TAGS}
48
49