author | sl@SLION-WIN7.fritz.box |
Fri, 15 Jun 2012 03:10:57 +0200 | |
changeset 0 | bde4ae8d615e |
permissions | -rw-r--r-- |
sl@0 | 1 |
# ;;; -*- Mode:makefile;-*- |
sl@0 | 2 |
# Generated automatically from Makefile.in by configure. |
sl@0 | 3 |
# This requires GNU make. |
sl@0 | 4 |
|
sl@0 | 5 |
srcdir = . |
sl@0 | 6 |
VPATH = . |
sl@0 | 7 |
|
sl@0 | 8 |
# point this to proper location |
sl@0 | 9 |
STL_INCL=-I../../stlport |
sl@0 | 10 |
|
sl@0 | 11 |
AUX_LIST=TestClass.cpp main.cpp nc_alloc.cpp random_number.cpp |
sl@0 | 12 |
|
sl@0 | 13 |
TEST_LIST=test_algo.cpp \ |
sl@0 | 14 |
test_algobase.cpp test_list.cpp test_slist.cpp \ |
sl@0 | 15 |
test_bit_vector.cpp test_vector.cpp \ |
sl@0 | 16 |
test_deque.cpp test_set.cpp test_map.cpp \ |
sl@0 | 17 |
test_hash_map.cpp test_hash_set.cpp test_rope.cpp \ |
sl@0 | 18 |
test_string.cpp test_bitset.cpp test_valarray.cpp |
sl@0 | 19 |
|
sl@0 | 20 |
LIST=${AUX_LIST} ${TEST_LIST} |
sl@0 | 21 |
|
sl@0 | 22 |
OBJECTS = $(LIST:%.cpp=obj/%.o) $(STAT_MODULE) |
sl@0 | 23 |
D_OBJECTS = $(LIST:%.cpp=d_obj/%.o) $(STAT_MODULE) |
sl@0 | 24 |
NOSGI_OBJECTS = $(LIST:%.cpp=nosgi_obj/%.o) $(STAT_MODULE) |
sl@0 | 25 |
|
sl@0 | 26 |
EXECS = $(LIST:%.cpp=%) |
sl@0 | 27 |
TESTS = $(LIST:%.cpp=%.out) |
sl@0 | 28 |
TEST_EXE = ./eh_test |
sl@0 | 29 |
D_TEST_EXE = ./eh_test_d |
sl@0 | 30 |
NOSGI_TEST_EXE = ./eh_test_nosgi |
sl@0 | 31 |
|
sl@0 | 32 |
TEST = ./eh_test.out |
sl@0 | 33 |
D_TEST = ./eh_test_d.out |
sl@0 | 34 |
NOSGI_TEST = ./eh_test_nosgi.out |
sl@0 | 35 |
|
sl@0 | 36 |
CC = c++ |
sl@0 | 37 |
CXX = $(CC) |
sl@0 | 38 |
|
sl@0 | 39 |
CXXFLAGS = -Wall -fhandle-exceptions -g ${STL_INCL} -I. ${CXX_EXTRA_FLAGS} -D_STLP_NO_OWN_IOSTREAMS -D_STLP_DEBUG_UNINITIALIZED |
sl@0 | 40 |
|
sl@0 | 41 |
check: $(TEST) |
sl@0 | 42 |
|
sl@0 | 43 |
LIBS = -lm |
sl@0 | 44 |
D_LIBSTLPORT = -L../../lib -lstlport_gcc_debug |
sl@0 | 45 |
LIBSTLPORT = -L../../lib -lstlport_gcc |
sl@0 | 46 |
|
sl@0 | 47 |
all: $(TEST_EXE) $(D_TEST_EXE) $(NOSGI_TEST_EXE) |
sl@0 | 48 |
|
sl@0 | 49 |
check_nosgi: $(NOSGI_TEST) |
sl@0 | 50 |
check_d: $(D_TEST) |
sl@0 | 51 |
|
sl@0 | 52 |
|
sl@0 | 53 |
$(TEST_EXE) : $(OBJECTS) |
sl@0 | 54 |
$(CXX) $(CXXFLAGS) $(OBJECTS) $(LIBS) -o $(TEST_EXE) |
sl@0 | 55 |
|
sl@0 | 56 |
|
sl@0 | 57 |
$(TEST) : $(TEST_EXE) |
sl@0 | 58 |
$(TEST_EXE) |
sl@0 | 59 |
|
sl@0 | 60 |
$(D_TEST) : $(D_TEST_EXE) |
sl@0 | 61 |
$(D_TEST_EXE) |
sl@0 | 62 |
|
sl@0 | 63 |
$(NOSGI_TEST) : $(NOSGI_TEST_EXE) |
sl@0 | 64 |
$(NOSGI_TEST_EXE) |
sl@0 | 65 |
|
sl@0 | 66 |
SUFFIXES: .cpp.o.exe.out.res |
sl@0 | 67 |
|
sl@0 | 68 |
nosgi_obj/%.o : %.cpp |
sl@0 | 69 |
$(CXX) $(NOSGI_CXXFLAGS) $< -c -o $@ |
sl@0 | 70 |
|
sl@0 | 71 |
d_obj/%.o : %.cpp |
sl@0 | 72 |
$(CXX) $(D_CXXFLAGS) $< -c -o $@ |
sl@0 | 73 |
|
sl@0 | 74 |
obj/%.o : %.cpp |
sl@0 | 75 |
$(CXX) $(CXXFLAGS) $< -c -o $@ |
sl@0 | 76 |
|
sl@0 | 77 |
obj/%.i : %.cpp |
sl@0 | 78 |
$(CXX) $(CXXFLAGS) $< -E -H > $@ |
sl@0 | 79 |
|
sl@0 | 80 |
%.out: %.cpp |
sl@0 | 81 |
$(CXX) $(CXXFLAGS) $< -c -USINGLE -DMAIN -g -o $*.o |
sl@0 | 82 |
$(CXX) $(CXXFLAGS) $*.o $(LIBS) -o $* |
sl@0 | 83 |
./$* > $@ |
sl@0 | 84 |
-rm -f $* |
sl@0 | 85 |
|
sl@0 | 86 |
%.s: %.cpp |
sl@0 | 87 |
$(CXX) $(CXXFLAGS) -O4 -S -pto $< -o $@ |
sl@0 | 88 |
|
sl@0 | 89 |
%.E: %.cpp |
sl@0 | 90 |
$(CXX) $(CXXFLAGS) -E $< -o $@ |
sl@0 | 91 |
|
sl@0 | 92 |
clean: |
sl@0 | 93 |
-rm -fr ${TEST_EXE} *.o */*.o *.rpo *.obj *.out core *~ Templates.DB |