Update contrib.
1 # ;;; -*- Mode:makefile;-*-
2 # Generated automatically from Makefile.in by configure.
3 # This requires GNU make.
8 # point this to proper location
9 STL_INCL= -I${PWD}/../../stlport
11 # STL_INCL= -DEH_NO_SGI_STL
13 AUX_LIST=TestClass.cpp main.cpp nc_alloc.cpp random_number.cpp
15 TEST_LIST=test_algo.cpp \
16 test_algobase.cpp test_list.cpp test_slist.cpp \
17 test_bit_vector.cpp test_vector.cpp \
18 test_deque.cpp test_set.cpp test_map.cpp \
19 test_hash_map.cpp test_hash_set.cpp test_rope.cpp \
20 test_string.cpp test_bitset.cpp test_valarray.cpp
22 LIST=${AUX_LIST} ${TEST_LIST}
24 OBJECTS = $(LIST:%.cpp=%.o) $(STAT_MODULE)
25 EXECS = $(LIST:%.cpp=%)
26 TESTS = $(LIST:%.cpp=%.out)
33 # CXXFLAGS = ${STL_INCL} -library=no%Cstd -qoption ccfe -instlib=../../lib/libstlport_sunpro.so -features=rtti -DEH_VECTOR_OPERATOR_NEW -DEH_DELETE_HAS_THROW_SPEC
35 CXXFLAGS = ${STL_INCL} -library=no%Cstd -features=rtti -DEH_VECTOR_OPERATOR_NEW -DEH_DELETE_HAS_THROW_SPEC
37 # This is to test with native STL
38 # CXXFLAGS = +w2 -xildoff -D_STLP_USE_NEWALLOC -DEH_NO_SGI_STL -DEH_NEW_HEADERS -DEH_VECTOR_OPERATOR_NEW -DEH_DELETE_HAS_THROW_SPEC
44 LIBSTLPORT = -library=no%Cstd -L../../lib -lstlport_sunpro
50 $(CXX) $(CXXFLAGS) $(OBJECTS) ${LIBSTLPORT} $(LIBS) -o $(TEST_EXE)
51 LD_LIBRARY_PATH="../../lib;${LD_LIBRARY_PATH}" ./$(TEST_EXE) -s 100
53 SUFFIXES: .cpp.o.out.res
56 $(CXX) $(CXXFLAGS) $< -c -o $@
59 $(CXX) $(CXXFLAGS) $< -E -H > $@
62 $(CXX) $(CXXFLAGS) $< -c -USINGLE -DMAIN -g -o $*.o
63 $(CXX) $(CXXFLAGS) $*.o $(LIBS) ${LIBSTLPORT} -o $*
64 LD_LIBRARY_PATH="../../lib;${LD_LIBRARY_PATH}" ./$*
68 $(CXX) $(CXXFLAGS) -O4 -S -pto $< -o $@
71 -rm -fr ${TEST_EXE} *.o *.rpo *.obj *.out core *~ Templates.DB SunWS_cache