1# ;;; -*- Mode:makefile;-*- 2# Generated automatically from Makefile.in by configure. 3# This requires GNU make. 4 5srcdir = . 6VPATH = . 7 8# point this to proper location 9STL_INCL=-I../../stlport 10 11AUX_LIST=TestClass.cpp main.cpp nc_alloc.cpp random_number.cpp 12 13TEST_LIST=test_algo.cpp \ 14test_algobase.cpp test_list.cpp test_slist.cpp \ 15test_bit_vector.cpp test_vector.cpp \ 16test_deque.cpp test_set.cpp test_map.cpp \ 17test_hash_map.cpp test_hash_set.cpp test_rope.cpp \ 18test_string.cpp test_bitset.cpp test_valarray.cpp 19 20LIST=${AUX_LIST} ${TEST_LIST} 21 22OBJECTS = $(LIST:%.cpp=obj/%.o) $(STAT_MODULE) 23D_OBJECTS = $(LIST:%.cpp=d_obj/%.o) $(STAT_MODULE) 24NOSGI_OBJECTS = $(LIST:%.cpp=nosgi_obj/%.o) $(STAT_MODULE) 25 26EXECS = $(LIST:%.cpp=%) 27TESTS = $(LIST:%.cpp=%.out) 28TEST_EXE = ./eh_test 29D_TEST_EXE = ./eh_test_d 30NOSGI_TEST_EXE = ./eh_test_nosgi 31 32TEST = ./eh_test.out 33D_TEST = ./eh_test_d.out 34NOSGI_TEST = ./eh_test_nosgi.out 35 36CC =c++ 37CXX = $(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' 42CXXFLAGS = -Wall -O ${STL_INCL} -I. ${CXX_EXTRA_FLAGS} -DEH_VECTOR_OPERATOR_NEW -g -D_STLP_HAS_NO_NAMESPACES 43D_CXXFLAGS = -Wall -g -O ${STL_INCL} -I. ${CXX_EXTRA_FLAGS} -DEH_VECTOR_OPERATOR_NEW -D_STLP_DEBUG 44NOSGI_CXXFLAGS = -Wall -g -O ${STL_INCL} -I. ${CXX_EXTRA_FLAGS} -D_STLP_NO_OWN_IOSTREAMS -DEH_VECTOR_OPERATOR_NEW 45 46check: $(TEST) 47 48LIBS = -lm 49D_LIBSTLPORT = -L../../lib -lstlport_gcc_stldebug 50LIBSTLPORT = -L../../lib -lstlport_gcc 51 52all: $(TEST_EXE) $(D_TEST_EXE) $(NOSGI_TEST_EXE) 53 54check_nosgi: $(NOSGI_TEST) 55check_d: $(D_TEST) 56 57 58$(TEST_EXE) : $(OBJECTS) 59 $(CXX) $(CXXFLAGS) $(OBJECTS) $(LIBSTLPORT) $(LIBS) -o $(TEST_EXE) 60 61$(D_TEST_EXE) : $(D_OBJECTS) 62 $(CXX) $(D_CXXFLAGS) $(D_OBJECTS) $(D_LIBSTLPORT) $(LIBS) -o $(D_TEST_EXE) 63 64$(NOSGI_TEST_EXE) : $(NOSGI_OBJECTS) 65 $(CXX) $(NOSGI_CXXFLAGS) $(NOSGI_OBJECTS) $(LIBS) -o $(NOSGI_TEST_EXE) 66 67 68$(TEST) : $(TEST_EXE) 69 LD_LIBRARY_PATH="../../lib:$(LD_LIBRARY_PATH)" time ./$(TEST_EXE) -s 100 70 71$(D_TEST) : $(D_TEST_EXE) 72 $(D_TEST_EXE) 73 74$(NOSGI_TEST) : $(NOSGI_TEST_EXE) 75 $(NOSGI_TEST_EXE) 76 77SUFFIXES: .cpp.o.exe.out.res 78 79nosgi_obj/%.o : %.cpp 80 $(CXX) $(NOSGI_CXXFLAGS) $< -c -o $@ 81 82d_obj/%.o : %.cpp 83 $(CXX) $(D_CXXFLAGS) $< -c -o $@ 84 85obj/%.o : %.cpp 86 $(CXX) $(CXXFLAGS) $< -c -o $@ 87 88nosgi_obj/%.i : %.cpp 89 $(CXX) $(NOSGI_CXXFLAGS) $< -E -H > $@ 90 91d_obj/%.i : %.cpp 92 $(CXX) $(D_CXXFLAGS) $< -E -H > $@ 93 94obj/%.i : %.cpp 95 $(CXX) $(CXXFLAGS) $< -E -H > $@ 96 97%.out: %.cpp 98 $(CXX) $(CXXFLAGS) $< -c -USINGLE -DMAIN -O2 -o $*.o 99 $(CXX) $(CXXFLAGS) $*.o $(LIBSTLPORT) $(LIBS) -o $* 100 ./$* > $@ 101 102%.s: %.cpp 103 $(CXX) $(CXXFLAGS) -O4 -S -pto $< -o $@ 104 105%.E: %.cpp 106 $(CXX) $(CXXFLAGS) -E $< -o $@ 107 108clean: 109 -rm -fr ${TEST_EXE} $(D_TEST_EXE) *.o */*.o *.rpo *.obj *.out core *~ Templates.DB 110