os/ossrv/genericopenlibs/cppstdlib/stl/test/eh/kai.mak
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 # ;;; -*- Mode:makefile;-*- 
     2 # Generated automatically from Makefile.in by configure.
     3 
     4 # point this to proper location
     5 STL_INCL= -I../../stlport 
     6 # STL_INCL= -DEH_NO_SGI_STL
     7 
     8 AUX_LIST=TestClass.cpp main.cpp nc_alloc.cpp random_number.cpp
     9 
    10 TEST_LIST=test_algo.cpp  \
    11 test_algobase.cpp     test_list.cpp test_slist.cpp \
    12 test_bit_vector.cpp   test_vector.cpp \
    13 test_deque.cpp test_set.cpp test_map.cpp \
    14 test_hash_map.cpp  test_hash_set.cpp test_rope.cpp \
    15 test_string.cpp test_bitset.cpp test_valarray.cpp
    16 
    17 # TEST_LIST=test_deque.cpp
    18 
    19 
    20 LIST=${AUX_LIST} ${TEST_LIST}
    21 
    22 OBJECTS = $(LIST:%.cpp=%.o) $(STAT_MODULE)
    23 EXECS = $(LIST:%.cpp=%)
    24 TESTS = $(LIST:%.cpp=%.out)
    25 TEST_EXE  = eh_test
    26 TEST  = eh_test.out
    27 
    28 CC = KCC
    29 CXX = $(CC)
    30 
    31 CXXFLAGS = -w -mt --one_per ${STL_INCL} -D_STLP_USE_NEWALLOC -DEH_VECTOR_OPERATOR_NEW -DEH_DELETE_HAS_THROW_SPEC
    32 
    33 # This is to test with native STL
    34 # 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
    35 
    36 # This is to test with STLport iostreams
    37 LIBS = -L../../lib -lstlport_kcc -lm 
    38 
    39 LIBSTDCXX = 
    40 
    41 check: $(TEST)
    42 
    43 $(TEST) : $(OBJECTS)
    44 	$(CXX) $(CXXFLAGS) $(OBJECTS) $(LIBS) -o $(TEST_EXE)
    45 	$(TEST_EXE)
    46 
    47 SUFFIXES: .cpp.o.out.res
    48 
    49 %.o : %.cpp
    50 	$(CXX) $(CXXFLAGS) $< -c -o $@
    51 
    52 %.i : %.cpp
    53 	$(CXX) $(CXXFLAGS) $< -E -H > $@
    54 
    55 %.out: %.cpp
    56 	$(CXX) $(CXXFLAGS) $< -c -USINGLE -DMAIN -g -o $*.o
    57 	$(CXX) $(CXXFLAGS) $*.o $(LIBS) -o $*
    58 	./$* -q
    59 	-rm -f $*
    60 
    61 %.s: %.cpp
    62 	$(CXX) $(CXXFLAGS) -O4 -S -pto $<  -o $@
    63 
    64 clean:
    65 	-rm -fr ${TEST_EXE} *.o *.rpo *.obj *.out core *~ Templates.DB SunWS_cache ti_files