1# ;;; -*- Mode:makefile;-*- 2# Generated automatically from Makefile.in by configure. 3# This requires GNU make. 4 5# SHELL=/bin/sh 6# srcdir = . 7# VPATH = . 8 9 10# point this to proper location 11STL_INCL= -I../../stlport 12 13AUX_LIST=TestClass.cpp main.cpp nc_alloc.cpp random_number.cpp 14 15TEST_LIST=test_algo.cpp \ 16test_algobase.cpp test_list.cpp test_slist.cpp \ 17test_bit_vector.cpp test_vector.cpp \ 18test_deque.cpp test_set.cpp test_map.cpp \ 19test_hash_map.cpp test_hash_set.cpp test_rope.cpp \ 20test_string.cpp test_bitset.cpp test_valarray.cpp 21 22OBJECTS = test_algo.o \ 23test_algobase.o test_list.o test_slist.o \ 24test_bit_vector.o test_vector.o \ 25test_deque.o test_set.o test_map.o \ 26test_hash_map.o test_hash_set.o test_rope.o \ 27test_string.o test_bitset.o test_valarray.o 28 29LIST=${AUX_LIST} ${TEST_LIST} 30 31# OBJECTS = $(LIST:%.cpp=%.o) $(STAT_MODULE) 32EXECS = $(LIST:%.cpp=%) 33TESTS = $(LIST:%.cpp=%.out) 34TEST_EXE = eh_test 35TEST = eh_test.out 36 37CC = CC 38CXX = $(CC) 39 40CXXFLAGS = -w ${STL_INCL} -D_STLP_NO_CUSTOM_IO 41 42LIBS = -lm 43 44LIBSTLPORT = -L../../lib -lstlport_hp 45 46check: $(TEST) 47 48all: $(TEST_EXE) 49 echo done. 50 51$(TEST_EXE) : $(OBJECTS) 52 $(CXX) $(CXXFLAGS) $(OBJECTS) ${LIBSTLPORT} $(LIBS) -o $(TEST_EXE) 53 54$(TEST) : $(TEST_EXE) 55 $(TEST_EXE) 56 57SUFFIXES: .cpp .o .i .s .out .res .y 58 59.cpp.o : 60 $(CXX) $(CXXFLAGS) $< -c -o $@ 61 62.cpp.i : 63 $(CXX) $(CXXFLAGS) $< -E -H > $@ 64 65.cpp.out: 66 $(CXX) $(CXXFLAGS) $< -c -USINGLE -DMAIN -g -o $*.o 67 $(CXX) $(CXXFLAGS) $*.o $(LIBS) -o $* 68 ./$* -q 69 -rm -f $* 70 71.cpp.s: 72 $(CXX) $(CXXFLAGS) -O4 -S -pto $< -o $@ 73 74clean: 75 -rm -fr ${TEST_EXE} *.o *.rpo *.obj *.out core *~ Templates.DB SunWS_cache 76 77 78 79 80 81 82