home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / stlpt453.zip / STLport-4.5.3 / test / eh / egcs.mak < prev    next >
Makefile  |  2001-05-25  |  2KB  |  76 lines

  1. # ;;; -*- Mode:makefile;-*- 
  2. # Generated automatically from Makefile.in by configure.
  3. # This requires GNU make.
  4.  
  5. srcdir = .
  6. VPATH = .
  7.  
  8. # point this to proper location
  9. STL_INCL=../../stlport
  10.  
  11. AUX_LIST=TestClass.cpp main.cpp nc_alloc.cpp random_number.cpp
  12.  
  13. TEST_LIST=test_algo.cpp  \
  14. test_algobase.cpp     test_list.cpp test_slist.cpp \
  15. test_bit_vector.cpp   test_vector.cpp \
  16. test_deque.cpp test_set.cpp test_map.cpp \
  17. test_hash_map.cpp  test_hash_set.cpp test_rope.cpp \
  18. test_string.cpp test_bitset.cpp test_valarray.cpp
  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 = egcs-c++
  29. CXX = $(CC)
  30.  
  31. # for egcs
  32. REPO_FLAGS =
  33.  
  34. # CXXFLAGS = -g -Wall -I${STL_INCL}  -I. -D_STLP_USE_NEWALLOC -D_STLP_DEBUG_ALLOC ${REPO_FLAGS} -DEH_NEW_HEADERS 
  35.  
  36. # CXXFLAGS = -Wall -ansi -I${STL_INCL}  -I. -D_STLP_DEBUG ${REPO_FLAGS} ${CXX_EXTRA_FLAGS}
  37. 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
  38.  
  39. # CXXFLAGS = -Wall -I${STL_INCL}  -I. -D_STLP_USE_NEWALLOC ${REPO_FLAGS} ${CXX_EXTRA_FLAGS}
  40.  
  41.  
  42. LIBS = -lm 
  43. LIBSTDCXX = 
  44.  
  45. check: $(TEST)
  46.  
  47. $(TEST_EXE) : $(OBJECTS)
  48.     $(CXX) $(CXXFLAGS) $(OBJECTS) $(LIBS) -o $(TEST_EXE)
  49.  
  50.  
  51. $(TEST) : $(TEST_EXE)
  52.     $(TEST_EXE)
  53.  
  54. SUFFIXES: .cpp.o.exe.out.res
  55.  
  56. %.o : %.cpp
  57.     $(CXX) $(CXXFLAGS) $< -c -o $@
  58.  
  59. %.i : %.cpp
  60.     $(CXX) $(CXXFLAGS) $< -E -H -o $@
  61.  
  62. %.out: %.cpp
  63.     $(CXX) $(CXXFLAGS) $< -c -USINGLE -DMAIN -g -o $*.o
  64.     $(CXX) $(CXXFLAGS) $*.o $(LIBS) -o $*
  65.     ./$* > $@
  66.     -rm -f $*
  67.  
  68. %.s: %.cpp
  69.     $(CXX) $(CXXFLAGS) -O4 -S -pto $<  -o $@
  70.  
  71. %.E: %.cpp
  72.     $(CXX) $(CXXFLAGS) -E $<  -o $@
  73.  
  74. clean:
  75.     -rm -fr ${TEST_EXE} $(OBJDIR) $(D_OBJDIR) $(NOSGI_OBJDIR) *.o *.rpo *.obj *.out core *~ Templates.DB
  76.