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 srcdir = .
      6 VPATH = .
      7 
      8 # point this to proper location
      9 STL_INCL=../../stlport
     10 
     11 AUX_LIST=TestClass.cpp main.cpp nc_alloc.cpp random_number.cpp
     12 
     13 TEST_LIST=test_algo.cpp  \
     14 test_algobase.cpp     test_list.cpp test_slist.cpp \
     15 test_bit_vector.cpp   test_vector.cpp \
     16 test_deque.cpp test_set.cpp test_map.cpp \
     17 test_hash_map.cpp  test_hash_set.cpp test_rope.cpp \
     18 test_string.cpp test_bitset.cpp test_valarray.cpp
     19 
     20 LIST=${AUX_LIST} ${TEST_LIST}
     21 
     22 OBJECTS = $(LIST:%.cpp=%.o) $(STAT_MODULE)
     23 EXECS = $(LIST:%.cpp=%)
     24 TESTS = $(LIST:%.cpp=%.out)
     25 TEST_EXE  = ./eh_test
     26 TEST  = ./eh_test.out
     27 
     28 CC = e:\lang\como\bin\como
     29 CXX = $(CC) 
     30 
     31 # __COMO__ appears not to be defined automatically ;(
     32 CXXFLAGS = -D__COMO__ -D_MSC_VER=1200 --exceptions --microsoft -D_STLP_DEBUG -I${STL_INCL}  -I. ${CXX_EXTRA_FLAGS}
     33 
     34 LIBS = -lm 
     35 LIBSTDCXX = 
     36 
     37 check: $(TEST)
     38 
     39 $(TEST_EXE) : $(OBJECTS)
     40 	$(CXX) $(CXXFLAGS) $(OBJECTS) $(LIBS) -o $(TEST_EXE)
     41 
     42 
     43 $(TEST) : $(TEST_EXE)
     44 	$(TEST_EXE)
     45 
     46 SUFFIXES: .cpp.o.exe.out.res
     47 
     48 %.o : %.cpp
     49 	$(CXX) $(CXXFLAGS) $< -c -o $@
     50 
     51 %.i : %.cpp
     52 	$(CXX) $(CXXFLAGS) $< -E -H -o $@
     53 
     54 %.out: %.cpp
     55 	$(CXX) $(CXXFLAGS) $< -c -USINGLE -DMAIN -g -o $*.o
     56 	$(CXX) $(CXXFLAGS) $*.o $(LIBS) -o $*
     57 	./$* > $@
     58 	-rm -f $*
     59 
     60 %.s: %.cpp
     61 	$(CXX) $(CXXFLAGS) -O4 -S -pto $<  -o $@
     62 
     63 %.E: %.cpp
     64 	$(CXX) $(CXXFLAGS) -E $<  -o $@
     65 
     66 clean:
     67 	-rm -fr ${TEST_EXE} *.o *.rpo *.obj *.out core *~ Templates.DB
     68