os/ossrv/genericopenlibs/cppstdlib/stl/test/eh/como-linux.mak
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
#
sl@0
     2
# Note : this makefile has been tested for como-4.3.0.1+gcc-2.96 on Redhat 7.3
sl@0
     3
#
sl@0
     4
sl@0
     5
.SUFFIXES:
sl@0
     6
.SUFFIXES: .cc .cpp .o .exe .out
sl@0
     7
sl@0
     8
srcdir = .
sl@0
     9
VPATH = .
sl@0
    10
sl@0
    11
# point this to proper location
sl@0
    12
STL_INCL=../../stlport
sl@0
    13
sl@0
    14
AUX_LIST=TestClass.cpp main.cpp nc_alloc.cpp random_number.cpp
sl@0
    15
sl@0
    16
TEST_LIST=test_algo.cpp  \
sl@0
    17
test_algobase.cpp     test_list.cpp test_slist.cpp \
sl@0
    18
test_bit_vector.cpp   test_vector.cpp \
sl@0
    19
test_deque.cpp test_set.cpp test_map.cpp \
sl@0
    20
test_hash_map.cpp  test_hash_set.cpp test_rope.cpp \
sl@0
    21
test_string.cpp test_bitset.cpp test_valarray.cpp
sl@0
    22
sl@0
    23
LIST=${AUX_LIST} ${TEST_LIST}
sl@0
    24
sl@0
    25
OBJECTS = $(LIST:%.cpp=%.o) $(STAT_MODULE)
sl@0
    26
EXECS = $(LIST:%.cpp=%)
sl@0
    27
TESTS = $(LIST:%.cpp=%.out)
sl@0
    28
TEST_EXE  = ./eh_test
sl@0
    29
TEST  = ./eh_test.out
sl@0
    30
sl@0
    31
CC = como
sl@0
    32
CXX = $(CC) 
sl@0
    33
sl@0
    34
CXXFLAGS = -DLIBCIO= --diag_suppress=68 -D__null=0L -D__GNUG__ -D_STLP_DEBUG -I${STL_INCL}  -I. ${CXX_EXTRA_FLAGS}
sl@0
    35
sl@0
    36
LIBS = -L../../lib -lstlport_como_stldebug -lpthread -lm 
sl@0
    37
LIBSTDCXX = 
sl@0
    38
sl@0
    39
check: $(TEST)
sl@0
    40
sl@0
    41
$(TEST_EXE) : $(OBJECTS)
sl@0
    42
	$(CXX) $(CXXFLAGS) $(OBJECTS) $(LIBS) -o $(TEST_EXE)
sl@0
    43
sl@0
    44
sl@0
    45
$(TEST) : $(TEST_EXE)
sl@0
    46
	$(TEST_EXE)
sl@0
    47
sl@0
    48
SUFFIXES: .cpp.o.exe.out.res
sl@0
    49
sl@0
    50
%.o : %.cpp
sl@0
    51
	$(CXX) $(CXXFLAGS) $< -c -o $@
sl@0
    52
sl@0
    53
%.i : %.cpp
sl@0
    54
	$(CXX) $(CXXFLAGS) $< -E -H -o $@
sl@0
    55
sl@0
    56
%.out: %.cpp
sl@0
    57
	$(CXX) $(CXXFLAGS) $< -c -USINGLE -DMAIN -g -o $*.o
sl@0
    58
	$(CXX) $(CXXFLAGS) $*.o $(LIBS) -o $*
sl@0
    59
	./$* > $@
sl@0
    60
	-rm -f $*
sl@0
    61
sl@0
    62
%.s: %.cpp
sl@0
    63
	$(CXX) $(CXXFLAGS) -O4 -S -pto $<  -o $@
sl@0
    64
sl@0
    65
%.E: %.cpp
sl@0
    66
	$(CXX) $(CXXFLAGS) -E $<  -o $@
sl@0
    67
sl@0
    68
clean:
sl@0
    69
	-rm -fr ${TEST_EXE} *.out *.o *.ii *.ti