home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / stlpt453.zip / STLport-4.5.3 / test / eh / deccxx.mak < prev    next >
Text File  |  2001-04-13  |  2KB  |  74 lines

  1. # ;;; -*- Mode:makefile;-*- 
  2. # Generated automatically from Makefile.in by configure.
  3. # This requires GNU make.
  4.  
  5. SHELL=/bin/sh
  6.  
  7. # srcdir = .
  8. # VPATH = .
  9.  
  10.  
  11. # point this to proper location
  12. STL_INCL= -I../../stlport
  13.  
  14. # STL_INCL= -DEH_NO_SGI_STL
  15.  
  16. AUX_LIST=TestClass.o main.o nc_alloc.o random_number.o
  17.  
  18. TEST_LIST=test_algo.o  \
  19. test_algobase.o     test_list.o test_slist.o \
  20. test_bit_vector.o   test_vector.o \
  21. test_deque.o test_set.o test_map.o \
  22. test_hash_map.o  test_hash_set.o test_rope.o \
  23. test_string.o test_bitset.o test_valarray.o
  24.  
  25. LIST=${AUX_LIST} ${TEST_LIST}
  26.  
  27. OBJECTS = $(LIST)
  28. EXECS = $(LIST:%.o=%)
  29. TESTS = $(LIST:%.o=%.out)
  30. TEST_EXE  = eh_test
  31. TEST  = eh_test.out
  32.  
  33. CC = cxx
  34. CXX = $(CC)
  35.  
  36. # -std strict_ansi_errors
  37.  
  38. CXXFLAGS = ${STL_INCL} -std strict_ansi_errors -DEH_VECTOR_OPERATOR_NEW -DEH_DELETE_HAS_THROW_SPEC -gall
  39.  
  40. # CXXFLAGS = ${STL_INCL} -std strict_ansi_errors -DEH_VECTOR_OPERATOR_NEW -DEH_DELETE_HAS_THROW_SPEC
  41.  
  42. # This is to test with native STL
  43. # CXXFLAGS = +w2 -xildoff -D_STLP_USE_NEWALLOC -DEH_NO_SGI_STL -DEH_NEW_HEADERS -DEH_VECTOR_OPERATOR_NEW -DEH_DELETE_HAS_THROW_SPEC
  44.  
  45.  
  46. LIBS = -L../../lib -lstlport_dec -lm 
  47. LIBSTDCXX = 
  48.  
  49. .SUFFIXES: .cpp .i .o .out .res
  50.  
  51. check: $(TEST)
  52.  
  53. $(TEST) : $(OBJECTS)
  54.     $(CXX) $(CXXFLAGS) $(OBJECTS) $(LIBS) -o $(TEST_EXE)
  55.     LD_LIBRARY_PATH="../../lib:$(LD_LIBRARY_PATH)" ./$(TEST_EXE) -s 100
  56.  
  57. .cpp.o:
  58.     $(CXX) $(CXXFLAGS) $< -c -o $@
  59.  
  60. .cpp.i:
  61.     $(CXX) $(CXXFLAGS) $< -E > $@
  62.  
  63. %.out: %.cpp
  64.     $(CXX) $(CXXFLAGS) $*.cpp -c -USINGLE -DMAIN -g -o $*.o
  65.     $(CXX) $(CXXFLAGS) $*.o $(LIBS) -o $*
  66.     ./$* -q
  67.     -rm -f $*
  68.  
  69. %.s: %.cpp
  70.     $(CXX) $(CXXFLAGS) -O4 -S -pto $*.cpp  -o $@
  71.  
  72. clean:
  73.     -rm -fr ${TEST_EXE} *.o *.rpo *.obj *.out core *~ Templates.DB SunWS_cache cxx_repository
  74.