1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/genericopenlibs/cppstdlib/stl/test/eh/sunpro42.mak Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,76 @@
1.4 +# ;;; -*- Mode:makefile;-*-
1.5 +# Generated automatically from Makefile.in by configure.
1.6 +# This requires GNU make.
1.7 +
1.8 +# SHELL=/bin/sh
1.9 +# srcdir = .
1.10 +# VPATH = .
1.11 +
1.12 +SHELL=/bin/sh
1.13 +
1.14 +# point this to proper location
1.15 +STL_INCL= -I../../stlport
1.16 +
1.17 +# STL_INCL= -DEH_NO_SGI_STL
1.18 +
1.19 +AUX_LIST=TestClass.cpp main.cpp nc_alloc.cpp random_number.cpp
1.20 +
1.21 +TEST_LIST=test_algo.cpp \
1.22 +test_algobase.cpp test_list.cpp test_slist.cpp \
1.23 +test_bit_vector.cpp test_vector.cpp \
1.24 +test_deque.cpp test_set.cpp test_map.cpp \
1.25 +test_hash_map.cpp test_hash_set.cpp test_rope.cpp \
1.26 +test_string.cpp test_bitset.cpp test_valarray.cpp
1.27 +
1.28 +LIST=${AUX_LIST} ${TEST_LIST}
1.29 +
1.30 +OBJECTS = $(LIST:%.cpp=%.o) $(STAT_MODULE)
1.31 +EXECS = $(LIST:%.cpp=%)
1.32 +TESTS = $(LIST:%.cpp=%.out)
1.33 +TEST_EXE = eh_test
1.34 +TEST = eh_test.out
1.35 +
1.36 +CC = CC
1.37 +CXX = $(CC)
1.38 +
1.39 +CXXFLAGS = $(ARCHF) +w2 -mt -features=rtti ${STL_INCL}
1.40 +# CXXFLAGS = +w2 ${STL_INCL}
1.41 +
1.42 +
1.43 +
1.44 +LIBS = -lm
1.45 +
1.46 +LIBSTLPORT = -L../../lib -lstlport_sunpro42
1.47 +
1.48 +check: $(TEST)
1.49 +
1.50 +$(TEST) : $(OBJECTS)
1.51 + echo 'Info: For CC 4.x, warnings from ld in the form "symbol `XXX' has differing sizes" are normal.'
1.52 + $(CXX) $(CXXFLAGS) $(OBJECTS) ${LIBSTLPORT} $(LIBS) -o $(TEST_EXE)
1.53 + LD_LIBRARY_PATH="../../lib:$(LD_LIBRARY_PATH)" ./$(TEST_EXE) -s 100
1.54 +
1.55 +SUFFIXES: .cpp.o.out.res
1.56 +
1.57 +%.o : %.cpp
1.58 + $(CXX) $(CXXFLAGS) $< -c -o $@
1.59 +
1.60 +%.i : %.cpp
1.61 + $(CXX) $(CXXFLAGS) $< -E -H > $@
1.62 +
1.63 +%.out: %.cpp
1.64 + $(CXX) $(CXXFLAGS) $< -c -USINGLE -DMAIN -g -o $*.o
1.65 + $(CXX) $(CXXFLAGS) $*.o $(LIBSTLPORT) $(LIBS) -o $*
1.66 + ./$* -q
1.67 + -rm -f $*
1.68 +
1.69 +%.s: %.cpp
1.70 + $(CXX) $(CXXFLAGS) -O4 -S -pto $< -o $@
1.71 +
1.72 +clean:
1.73 + -rm -fr ${TEST_EXE} *.o *.rpo *.obj *.out core *~ Templates.DB SunWS_cache
1.74 +
1.75 +
1.76 +
1.77 +
1.78 +
1.79 +