os/ossrv/genericopenlibs/cppstdlib/stl/test/eh/deccxx.mak
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
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
SHELL=/bin/sh
sl@0
     6
sl@0
     7
# srcdir = .
sl@0
     8
# VPATH = .
sl@0
     9
sl@0
    10
sl@0
    11
# point this to proper location
sl@0
    12
STL_INCL= -I../../stlport
sl@0
    13
sl@0
    14
# STL_INCL= -DEH_NO_SGI_STL
sl@0
    15
sl@0
    16
AUX_LIST=TestClass.o main.o nc_alloc.o random_number.o
sl@0
    17
sl@0
    18
TEST_LIST=test_algo.o  \
sl@0
    19
test_algobase.o     test_list.o test_slist.o \
sl@0
    20
test_bit_vector.o   test_vector.o \
sl@0
    21
test_deque.o test_set.o test_map.o \
sl@0
    22
test_hash_map.o  test_hash_set.o test_rope.o \
sl@0
    23
test_string.o test_bitset.o test_valarray.o
sl@0
    24
sl@0
    25
LIST=${AUX_LIST} ${TEST_LIST}
sl@0
    26
sl@0
    27
OBJECTS = $(LIST)
sl@0
    28
EXECS = $(LIST:%.o=%)
sl@0
    29
TESTS = $(LIST:%.o=%.out)
sl@0
    30
TEST_EXE  = eh_test
sl@0
    31
TEST  = eh_test.out
sl@0
    32
sl@0
    33
CC = cxx
sl@0
    34
CXX = $(CC)
sl@0
    35
sl@0
    36
# -std strict_ansi_errors
sl@0
    37
sl@0
    38
CXXFLAGS = ${STL_INCL} -std strict_ansi_errors -DEH_VECTOR_OPERATOR_NEW -DEH_DELETE_HAS_THROW_SPEC -gall
sl@0
    39
sl@0
    40
# CXXFLAGS = ${STL_INCL} -std strict_ansi_errors -DEH_VECTOR_OPERATOR_NEW -DEH_DELETE_HAS_THROW_SPEC
sl@0
    41
sl@0
    42
# This is to test with native STL
sl@0
    43
# CXXFLAGS = +w2 -xildoff -D_STLP_USE_NEWALLOC -DEH_NO_SGI_STL -DEH_NEW_HEADERS -DEH_VECTOR_OPERATOR_NEW -DEH_DELETE_HAS_THROW_SPEC
sl@0
    44
sl@0
    45
sl@0
    46
LIBS = -L../../lib -lstlport_dec -lm 
sl@0
    47
LIBSTDCXX = 
sl@0
    48
sl@0
    49
.SUFFIXES: .cpp .i .o .out .res
sl@0
    50
sl@0
    51
check: $(TEST)
sl@0
    52
sl@0
    53
$(TEST) : $(OBJECTS)
sl@0
    54
	$(CXX) $(CXXFLAGS) $(OBJECTS) $(LIBS) -o $(TEST_EXE)
sl@0
    55
	LD_LIBRARY_PATH="../../lib:$(LD_LIBRARY_PATH)" ./$(TEST_EXE) -s 100
sl@0
    56
sl@0
    57
.cpp.o:
sl@0
    58
	$(CXX) $(CXXFLAGS) $< -c -o $@
sl@0
    59
sl@0
    60
.cpp.i:
sl@0
    61
	$(CXX) $(CXXFLAGS) $< -E > $@
sl@0
    62
sl@0
    63
%.out: %.cpp
sl@0
    64
	$(CXX) $(CXXFLAGS) $*.cpp -c -USINGLE -DMAIN -g -o $*.o
sl@0
    65
	$(CXX) $(CXXFLAGS) $*.o $(LIBS) -o $*
sl@0
    66
	./$* -q
sl@0
    67
	-rm -f $*
sl@0
    68
sl@0
    69
%.s: %.cpp
sl@0
    70
	$(CXX) $(CXXFLAGS) -O4 -S -pto $*.cpp  -o $@
sl@0
    71
sl@0
    72
clean:
sl@0
    73
	-rm -fr ${TEST_EXE} *.o *.rpo *.obj *.out core *~ Templates.DB SunWS_cache cxx_repository