sl@0: # ;;; -*- Mode:makefile;-*- sl@0: # Generated automatically from Makefile.in by configure. sl@0: # This requires GNU make. sl@0: sl@0: # SHELL=/bin/sh sl@0: # srcdir = . sl@0: # VPATH = . sl@0: sl@0: SHELL=/bin/sh sl@0: sl@0: # point this to proper location sl@0: STL_INCL= -I../../stlport sl@0: sl@0: # STL_INCL= -DEH_NO_SGI_STL sl@0: sl@0: AUX_LIST=TestClass.cpp main.cpp nc_alloc.cpp random_number.cpp sl@0: sl@0: TEST_LIST=test_algo.cpp \ sl@0: test_algobase.cpp test_list.cpp test_slist.cpp \ sl@0: test_bit_vector.cpp test_vector.cpp \ sl@0: test_deque.cpp test_set.cpp test_map.cpp \ sl@0: test_hash_map.cpp test_hash_set.cpp test_rope.cpp \ sl@0: test_string.cpp test_bitset.cpp test_valarray.cpp sl@0: sl@0: LIST=${AUX_LIST} ${TEST_LIST} sl@0: sl@0: OBJECTS = $(LIST:%.cpp=%.o) $(STAT_MODULE) sl@0: EXECS = $(LIST:%.cpp=%) sl@0: TESTS = $(LIST:%.cpp=%.out) sl@0: TEST_EXE = eh_test sl@0: TEST = eh_test.out sl@0: sl@0: CC = CC sl@0: CXX = $(CC) sl@0: sl@0: CXXFLAGS = $(ARCHF) +w2 -mt -features=rtti ${STL_INCL} sl@0: # CXXFLAGS = +w2 ${STL_INCL} sl@0: sl@0: sl@0: sl@0: LIBS = -lm sl@0: sl@0: LIBSTLPORT = -L../../lib -lstlport_sunpro42 sl@0: sl@0: check: $(TEST) sl@0: sl@0: $(TEST) : $(OBJECTS) sl@0: echo 'Info: For CC 4.x, warnings from ld in the form "symbol `XXX' has differing sizes" are normal.' sl@0: $(CXX) $(CXXFLAGS) $(OBJECTS) ${LIBSTLPORT} $(LIBS) -o $(TEST_EXE) sl@0: LD_LIBRARY_PATH="../../lib:$(LD_LIBRARY_PATH)" ./$(TEST_EXE) -s 100 sl@0: sl@0: SUFFIXES: .cpp.o.out.res sl@0: sl@0: %.o : %.cpp sl@0: $(CXX) $(CXXFLAGS) $< -c -o $@ sl@0: sl@0: %.i : %.cpp sl@0: $(CXX) $(CXXFLAGS) $< -E -H > $@ sl@0: sl@0: %.out: %.cpp sl@0: $(CXX) $(CXXFLAGS) $< -c -USINGLE -DMAIN -g -o $*.o sl@0: $(CXX) $(CXXFLAGS) $*.o $(LIBSTLPORT) $(LIBS) -o $* sl@0: ./$* -q sl@0: -rm -f $* sl@0: sl@0: %.s: %.cpp sl@0: $(CXX) $(CXXFLAGS) -O4 -S -pto $< -o $@ sl@0: sl@0: clean: sl@0: -rm -fr ${TEST_EXE} *.o *.rpo *.obj *.out core *~ Templates.DB SunWS_cache sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: