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 
     10 # point this to proper location
     11 STL_INCL= -I../../stlport
     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 OBJECTS = test_algo.o  \
     23 test_algobase.o     test_list.o test_slist.o \
     24 test_bit_vector.o   test_vector.o \
     25 test_deque.o test_set.o test_map.o \
     26 test_hash_map.o  test_hash_set.o test_rope.o \
     27 test_string.o test_bitset.o test_valarray.o
     28 
     29 LIST=${AUX_LIST} ${TEST_LIST}
     30 
     31 # OBJECTS = $(LIST:%.cpp=%.o) $(STAT_MODULE)
     32 EXECS = $(LIST:%.cpp=%)
     33 TESTS = $(LIST:%.cpp=%.out)
     34 TEST_EXE  = eh_test
     35 TEST  = eh_test.out
     36 
     37 CC = CC
     38 CXX = $(CC)
     39 
     40 CXXFLAGS = -w ${STL_INCL} -D_STLP_NO_CUSTOM_IO
     41 
     42 LIBS = -lm 
     43 
     44 LIBSTLPORT = -L../../lib -lstlport_hp
     45 
     46 check: $(TEST)
     47 
     48 all: $(TEST_EXE)
     49 	echo done.
     50 
     51 $(TEST_EXE) : $(OBJECTS)
     52 	$(CXX) $(CXXFLAGS) $(OBJECTS) ${LIBSTLPORT} $(LIBS) -o $(TEST_EXE)
     53 
     54 $(TEST) : $(TEST_EXE)
     55 	$(TEST_EXE)
     56 
     57 SUFFIXES: .cpp .o .i .s .out .res .y
     58 
     59 .cpp.o :
     60 	$(CXX) $(CXXFLAGS) $< -c -o $@
     61 
     62 .cpp.i :
     63 	$(CXX) $(CXXFLAGS) $< -E -H > $@
     64 
     65 .cpp.out:
     66 	$(CXX) $(CXXFLAGS) $< -c -USINGLE -DMAIN -g -o $*.o
     67 	$(CXX) $(CXXFLAGS) $*.o $(LIBS) -o $*
     68 	./$* -q
     69 	-rm -f $*
     70 
     71 .cpp.s:
     72 	$(CXX) $(CXXFLAGS) -O4 -S -pto $<  -o $@
     73 
     74 clean:
     75 	-rm -fr ${TEST_EXE} *.o *.rpo *.obj *.out core *~ Templates.DB SunWS_cache
     76 
     77 
     78 
     79 
     80 
     81 
     82