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