os/ossrv/genericopenlibs/cppstdlib/stl/test/eh/deccxx.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/deccxx.mak	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,73 @@
     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 +
    1.10 +# srcdir = .
    1.11 +# VPATH = .
    1.12 +
    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.o main.o nc_alloc.o random_number.o
    1.20 +
    1.21 +TEST_LIST=test_algo.o  \
    1.22 +test_algobase.o     test_list.o test_slist.o \
    1.23 +test_bit_vector.o   test_vector.o \
    1.24 +test_deque.o test_set.o test_map.o \
    1.25 +test_hash_map.o  test_hash_set.o test_rope.o \
    1.26 +test_string.o test_bitset.o test_valarray.o
    1.27 +
    1.28 +LIST=${AUX_LIST} ${TEST_LIST}
    1.29 +
    1.30 +OBJECTS = $(LIST)
    1.31 +EXECS = $(LIST:%.o=%)
    1.32 +TESTS = $(LIST:%.o=%.out)
    1.33 +TEST_EXE  = eh_test
    1.34 +TEST  = eh_test.out
    1.35 +
    1.36 +CC = cxx
    1.37 +CXX = $(CC)
    1.38 +
    1.39 +# -std strict_ansi_errors
    1.40 +
    1.41 +CXXFLAGS = ${STL_INCL} -std strict_ansi_errors -DEH_VECTOR_OPERATOR_NEW -DEH_DELETE_HAS_THROW_SPEC -gall
    1.42 +
    1.43 +# CXXFLAGS = ${STL_INCL} -std strict_ansi_errors -DEH_VECTOR_OPERATOR_NEW -DEH_DELETE_HAS_THROW_SPEC
    1.44 +
    1.45 +# This is to test with native STL
    1.46 +# CXXFLAGS = +w2 -xildoff -D_STLP_USE_NEWALLOC -DEH_NO_SGI_STL -DEH_NEW_HEADERS -DEH_VECTOR_OPERATOR_NEW -DEH_DELETE_HAS_THROW_SPEC
    1.47 +
    1.48 +
    1.49 +LIBS = -L../../lib -lstlport_dec -lm 
    1.50 +LIBSTDCXX = 
    1.51 +
    1.52 +.SUFFIXES: .cpp .i .o .out .res
    1.53 +
    1.54 +check: $(TEST)
    1.55 +
    1.56 +$(TEST) : $(OBJECTS)
    1.57 +	$(CXX) $(CXXFLAGS) $(OBJECTS) $(LIBS) -o $(TEST_EXE)
    1.58 +	LD_LIBRARY_PATH="../../lib:$(LD_LIBRARY_PATH)" ./$(TEST_EXE) -s 100
    1.59 +
    1.60 +.cpp.o:
    1.61 +	$(CXX) $(CXXFLAGS) $< -c -o $@
    1.62 +
    1.63 +.cpp.i:
    1.64 +	$(CXX) $(CXXFLAGS) $< -E > $@
    1.65 +
    1.66 +%.out: %.cpp
    1.67 +	$(CXX) $(CXXFLAGS) $*.cpp -c -USINGLE -DMAIN -g -o $*.o
    1.68 +	$(CXX) $(CXXFLAGS) $*.o $(LIBS) -o $*
    1.69 +	./$* -q
    1.70 +	-rm -f $*
    1.71 +
    1.72 +%.s: %.cpp
    1.73 +	$(CXX) $(CXXFLAGS) -O4 -S -pto $*.cpp  -o $@
    1.74 +
    1.75 +clean:
    1.76 +	-rm -fr ${TEST_EXE} *.o *.rpo *.obj *.out core *~ Templates.DB SunWS_cache cxx_repository