os/ossrv/genericopenlibs/cppstdlib/stl/test/eh/sunpro-64.mak
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/genericopenlibs/cppstdlib/stl/test/eh/sunpro-64.mak	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,69 @@
     1.4 +# ;;; -*- Mode:makefile;-*- 
     1.5 +# Generated automatically from Makefile.in by configure.
     1.6 +# This requires GNU make.
     1.7 +
     1.8 +
     1.9 +SHELL=/bin/sh
    1.10 +
    1.11 +# point this to proper location
    1.12 +STL_INCL= -I${PWD}/../../stlport
    1.13 +
    1.14 +# STL_INCL= -DEH_NO_SGI_STL
    1.15 +
    1.16 +AUX_LIST=TestClass.cpp main.cpp nc_alloc.cpp random_number.cpp
    1.17 +
    1.18 +TEST_LIST=test_algo.cpp  \
    1.19 +test_algobase.cpp     test_list.cpp test_slist.cpp \
    1.20 +test_bit_vector.cpp   test_vector.cpp \
    1.21 +test_deque.cpp test_set.cpp test_map.cpp \
    1.22 +test_hash_map.cpp  test_hash_set.cpp test_rope.cpp \
    1.23 +test_string.cpp test_bitset.cpp test_valarray.cpp
    1.24 +
    1.25 +LIST=${AUX_LIST} ${TEST_LIST}
    1.26 +
    1.27 +OBJECTS = $(LIST:%.cpp=%.o) $(STAT_MODULE)
    1.28 +EXECS = $(LIST:%.cpp=%)
    1.29 +TESTS = $(LIST:%.cpp=%.out)
    1.30 +TEST_EXE  = eh_test
    1.31 +TEST  = eh_test.out
    1.32 +
    1.33 +CC = CC
    1.34 +CXX = $(CC)
    1.35 +
    1.36 +CXXFLAGS = ${STL_INCL} -xarch=v9 -library=no%Cstd -features=rtti -DEH_VECTOR_OPERATOR_NEW -DEH_DELETE_HAS_THROW_SPEC -xildoff -g -D_REENTRANT -DNO_FAST_ALLOCATOR
    1.37 +
    1.38 +# This is to test with native STL
    1.39 +# CXXFLAGS = +w2 -xildoff -D_STLP_USE_NEWALLOC -DEH_NO_SGI_STL -DEH_NEW_HEADERS -DEH_VECTOR_OPERATOR_NEW -DEH_DELETE_HAS_THROW_SPEC
    1.40 +
    1.41 +
    1.42 +LIBS = -lm 
    1.43 +LIBSTDCXX = 
    1.44 +
    1.45 +LIBSTLPORT = -library=no%Cstd -L../../lib -lstlport_sunpro64
    1.46 +
    1.47 +
    1.48 +check: $(TEST)
    1.49 +
    1.50 +$(TEST) : $(OBJECTS)
    1.51 +	$(CXX) $(CXXFLAGS) $(OBJECTS) ${LIBSTLPORT} $(LIBS) -o $(TEST_EXE)
    1.52 +	LD_LIBRARY_PATH="../../lib;${LD_LIBRARY_PATH}" ./$(TEST_EXE) -s 100
    1.53 +
    1.54 +SUFFIXES: .cpp.o.out.res
    1.55 +
    1.56 +%.o : %.cpp
    1.57 +	$(CXX) $(CXXFLAGS) $< -c -o $@
    1.58 +
    1.59 +%.i : %.cpp
    1.60 +	$(CXX) $(CXXFLAGS) $< -E -H > $@
    1.61 +
    1.62 +%.out: %.cpp
    1.63 +	$(CXX) $(CXXFLAGS) $< -c -USINGLE -DMAIN -g -o $*.o
    1.64 +	$(CXX) $(CXXFLAGS) $*.o $(LIBS) -o $*
    1.65 +	./$* -q
    1.66 +	-rm -f $*
    1.67 +
    1.68 +%.s: %.cpp
    1.69 +	$(CXX) $(CXXFLAGS) -O4 -S -pto $<  -o $@
    1.70 +
    1.71 +clean:
    1.72 +	-rm -fr ${TEST_EXE} *.o *.rpo *.obj *.out core *~ Templates.DB SunWS_cache