1 # ;;; -*- Mode:makefile;-*- 2 # Generated automatically from Makefile.in by configure. 3 # This requires GNU make. 4 5 SHELL=/bin/sh 6 7 # srcdir = . 8 # VPATH = . 9 10 11 STL_INCL=-I${PWD}/../../stlport/ 12 13 # STL_INCL= -DEH_NO_SGI_STL 14 15 AUX_LIST=TestClass.o main.o nc_alloc.o random_number.o 16 17 TEST_LIST=test_algo.o \ 18 test_algobase.o test_list.o test_slist.o \ 19 test_bit_vector.o test_vector.o \ 20 test_deque.o test_set.o test_map.o \ 21 test_hash_map.o test_hash_set.o test_rope.o \ 22 test_string.o test_bitset.o test_valarray.o 23 24 LIST=${AUX_LIST} ${TEST_LIST} 25 26 OBJECTS = $(LIST) 27 EXECS = $(LIST:%.o=%) 28 TESTS = $(LIST:%.o=%.out) 29 TEST_EXE = eh_test 30 TEST = eh_test.out 31 32 CC = CC 33 CXX = $(CC) 34 35 # CXXFLAGS = -J 4 -ansi -LANG:std -I. ${STL_INCL} ${DEBUG_FLAGS} -I. -D_STLP_NO_OWN_IOSTREAMS -D_STLP_NO_NEW_IOSTREAMS 36 CXXFLAGS = -J 4 -ansi -LANG:std -I. ${STL_INCL} ${DEBUG_FLAGS} -I. 37 38 LIBS = -L../../lib -lstlport_mipspro -lm 39 LIBSTDCXX = 40 41 .SUFFIXES: .cpp .i .o .out .res 42 43 check: $(TEST) 44 45 $(TEST) : $(OBJECTS) 46 $(CXX) $(CXXFLAGS) $(OBJECTS) $(LIBS) -o $(TEST_EXE) 47 LD_LIBRARY_PATH="../../lib:$(LD_LIBRARY_PATH)" ./$(TEST_EXE) -s 100 48 49 .cpp.o: 50 $(CXX) $(CXXFLAGS) $< -c -o $@ 51 52 .cpp.i: 53 $(CXX) $(CXXFLAGS) $< -E > $@ 54 55 %.out: %.cpp 56 $(CXX) $(CXXFLAGS) $*.cpp -c -USINGLE -DMAIN -g -o $*.o 57 $(CXX) $(CXXFLAGS) $*.o $(LIBS) -o $* 58 ./$* -q 59 -rm -f $* 60 61 clean: 62 -rm -fr ${TEST_EXE} *.o *.rpo *.obj *.out core *~ Templates.DB SunWS_cache cxx_repository 63