1# ;;; -*- Mode:makefile;-*- 
2# Generated automatically from Makefile.in by configure.
3# This requires GNU make.
4
5# SHELL=/bin/sh
6# srcdir = .
7# VPATH = .
8
9SHELL=/bin/sh
10
11# point this to proper location
12STL_INCL= -I../../stlport
13
14# STL_INCL= -DEH_NO_SGI_STL
15
16AUX_LIST=TestClass.cpp main.cpp nc_alloc.cpp random_number.cpp
17
18TEST_LIST=test_algo.cpp  \
19test_algobase.cpp     test_list.cpp test_slist.cpp \
20test_bit_vector.cpp   test_vector.cpp \
21test_deque.cpp test_set.cpp test_map.cpp \
22test_hash_map.cpp  test_hash_set.cpp test_rope.cpp \
23test_string.cpp test_bitset.cpp test_valarray.cpp
24
25LIST=${AUX_LIST} ${TEST_LIST}
26
27OBJECTS = $(LIST:%.cpp=%.o) $(STAT_MODULE)
28EXECS = $(LIST:%.cpp=%)
29TESTS = $(LIST:%.cpp=%.out)
30TEST_EXE  = eh_test
31TEST  = eh_test.out
32
33CC = CC
34CXX = $(CC)
35
36CXXFLAGS = $(ARCHF) +w2 -mt -features=rtti ${STL_INCL}
37# CXXFLAGS = +w2 ${STL_INCL}
38
39
40
41LIBS = -lm 
42
43LIBSTLPORT = -L../../lib -lstlport_sunpro42
44
45check: $(TEST)
46
47$(TEST) : $(OBJECTS)
48	echo 'Info: For CC 4.x, warnings from ld in the form "symbol `XXX' has differing sizes" are normal.'
49	$(CXX) $(CXXFLAGS) $(OBJECTS) ${LIBSTLPORT} $(LIBS) -o $(TEST_EXE)
50	LD_LIBRARY_PATH="../../lib:$(LD_LIBRARY_PATH)" ./$(TEST_EXE) -s 100
51
52SUFFIXES: .cpp.o.out.res
53
54%.o : %.cpp
55	$(CXX) $(CXXFLAGS) $< -c -o $@
56
57%.i : %.cpp
58	$(CXX) $(CXXFLAGS) $< -E -H > $@
59
60%.out: %.cpp
61	$(CXX) $(CXXFLAGS) $< -c -USINGLE -DMAIN -g -o $*.o
62	$(CXX) $(CXXFLAGS) $*.o $(LIBSTLPORT) $(LIBS) -o $*
63	./$* -q
64	-rm -f $*
65
66%.s: %.cpp
67	$(CXX) $(CXXFLAGS) -O4 -S -pto $<  -o $@
68
69clean:
70	-rm -fr ${TEST_EXE} *.o *.rpo *.obj *.out core *~ Templates.DB SunWS_cache
71
72
73
74
75
76
77