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 
      6 SHELL=/bin/sh
      7 
      8 # point this to proper location
      9 STL_INCL= -I${PWD}/../../stlport
     10 
     11 # STL_INCL= -DEH_NO_SGI_STL
     12 
     13 AUX_LIST=TestClass.cpp main.cpp nc_alloc.cpp random_number.cpp
     14 
     15 TEST_LIST=test_algo.cpp  \
     16 test_algobase.cpp     test_list.cpp test_slist.cpp \
     17 test_bit_vector.cpp   test_vector.cpp \
     18 test_deque.cpp test_set.cpp test_map.cpp \
     19 test_hash_map.cpp  test_hash_set.cpp test_rope.cpp \
     20 test_string.cpp test_bitset.cpp test_valarray.cpp
     21 
     22 LIST=${AUX_LIST} ${TEST_LIST}
     23 
     24 OBJECTS = $(LIST:%.cpp=%.o) $(STAT_MODULE)
     25 EXECS = $(LIST:%.cpp=%)
     26 TESTS = $(LIST:%.cpp=%.out)
     27 TEST_EXE  = eh_test
     28 TEST  = eh_test.out
     29 
     30 CC = CC
     31 CXX = $(CC)
     32 
     33 CXXFLAGS = ${STL_INCL} -xarch=v9 -library=no%Cstd -features=rtti -DEH_VECTOR_OPERATOR_NEW -DEH_DELETE_HAS_THROW_SPEC -xildoff -g -D_REENTRANT -DNO_FAST_ALLOCATOR
     34 
     35 # This is to test with native STL
     36 # CXXFLAGS = +w2 -xildoff -D_STLP_USE_NEWALLOC -DEH_NO_SGI_STL -DEH_NEW_HEADERS -DEH_VECTOR_OPERATOR_NEW -DEH_DELETE_HAS_THROW_SPEC
     37 
     38 
     39 LIBS = -lm 
     40 LIBSTDCXX = 
     41 
     42 LIBSTLPORT = -library=no%Cstd -L../../lib -lstlport_sunpro64
     43 
     44 
     45 check: $(TEST)
     46 
     47 $(TEST) : $(OBJECTS)
     48 	$(CXX) $(CXXFLAGS) $(OBJECTS) ${LIBSTLPORT} $(LIBS) -o $(TEST_EXE)
     49 	LD_LIBRARY_PATH="../../lib;${LD_LIBRARY_PATH}" ./$(TEST_EXE) -s 100
     50 
     51 SUFFIXES: .cpp.o.out.res
     52 
     53 %.o : %.cpp
     54 	$(CXX) $(CXXFLAGS) $< -c -o $@
     55 
     56 %.i : %.cpp
     57 	$(CXX) $(CXXFLAGS) $< -E -H > $@
     58 
     59 %.out: %.cpp
     60 	$(CXX) $(CXXFLAGS) $< -c -USINGLE -DMAIN -g -o $*.o
     61 	$(CXX) $(CXXFLAGS) $*.o $(LIBS) -o $*
     62 	./$* -q
     63 	-rm -f $*
     64 
     65 %.s: %.cpp
     66 	$(CXX) $(CXXFLAGS) -O4 -S -pto $<  -o $@
     67 
     68 clean:
     69 	-rm -fr ${TEST_EXE} *.o *.rpo *.obj *.out core *~ Templates.DB SunWS_cache
     70