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 = aCC 37CXX = $(CC) 38 39CXX_EXTRA_FLAGS = -AA -DEH_DELETE_HAS_THROW_SPEC 40# dwa 12/22/99 -- had to turn off -ansi flag so we could use SGI IOSTREAMS 41# also, test_slist won't compile with -O3/-O2 when targeting PPC. It fails 42# in the assembler with 'invalid relocation type' 43CXXFLAGS = -g -O ${STL_INCL} -I. ${CXX_EXTRA_FLAGS} -DEH_VECTOR_OPERATOR_NEW 44D_CXXFLAGS = -g -O ${STL_INCL} -I. ${CXX_EXTRA_FLAGS} -DEH_VECTOR_OPERATOR_NEW -D_STLP_DEBUG -D_STLP_USE_STATIC_LIB 45NOSGI_CXXFLAGS = -g -O ${STL_INCL} -I. ${CXX_EXTRA_FLAGS} -D_STLP_NO_OWN_IOSTREAMS -D_STLP_DEBUG_UNINITIALIZED -DEH_VECTOR_OPERATOR_NEW 46 47check: $(TEST) 48 49HP_VERSION=$(shell uname -r) 50ifeq (${HP_VERSION},B.10.20) 51PTHREAD_LIB=-lcma 52else 53PTHREAD_LIB=-lpthread +nostl 54endif 55 56LIBS = $(PTHREAD_LIB) -lm 57 58D_LIBSTLPORT = -L../../lib -lstlport_aCC_debug 59LIBSTLPORT = -L../../lib -lstlport_aCC 60 61all: $(TEST_EXE) $(D_TEST_EXE) $(NOSGI_TEST_EXE) 62 63check_nosgi: $(NOSGI_TEST) 64check_d: $(D_TEST) 65 66 67$(TEST_EXE) : $(OBJECTS) 68 $(CXX) $(CXXFLAGS) $(OBJECTS) $(LIBSTLPORT) $(LIBS) -o $(TEST_EXE) 69 70$(D_TEST_EXE) : $(D_OBJECTS) 71 $(CXX) $(D_CXXFLAGS) $(D_OBJECTS) $(D_LIBSTLPORT) $(LIBS) -o $(D_TEST_EXE) 72 73$(NOSGI_TEST_EXE) : $(NOSGI_OBJECTS) 74 $(CXX) $(NOSGI_CXXFLAGS) $(NOSGI_OBJECTS) $(LIBS) -o $(NOSGI_TEST_EXE) 75 76 77$(TEST) : $(TEST_EXE) 78 $(TEST_EXE) 79 80$(D_TEST) : $(D_TEST_EXE) 81 $(D_TEST_EXE) 82 83$(NOSGI_TEST) : $(NOSGI_TEST_EXE) 84 $(NOSGI_TEST_EXE) 85 86SUFFIXES: .cpp.o.exe.out.res 87 88nosgi_obj/%.o : %.cpp 89 $(CXX) $(NOSGI_CXXFLAGS) $< -c -o $@ 90 91d_obj/%.o : %.cpp 92 $(CXX) $(D_CXXFLAGS) $< -c -o $@ 93 94obj/%.o : %.cpp 95 $(CXX) $(CXXFLAGS) $< -c -o $@ 96 97nosgi_obj/%.i : %.cpp 98 $(CXX) $(NOSGI_CXXFLAGS) $< -E -H > $@ 99 100d_obj/%.i : %.cpp 101 $(CXX) $(D_CXXFLAGS) $< -E -H > $@ 102 103obj/%.i : %.cpp 104 $(CXX) $(CXXFLAGS) $< -E -H > $@ 105 106%.out: %.cpp 107 $(CXX) $(CXXFLAGS) $< -c -USINGLE -DMAIN -g -o $*.o 108 $(CXX) $(CXXFLAGS) $*.o $(LIBS) -o $* 109 ./$* > $@ 110 -rm -f $* 111 112%.s: %.cpp 113 $(CXX) $(CXXFLAGS) -O4 -S -pto $< -o $@ 114 115%.E: %.cpp 116 $(CXX) $(CXXFLAGS) -E $< -o $@ 117 118clean: 119 -rm -fr ${TEST_EXE} *.o */*.o *.rpo *.obj *.out core *~ Templates.DB 120