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