os/ossrv/genericopenlibs/cppstdlib/stl/test/eh/como-linux.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/como-linux.mak	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,69 @@
     1.4 +#
     1.5 +# Note : this makefile has been tested for como-4.3.0.1+gcc-2.96 on Redhat 7.3
     1.6 +#
     1.7 +
     1.8 +.SUFFIXES:
     1.9 +.SUFFIXES: .cc .cpp .o .exe .out
    1.10 +
    1.11 +srcdir = .
    1.12 +VPATH = .
    1.13 +
    1.14 +# point this to proper location
    1.15 +STL_INCL=../../stlport
    1.16 +
    1.17 +AUX_LIST=TestClass.cpp main.cpp nc_alloc.cpp random_number.cpp
    1.18 +
    1.19 +TEST_LIST=test_algo.cpp  \
    1.20 +test_algobase.cpp     test_list.cpp test_slist.cpp \
    1.21 +test_bit_vector.cpp   test_vector.cpp \
    1.22 +test_deque.cpp test_set.cpp test_map.cpp \
    1.23 +test_hash_map.cpp  test_hash_set.cpp test_rope.cpp \
    1.24 +test_string.cpp test_bitset.cpp test_valarray.cpp
    1.25 +
    1.26 +LIST=${AUX_LIST} ${TEST_LIST}
    1.27 +
    1.28 +OBJECTS = $(LIST:%.cpp=%.o) $(STAT_MODULE)
    1.29 +EXECS = $(LIST:%.cpp=%)
    1.30 +TESTS = $(LIST:%.cpp=%.out)
    1.31 +TEST_EXE  = ./eh_test
    1.32 +TEST  = ./eh_test.out
    1.33 +
    1.34 +CC = como
    1.35 +CXX = $(CC) 
    1.36 +
    1.37 +CXXFLAGS = -DLIBCIO= --diag_suppress=68 -D__null=0L -D__GNUG__ -D_STLP_DEBUG -I${STL_INCL}  -I. ${CXX_EXTRA_FLAGS}
    1.38 +
    1.39 +LIBS = -L../../lib -lstlport_como_stldebug -lpthread -lm 
    1.40 +LIBSTDCXX = 
    1.41 +
    1.42 +check: $(TEST)
    1.43 +
    1.44 +$(TEST_EXE) : $(OBJECTS)
    1.45 +	$(CXX) $(CXXFLAGS) $(OBJECTS) $(LIBS) -o $(TEST_EXE)
    1.46 +
    1.47 +
    1.48 +$(TEST) : $(TEST_EXE)
    1.49 +	$(TEST_EXE)
    1.50 +
    1.51 +SUFFIXES: .cpp.o.exe.out.res
    1.52 +
    1.53 +%.o : %.cpp
    1.54 +	$(CXX) $(CXXFLAGS) $< -c -o $@
    1.55 +
    1.56 +%.i : %.cpp
    1.57 +	$(CXX) $(CXXFLAGS) $< -E -H -o $@
    1.58 +
    1.59 +%.out: %.cpp
    1.60 +	$(CXX) $(CXXFLAGS) $< -c -USINGLE -DMAIN -g -o $*.o
    1.61 +	$(CXX) $(CXXFLAGS) $*.o $(LIBS) -o $*
    1.62 +	./$* > $@
    1.63 +	-rm -f $*
    1.64 +
    1.65 +%.s: %.cpp
    1.66 +	$(CXX) $(CXXFLAGS) -O4 -S -pto $<  -o $@
    1.67 +
    1.68 +%.E: %.cpp
    1.69 +	$(CXX) $(CXXFLAGS) -E $<  -o $@
    1.70 +
    1.71 +clean:
    1.72 +	-rm -fr ${TEST_EXE} *.out *.o *.ii *.ti