1# ;;; -*- Mode:makefile;-*- 
2# Generated automatically from Makefile.in by configure.
3
4# point this to proper location
5STL_INCL= -I../../stlport 
6# STL_INCL= -DEH_NO_SGI_STL
7
8AUX_LIST=TestClass.cpp main.cpp nc_alloc.cpp random_number.cpp
9
10TEST_LIST=test_algo.cpp  \
11test_algobase.cpp     test_list.cpp test_slist.cpp \
12test_bit_vector.cpp   test_vector.cpp \
13test_deque.cpp test_set.cpp test_map.cpp \
14test_hash_map.cpp  test_hash_set.cpp test_rope.cpp \
15test_string.cpp test_bitset.cpp test_valarray.cpp
16
17# TEST_LIST=test_deque.cpp
18
19
20LIST=${AUX_LIST} ${TEST_LIST}
21
22OBJECTS = $(LIST:%.cpp=%.o) $(STAT_MODULE)
23EXECS = $(LIST:%.cpp=%)
24TESTS = $(LIST:%.cpp=%.out)
25TEST_EXE  = eh_test
26TEST  = eh_test.out
27
28CC = KCC
29CXX = $(CC)
30
31CXXFLAGS = -w -mt --one_per ${STL_INCL} -D_STLP_USE_NEWALLOC -DEH_VECTOR_OPERATOR_NEW -DEH_DELETE_HAS_THROW_SPEC
32
33# This is to test with native STL
34# CXXFLAGS = -w -mt --one_per -D_STLP_USE_NEWALLOC -DEH_NO_SGI_STL -DEH_NEW_HEADERS -DEH_VECTOR_OPERATOR_NEW -DEH_DELETE_HAS_THROW_SPEC
35
36# This is to test with STLport iostreams
37LIBS = -L../../lib -lstlport_kcc -lm 
38
39LIBSTDCXX = 
40
41check: $(TEST)
42
43$(TEST) : $(OBJECTS)
44	$(CXX) $(CXXFLAGS) $(OBJECTS) $(LIBS) -o $(TEST_EXE)
45	$(TEST_EXE)
46
47SUFFIXES: .cpp.o.out.res
48
49%.o : %.cpp
50	$(CXX) $(CXXFLAGS) $< -c -o $@
51
52%.i : %.cpp
53	$(CXX) $(CXXFLAGS) $< -E -H > $@
54
55%.out: %.cpp
56	$(CXX) $(CXXFLAGS) $< -c -USINGLE -DMAIN -g -o $*.o
57	$(CXX) $(CXXFLAGS) $*.o $(LIBS) -o $*
58	./$* -q
59	-rm -f $*
60
61%.s: %.cpp
62	$(CXX) $(CXXFLAGS) -O4 -S -pto $<  -o $@
63
64clean:
65	-rm -fr ${TEST_EXE} *.o *.rpo *.obj *.out core *~ Templates.DB SunWS_cache ti_files
66