os/ossrv/genericopenlibs/cppstdlib/stl/test/eh/kai.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/kai.mak	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,65 @@
     1.4 +# ;;; -*- Mode:makefile;-*- 
     1.5 +# Generated automatically from Makefile.in by configure.
     1.6 +
     1.7 +# point this to proper location
     1.8 +STL_INCL= -I../../stlport 
     1.9 +# STL_INCL= -DEH_NO_SGI_STL
    1.10 +
    1.11 +AUX_LIST=TestClass.cpp main.cpp nc_alloc.cpp random_number.cpp
    1.12 +
    1.13 +TEST_LIST=test_algo.cpp  \
    1.14 +test_algobase.cpp     test_list.cpp test_slist.cpp \
    1.15 +test_bit_vector.cpp   test_vector.cpp \
    1.16 +test_deque.cpp test_set.cpp test_map.cpp \
    1.17 +test_hash_map.cpp  test_hash_set.cpp test_rope.cpp \
    1.18 +test_string.cpp test_bitset.cpp test_valarray.cpp
    1.19 +
    1.20 +# TEST_LIST=test_deque.cpp
    1.21 +
    1.22 +
    1.23 +LIST=${AUX_LIST} ${TEST_LIST}
    1.24 +
    1.25 +OBJECTS = $(LIST:%.cpp=%.o) $(STAT_MODULE)
    1.26 +EXECS = $(LIST:%.cpp=%)
    1.27 +TESTS = $(LIST:%.cpp=%.out)
    1.28 +TEST_EXE  = eh_test
    1.29 +TEST  = eh_test.out
    1.30 +
    1.31 +CC = KCC
    1.32 +CXX = $(CC)
    1.33 +
    1.34 +CXXFLAGS = -w -mt --one_per ${STL_INCL} -D_STLP_USE_NEWALLOC -DEH_VECTOR_OPERATOR_NEW -DEH_DELETE_HAS_THROW_SPEC
    1.35 +
    1.36 +# This is to test with native STL
    1.37 +# CXXFLAGS = -w -mt --one_per -D_STLP_USE_NEWALLOC -DEH_NO_SGI_STL -DEH_NEW_HEADERS -DEH_VECTOR_OPERATOR_NEW -DEH_DELETE_HAS_THROW_SPEC
    1.38 +
    1.39 +# This is to test with STLport iostreams
    1.40 +LIBS = -L../../lib -lstlport_kcc -lm 
    1.41 +
    1.42 +LIBSTDCXX = 
    1.43 +
    1.44 +check: $(TEST)
    1.45 +
    1.46 +$(TEST) : $(OBJECTS)
    1.47 +	$(CXX) $(CXXFLAGS) $(OBJECTS) $(LIBS) -o $(TEST_EXE)
    1.48 +	$(TEST_EXE)
    1.49 +
    1.50 +SUFFIXES: .cpp.o.out.res
    1.51 +
    1.52 +%.o : %.cpp
    1.53 +	$(CXX) $(CXXFLAGS) $< -c -o $@
    1.54 +
    1.55 +%.i : %.cpp
    1.56 +	$(CXX) $(CXXFLAGS) $< -E -H > $@
    1.57 +
    1.58 +%.out: %.cpp
    1.59 +	$(CXX) $(CXXFLAGS) $< -c -USINGLE -DMAIN -g -o $*.o
    1.60 +	$(CXX) $(CXXFLAGS) $*.o $(LIBS) -o $*
    1.61 +	./$* -q
    1.62 +	-rm -f $*
    1.63 +
    1.64 +%.s: %.cpp
    1.65 +	$(CXX) $(CXXFLAGS) -O4 -S -pto $<  -o $@
    1.66 +
    1.67 +clean:
    1.68 +	-rm -fr ${TEST_EXE} *.o *.rpo *.obj *.out core *~ Templates.DB SunWS_cache ti_files