Home | History | Annotate | Download | only in eh
      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=-I../../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=obj/%.o) $(STAT_MODULE)
     23 D_OBJECTS = $(LIST:%.cpp=d_obj/%.o) $(STAT_MODULE)
     24 NOSGI_OBJECTS = $(LIST:%.cpp=nosgi_obj/%.o) $(STAT_MODULE)
     25 
     26 EXECS = $(LIST:%.cpp=%)
     27 TESTS = $(LIST:%.cpp=%.out)
     28 TEST_EXE  = ./eh_test
     29 D_TEST_EXE = ./eh_test_d
     30 NOSGI_TEST_EXE = ./eh_test_nosgi
     31 
     32 TEST  = ./eh_test.out
     33 D_TEST = ./eh_test_d.out
     34 NOSGI_TEST = ./eh_test_nosgi.out
     35 
     36 CC = c++
     37 CXX = $(CC)
     38 
     39 # dwa 12/22/99 -- had to turn off -ansi flag so we could use SGI IOSTREAMS
     40 # also, test_slist won't compile with -O3/-O2 when targeting PPC. It fails 
     41 # in the assembler with 'invalid relocation type'
     42 CXXFLAGS = -Wall -g -O ${STL_INCL} -I. ${CXX_EXTRA_FLAGS} -DEH_VECTOR_OPERATOR_NEW
     43 D_CXXFLAGS = -Wall -g -O ${STL_INCL} -I. ${CXX_EXTRA_FLAGS} -DEH_VECTOR_OPERATOR_NEW -D_STLP_DEBUG -D_STLP_USE_STATIC_LIB
     44 NOSGI_CXXFLAGS = -Wall -g -O2 ${STL_INCL} -I. ${CXX_EXTRA_FLAGS} -D_STLP_NO_OWN_IOSTREAMS -D_STLP_DEBUG_UNINITIALIZED -DEH_VECTOR_OPERATOR_NEW
     45 
     46 check: $(TEST)
     47 
     48 LIBS = -lm 
     49 
     50 D_LIBSTLPORT = -L../../lib -lstlport_mingw32_debug_static
     51 LIBSTLPORT = -L../../lib -lstlport_mingw32_static
     52 
     53 all: $(TEST_EXE) $(D_TEST_EXE) $(NOSGI_TEST_EXE)
     54 
     55 check_nosgi: $(NOSGI_TEST)
     56 check_d: $(D_TEST)
     57 
     58 
     59 $(TEST_EXE) : $(OBJECTS)
     60 	$(CXX) $(CXXFLAGS) $(OBJECTS) $(LIBSTLPORT) $(LIBS) -o $(TEST_EXE)
     61 
     62 $(D_TEST_EXE) : $(D_OBJECTS)
     63 	$(CXX) $(D_CXXFLAGS) $(D_OBJECTS) $(D_LIBSTLPORT) $(LIBS) -o $(D_TEST_EXE)
     64 
     65 $(NOSGI_TEST_EXE) : $(NOSGI_OBJECTS)
     66 	$(CXX) $(NOSGI_CXXFLAGS) $(NOSGI_OBJECTS) $(LIBS) -o $(NOSGI_TEST_EXE)
     67 
     68 
     69 $(TEST) : $(TEST_EXE)
     70 	$(TEST_EXE)
     71 
     72 $(D_TEST) : $(D_TEST_EXE)
     73 	$(D_TEST_EXE)
     74 
     75 $(NOSGI_TEST) : $(NOSGI_TEST_EXE)
     76 	$(NOSGI_TEST_EXE)
     77 
     78 SUFFIXES: .cpp.o.exe.out.res
     79 
     80 nosgi_obj/%.o : %.cpp
     81 	$(CXX) $(NOSGI_CXXFLAGS) $< -c -o $@
     82 
     83 d_obj/%.o : %.cpp
     84 	$(CXX) $(D_CXXFLAGS) $< -c -o $@
     85 
     86 obj/%.o : %.cpp
     87 	$(CXX) $(CXXFLAGS) $< -c -o $@
     88 
     89 nosgi_obj/%.i : %.cpp
     90 	$(CXX) $(NOSGI_CXXFLAGS) $< -E -H > $@
     91 
     92 d_obj/%.i : %.cpp
     93 	$(CXX) $(D_CXXFLAGS) $< -E -H > $@
     94 
     95 obj/%.i : %.cpp
     96 	$(CXX) $(CXXFLAGS) $< -E -H > $@
     97 
     98 %.out: %.cpp
     99 	$(CXX) $(CXXFLAGS) $< -c -USINGLE -DMAIN -g -o $*.o
    100 	$(CXX) $(CXXFLAGS) $*.o $(LIBS) -o $*
    101 	./$* > $@
    102 	-rm -f $*
    103 
    104 %.s: %.cpp
    105 	$(CXX) $(CXXFLAGS) -O4 -S -pto $<  -o $@
    106 
    107 %.E: %.cpp
    108 	$(CXX) $(CXXFLAGS) -E $<  -o $@
    109 
    110 clean:
    111 	-rm -fr ${TEST_EXE} *.o */*.o *.rpo *.obj *.out core *~ Templates.DB
    112