os/ossrv/genericopenlibs/cppstdlib/stl/test/eh/hp.mak
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
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
# srcdir = .
sl@0
     7
# VPATH = .
sl@0
     8
sl@0
     9
sl@0
    10
# point this to proper location
sl@0
    11
STL_INCL= -I../../stlport
sl@0
    12
sl@0
    13
AUX_LIST=TestClass.cpp main.cpp nc_alloc.cpp random_number.cpp
sl@0
    14
sl@0
    15
TEST_LIST=test_algo.cpp  \
sl@0
    16
test_algobase.cpp     test_list.cpp test_slist.cpp \
sl@0
    17
test_bit_vector.cpp   test_vector.cpp \
sl@0
    18
test_deque.cpp test_set.cpp test_map.cpp \
sl@0
    19
test_hash_map.cpp  test_hash_set.cpp test_rope.cpp \
sl@0
    20
test_string.cpp test_bitset.cpp test_valarray.cpp
sl@0
    21
sl@0
    22
OBJECTS = test_algo.o  \
sl@0
    23
test_algobase.o     test_list.o test_slist.o \
sl@0
    24
test_bit_vector.o   test_vector.o \
sl@0
    25
test_deque.o test_set.o test_map.o \
sl@0
    26
test_hash_map.o  test_hash_set.o test_rope.o \
sl@0
    27
test_string.o test_bitset.o test_valarray.o
sl@0
    28
sl@0
    29
LIST=${AUX_LIST} ${TEST_LIST}
sl@0
    30
sl@0
    31
# OBJECTS = $(LIST:%.cpp=%.o) $(STAT_MODULE)
sl@0
    32
EXECS = $(LIST:%.cpp=%)
sl@0
    33
TESTS = $(LIST:%.cpp=%.out)
sl@0
    34
TEST_EXE  = eh_test
sl@0
    35
TEST  = eh_test.out
sl@0
    36
sl@0
    37
CC = CC
sl@0
    38
CXX = $(CC)
sl@0
    39
sl@0
    40
CXXFLAGS = -w ${STL_INCL} -D_STLP_NO_CUSTOM_IO
sl@0
    41
sl@0
    42
LIBS = -lm 
sl@0
    43
sl@0
    44
LIBSTLPORT = -L../../lib -lstlport_hp
sl@0
    45
sl@0
    46
check: $(TEST)
sl@0
    47
sl@0
    48
all: $(TEST_EXE)
sl@0
    49
	echo done.
sl@0
    50
sl@0
    51
$(TEST_EXE) : $(OBJECTS)
sl@0
    52
	$(CXX) $(CXXFLAGS) $(OBJECTS) ${LIBSTLPORT} $(LIBS) -o $(TEST_EXE)
sl@0
    53
sl@0
    54
$(TEST) : $(TEST_EXE)
sl@0
    55
	$(TEST_EXE)
sl@0
    56
sl@0
    57
SUFFIXES: .cpp .o .i .s .out .res .y
sl@0
    58
sl@0
    59
.cpp.o :
sl@0
    60
	$(CXX) $(CXXFLAGS) $< -c -o $@
sl@0
    61
sl@0
    62
.cpp.i :
sl@0
    63
	$(CXX) $(CXXFLAGS) $< -E -H > $@
sl@0
    64
sl@0
    65
.cpp.out:
sl@0
    66
	$(CXX) $(CXXFLAGS) $< -c -USINGLE -DMAIN -g -o $*.o
sl@0
    67
	$(CXX) $(CXXFLAGS) $*.o $(LIBS) -o $*
sl@0
    68
	./$* -q
sl@0
    69
	-rm -f $*
sl@0
    70
sl@0
    71
.cpp.s:
sl@0
    72
	$(CXX) $(CXXFLAGS) -O4 -S -pto $<  -o $@
sl@0
    73
sl@0
    74
clean:
sl@0
    75
	-rm -fr ${TEST_EXE} *.o *.rpo *.obj *.out core *~ Templates.DB SunWS_cache
sl@0
    76
sl@0
    77
sl@0
    78
sl@0
    79
sl@0
    80
sl@0
    81