sl@0
|
1 |
# ;;; -*- Mode:makefile;-*-
|
sl@0
|
2 |
# Generated manually for MMS
|
sl@0
|
3 |
|
sl@0
|
4 |
# point this to proper location
|
sl@0
|
5 |
STL_INCL= /include="../../stlport"
|
sl@0
|
6 |
|
sl@0
|
7 |
|
sl@0
|
8 |
# STL_INCL= -DEH_NO_SGI_STL
|
sl@0
|
9 |
|
sl@0
|
10 |
.SUFFIXES .obj .cpp
|
sl@0
|
11 |
|
sl@0
|
12 |
all : check
|
sl@0
|
13 |
|
sl@0
|
14 |
AUX_LIST=TestClass.obj,main.obj,nc_alloc.obj,random_number.obj
|
sl@0
|
15 |
|
sl@0
|
16 |
TEST_LIST=test_algo.obj,-
|
sl@0
|
17 |
test_algobase.obj,test_list.obj,test_slist.obj,-
|
sl@0
|
18 |
test_bit_vector.obj,test_vector.obj,-
|
sl@0
|
19 |
test_deque.obj,test_set.obj,test_map.obj,-
|
sl@0
|
20 |
test_hash_map.obj,test_hash_set.obj,test_rope.obj,-
|
sl@0
|
21 |
test_string.obj,test_bitset.obj,test_valarray.obj
|
sl@0
|
22 |
|
sl@0
|
23 |
LIST=$(AUX_LIST),$(TEST_LIST)
|
sl@0
|
24 |
|
sl@0
|
25 |
OBJECTS = $(LIST)
|
sl@0
|
26 |
EXECS = $(LIST:%.obj=%.exe)
|
sl@0
|
27 |
TESTS = $(LIST:%.obj=%.out)
|
sl@0
|
28 |
TEST_EXE = eh_test.exe
|
sl@0
|
29 |
TEST = eh_test.out
|
sl@0
|
30 |
|
sl@0
|
31 |
CC = cxx
|
sl@0
|
32 |
CXX = $(CC)
|
sl@0
|
33 |
LINK = cxxlink
|
sl@0
|
34 |
|
sl@0
|
35 |
# -std strict_ansi_errors
|
sl@0
|
36 |
|
sl@0
|
37 |
CXXFLAGS = $(STL_INCL) /define=(__NO_USE_STD_IOSTREAM,EH_VECTOR_OPERATOR_NEW,EH_DELETE_HAS_THROW_SPEC)
|
sl@0
|
38 |
|
sl@0
|
39 |
# This is to test with native STL
|
sl@0
|
40 |
# CXXFLAGS = +w2 -xildoff -D__STL_USE_NEWALLOC -DEH_NO_SGI_STL -DEH_NEW_HEADERS -DEH_VECTOR_OPERATOR_NEW -DEH_DELETE_HAS_THROW_SPEC
|
sl@0
|
41 |
|
sl@0
|
42 |
|
sl@0
|
43 |
LIBS =
|
sl@0
|
44 |
LIBSTDCXX =
|
sl@0
|
45 |
|
sl@0
|
46 |
check : $(TEST)
|
sl@0
|
47 |
|
sl@0
|
48 |
$(TEST) : $(OBJECTS)
|
sl@0
|
49 |
$(LINK)/exe=$(TEST_EXE) $(OBJECTS) $(LIBS)
|
sl@0
|
50 |
run $(TEST_EXE)
|
sl@0
|
51 |
|
sl@0
|
52 |
.cpp.obj :
|
sl@0
|
53 |
$(CXX) $(CXXFLAGS) /obj=$@ $<
|
sl@0
|
54 |
|