os/ossrv/genericopenlibs/cppstdlib/stl/test/eh/egcs.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/egcs.mak	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,75 @@
     1.4 +# ;;; -*- Mode:makefile;-*- 
     1.5 +# Generated automatically from Makefile.in by configure.
     1.6 +# This requires GNU make.
     1.7 +
     1.8 +srcdir = .
     1.9 +VPATH = .
    1.10 +
    1.11 +# point this to proper location
    1.12 +STL_INCL=../../stlport
    1.13 +
    1.14 +AUX_LIST=TestClass.cpp main.cpp nc_alloc.cpp random_number.cpp
    1.15 +
    1.16 +TEST_LIST=test_algo.cpp  \
    1.17 +test_algobase.cpp     test_list.cpp test_slist.cpp \
    1.18 +test_bit_vector.cpp   test_vector.cpp \
    1.19 +test_deque.cpp test_set.cpp test_map.cpp \
    1.20 +test_hash_map.cpp  test_hash_set.cpp test_rope.cpp \
    1.21 +test_string.cpp test_bitset.cpp test_valarray.cpp
    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 = egcs-c++
    1.32 +CXX = $(CC)
    1.33 +
    1.34 +# for egcs
    1.35 +REPO_FLAGS =
    1.36 +
    1.37 +# CXXFLAGS = -g -Wall -I${STL_INCL}  -I. -D_STLP_USE_NEWALLOC -D_STLP_DEBUG_ALLOC ${REPO_FLAGS} -DEH_NEW_HEADERS 
    1.38 +
    1.39 +# CXXFLAGS = -Wall -ansi -I${STL_INCL}  -I. -D_STLP_DEBUG ${REPO_FLAGS} ${CXX_EXTRA_FLAGS}
    1.40 +CXXFLAGS = -Wall -g  -D_STLP_USE_NEWALLOC -DNO_FAST_ALLOCATOR -ansi -I${STL_INCL}  -I. ${REPO_FLAGS} ${CXX_EXTRA_FLAGS} -DEH_VECTOR_OPERATOR_NEW -D_STLP_DEBUG -D_STLP_NO_DEBUG_EXCEPTIONS
    1.41 +
    1.42 +# CXXFLAGS = -Wall -I${STL_INCL}  -I. -D_STLP_USE_NEWALLOC ${REPO_FLAGS} ${CXX_EXTRA_FLAGS}
    1.43 +
    1.44 +
    1.45 +LIBS = -lm 
    1.46 +LIBSTDCXX = 
    1.47 +
    1.48 +check: $(TEST)
    1.49 +
    1.50 +$(TEST_EXE) : $(OBJECTS)
    1.51 +	$(CXX) $(CXXFLAGS) $(OBJECTS) $(LIBS) -o $(TEST_EXE)
    1.52 +
    1.53 +
    1.54 +$(TEST) : $(TEST_EXE)
    1.55 +	$(TEST_EXE)
    1.56 +
    1.57 +SUFFIXES: .cpp.o.exe.out.res
    1.58 +
    1.59 +%.o : %.cpp
    1.60 +	$(CXX) $(CXXFLAGS) $< -c -o $@
    1.61 +
    1.62 +%.i : %.cpp
    1.63 +	$(CXX) $(CXXFLAGS) $< -E -H -o $@
    1.64 +
    1.65 +%.out: %.cpp
    1.66 +	$(CXX) $(CXXFLAGS) $< -c -USINGLE -DMAIN -g -o $*.o
    1.67 +	$(CXX) $(CXXFLAGS) $*.o $(LIBS) -o $*
    1.68 +	./$* > $@
    1.69 +	-rm -f $*
    1.70 +
    1.71 +%.s: %.cpp
    1.72 +	$(CXX) $(CXXFLAGS) -O4 -S -pto $<  -o $@
    1.73 +
    1.74 +%.E: %.cpp
    1.75 +	$(CXX) $(CXXFLAGS) -E $<  -o $@
    1.76 +
    1.77 +clean:
    1.78 +	-rm -fr ${TEST_EXE} $(OBJDIR) $(D_OBJDIR) $(NOSGI_OBJDIR) *.o *.rpo *.obj *.out core *~ Templates.DB