Home | History | Annotate | Download | only in eh
      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 SHELL=/bin/sh
     10 
     11 # point this to proper location
     12 STL_INCL= -I../../stlport
     13 
     14 # STL_INCL= -DEH_NO_SGI_STL
     15 
     16 AUX_LIST=TestClass.cpp main.cpp nc_alloc.cpp random_number.cpp
     17 
     18 TEST_LIST=test_algo.cpp  \
     19 test_algobase.cpp     test_list.cpp test_slist.cpp \
     20 test_bit_vector.cpp   test_vector.cpp \
     21 test_deque.cpp test_set.cpp test_map.cpp \
     22 test_hash_map.cpp  test_hash_set.cpp test_rope.cpp \
     23 test_string.cpp test_bitset.cpp test_valarray.cpp
     24 
     25 LIST=${AUX_LIST} ${TEST_LIST}
     26 
     27 OBJECTS = $(LIST:%.cpp=%.o) $(STAT_MODULE)
     28 EXECS = $(LIST:%.cpp=%)
     29 TESTS = $(LIST:%.cpp=%.out)
     30 TEST_EXE  = eh_test
     31 TEST  = eh_test.out
     32 
     33 CC = CC
     34 CXX = $(CC)
     35 
     36 CXXFLAGS = $(ARCHF) +w2 -mt -features=rtti ${STL_INCL}
     37 # CXXFLAGS = +w2 ${STL_INCL}
     38 
     39 
     40 
     41 LIBS = -lm 
     42 
     43 LIBSTLPORT = -L../../lib -lstlport_sunpro42
     44 
     45 check: $(TEST)
     46 
     47 $(TEST) : $(OBJECTS)
     48 	echo 'Info: For CC 4.x, warnings from ld in the form "symbol `XXX' has differing sizes" are normal.'
     49 	$(CXX) $(CXXFLAGS) $(OBJECTS) ${LIBSTLPORT} $(LIBS) -o $(TEST_EXE)
     50 	LD_LIBRARY_PATH="../../lib:$(LD_LIBRARY_PATH)" ./$(TEST_EXE) -s 100
     51 
     52 SUFFIXES: .cpp.o.out.res
     53 
     54 %.o : %.cpp
     55 	$(CXX) $(CXXFLAGS) $< -c -o $@
     56 
     57 %.i : %.cpp
     58 	$(CXX) $(CXXFLAGS) $< -E -H > $@
     59 
     60 %.out: %.cpp
     61 	$(CXX) $(CXXFLAGS) $< -c -USINGLE -DMAIN -g -o $*.o
     62 	$(CXX) $(CXXFLAGS) $*.o $(LIBSTLPORT) $(LIBS) -o $*
     63 	./$* -q
     64 	-rm -f $*
     65 
     66 %.s: %.cpp
     67 	$(CXX) $(CXXFLAGS) -O4 -S -pto $<  -o $@
     68 
     69 clean:
     70 	-rm -fr ${TEST_EXE} *.o *.rpo *.obj *.out core *~ Templates.DB SunWS_cache
     71 
     72 
     73 
     74 
     75 
     76 
     77