1 2SHELL=/bin/sh 3 4# srcdir = . 5# VPATH = . 6 7STL_INCL=-I${PWD}/../../stlport/ 8 9AUX_LIST=TestClass.o main.o nc_alloc.o random_number.o 10 11TEST_LIST=test_algo.o \ 12test_algobase.o test_list.o test_slist.o \ 13test_bit_vector.o test_vector.o \ 14test_deque_cray.o test_set.o test_map.o \ 15test_hash_map.o test_hash_set.o test_rope.o \ 16test_string.o test_bitset.o test_valarray.o 17 18LIST=${AUX_LIST} ${TEST_LIST} 19 20OBJECTS = $(LIST) 21EXECS = $(LIST:%.o=%) 22TESTS = $(LIST:%.o=%.out) 23TEST_EXE = eh_test 24TEST = eh_test.out 25 26CC = CC 27CXX = $(CC) 28 29#CXXFLAGS = -hexceptions -DEH_DELETE_HAS_THROW_SPEC -I. ${STL_INCL} ${DEBUG_FLAGS} 30CXXFLAGS = -D_STLP_HAS_NO_EXCEPTIONS -I. ${STL_INCL} ${DEBUG_FLAGS} 31 32#LIBS = -L../../lib -lstlportx -lpthread 33LIBS = -L../../lib -lstlport -lpthread 34 35.SUFFIXES: .cpp .i .o .out 36 37check: $(TEST) 38 39$(TEST) : $(OBJECTS) 40 $(CXX) $(CXXFLAGS) $(LIBS) $(OBJECTS) -o $(TEST_EXE) 41 ./$(TEST_EXE) -s 100 42 43.cpp.o: 44 $(CXX) $(CXXFLAGS) $< -c -o $@ 45 46.cpp.i: 47 $(CXX) $(CXXFLAGS) $< -E > $@ 48 49%.out: %.cpp 50 $(CXX) $(CXXFLAGS) $*.cpp -c -USINGLE -DMAIN -g -o $*.o 51 $(CXX) $(CXXFLAGS) $(LIBS) $*.o -o $* 52 ./$* -q 53 -rm -f $* 54 55clean: 56 -rm -fr ${TEST_EXE} *.o *.ii *.out core 57