1# -*- Makefile -*- Time-stamp: <08/06/06 11:01:34 yeti>
2
3SRCROOT := ../..
4COMPILER_NAME := gcc
5#NOT_USE_NOSTDLIB := 1
6#WITHOUT_STLPORT := 1
7-include ${SRCROOT}/Makefiles/gmake/config.mak
8ALL_TAGS = release-shared check-release
9CHECK_TAGS = check-release
10ifndef WITHOUT_STLPORT
11ALL_TAGS += stldbg-shared check-stldbg
12CHECK_TAGS += check-stldbg
13endif
14STLPORT_DIR ?= ../../..
15
16include Makefile.inc
17include ${SRCROOT}/Makefiles/gmake/top.mak
18
19ifdef WITHOUT_STLPORT
20DEFS += -DWITHOUT_STLPORT
21endif
22
23dbg-shared:	DEFS += -D_STLP_DEBUG_UNINITIALIZED
24ifndef WITHOUT_STLPORT
25stldbg-shared:	DEFS += -D_STLP_DEBUG_UNINITIALIZED
26endif
27
28ifdef STLP_BUILD_BOOST_PATH
29INCLUDES += -I${STLP_BUILD_BOOST_PATH}
30endif
31
32ifndef TARGET_OS
33ifndef WITHOUT_STLPORT
34
35ifeq ($(OSNAME), sunos)
36release-shared: LDFLAGS += -L${STLPORT_DIR}/build/lib/${OUTPUT_DIR} -Wl,-R${STLPORT_DIR}/build/lib/${OUTPUT_DIR}
37dbg-shared:     LDFLAGS += -L${STLPORT_DIR}/build/lib/${OUTPUT_DIR_DBG} -Wl,-R${STLPORT_DIR}/build/lib/${OUTPUT_DIR_DBG}
38stldbg-shared:  LDFLAGS += -L${STLPORT_DIR}/build/lib/${OUTPUT_DIR_STLDBG} -Wl,-R${STLPORT_DIR}/build/lib/${OUTPUT_DIR_STLDBG}
39endif
40
41ifeq ($(OSNAME), freebsd)
42release-shared: LDFLAGS += -L${STLPORT_DIR}/build/lib/${OUTPUT_DIR} -Wl,-R${STLPORT_DIR}/build/lib/${OUTPUT_DIR}
43dbg-shared:     LDFLAGS += -L${STLPORT_DIR}/build/lib/${OUTPUT_DIR_DBG} -Wl,-R${STLPORT_DIR}/build/lib/${OUTPUT_DIR_DBG}
44stldbg-shared:  LDFLAGS += -L${STLPORT_DIR}/build/lib/${OUTPUT_DIR_STLDBG} -Wl,-R${STLPORT_DIR}/build/lib/${OUTPUT_DIR_STLDBG}
45endif
46
47ifeq ($(OSNAME), openbsd)
48release-shared: LDFLAGS += -L${STLPORT_DIR}/build/lib/${OUTPUT_DIR} -Wl,-R${STLPORT_DIR}/build/lib/${OUTPUT_DIR}
49dbg-shared:     LDFLAGS += -L${STLPORT_DIR}/build/lib/${OUTPUT_DIR_DBG} -Wl,-R${STLPORT_DIR}/build/lib/${OUTPUT_DIR_DBG}
50stldbg-shared:  LDFLAGS += -L${STLPORT_DIR}/build/lib/${OUTPUT_DIR_STLDBG} -Wl,-R${STLPORT_DIR}/build/lib/${OUTPUT_DIR_STLDBG}
51endif
52
53ifeq ($(OSNAME), linux)
54release-shared:	LDFLAGS += -L${STLPORT_DIR}/build/lib/${OUTPUT_DIR} -Wl,-rpath=${STLPORT_DIR}/build/lib/${OUTPUT_DIR}
55dbg-shared:	LDFLAGS += -L${STLPORT_DIR}/build/lib/${OUTPUT_DIR_DBG} -Wl,-rpath=${STLPORT_DIR}/build/lib/${OUTPUT_DIR_DBG}
56stldbg-shared:	LDFLAGS += -L${STLPORT_DIR}/build/lib/${OUTPUT_DIR_STLDBG} -Wl,-rpath=${STLPORT_DIR}/build/lib/${OUTPUT_DIR_STLDBG}
57endif
58
59ifeq ($(OSNAME), hp-ux)
60release-shared: LDFLAGS += -L${STLPORT_DIR}/build/lib/${OUTPUT_DIR} -Wl,+b${STLPORT_DIR}/build/lib/${OUTPUT_DIR}
61dbg-shared:	LDFLAGS += -L${STLPORT_DIR}/build/lib/${OUTPUT_DIR_DBG} -Wl,+b${STLPORT_DIR}/build/lib/${OUTPUT_DIR_DBG}
62stldbg-shared:	LDFLAGS += -L${STLPORT_DIR}/build/lib/${OUTPUT_DIR_STLDBG} -Wl,+b${STLPORT_DIR}/build/lib/${OUTPUT_DIR_STLDBG}
63endif
64
65endif
66endif
67
68check-release:	release-shared
69	-${OUTPUT_DIR}/${PRGNAME}
70
71ifndef WITHOUT_STLPORT
72check-stldbg:	stldbg-shared
73	-${OUTPUT_DIR_STLDBG}/${PRGNAME}
74endif
75
76check:	${CHECK_TAGS}
77
78