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 39CXXFLAGS = -Wall -fhandle-exceptions -g ${STL_INCL} -I. ${CXX_EXTRA_FLAGS} -D_STLP_NO_OWN_IOSTREAMS -D_STLP_DEBUG_UNINITIALIZED 40 41check: $(TEST) 42 43LIBS = -lm 44D_LIBSTLPORT = -L../../lib -lstlport_gcc_debug 45LIBSTLPORT = -L../../lib -lstlport_gcc 46 47all: $(TEST_EXE) $(D_TEST_EXE) $(NOSGI_TEST_EXE) 48 49check_nosgi: $(NOSGI_TEST) 50check_d: $(D_TEST) 51 52 53$(TEST_EXE) : $(OBJECTS) 54 $(CXX) $(CXXFLAGS) $(OBJECTS) $(LIBS) -o $(TEST_EXE) 55 56 57$(TEST) : $(TEST_EXE) 58 $(TEST_EXE) 59 60$(D_TEST) : $(D_TEST_EXE) 61 $(D_TEST_EXE) 62 63$(NOSGI_TEST) : $(NOSGI_TEST_EXE) 64 $(NOSGI_TEST_EXE) 65 66SUFFIXES: .cpp.o.exe.out.res 67 68nosgi_obj/%.o : %.cpp 69 $(CXX) $(NOSGI_CXXFLAGS) $< -c -o $@ 70 71d_obj/%.o : %.cpp 72 $(CXX) $(D_CXXFLAGS) $< -c -o $@ 73 74obj/%.o : %.cpp 75 $(CXX) $(CXXFLAGS) $< -c -o $@ 76 77obj/%.i : %.cpp 78 $(CXX) $(CXXFLAGS) $< -E -H > $@ 79 80%.out: %.cpp 81 $(CXX) $(CXXFLAGS) $< -c -USINGLE -DMAIN -g -o $*.o 82 $(CXX) $(CXXFLAGS) $*.o $(LIBS) -o $* 83 ./$* > $@ 84 -rm -f $* 85 86%.s: %.cpp 87 $(CXX) $(CXXFLAGS) -O4 -S -pto $< -o $@ 88 89%.E: %.cpp 90 $(CXX) $(CXXFLAGS) -E $< -o $@ 91 92clean: 93 -rm -fr ${TEST_EXE} *.o */*.o *.rpo *.obj *.out core *~ Templates.DB 94