os/ossrv/genericopenlibs/cppstdlib/stl/test/eh/sgi_mipspro.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
STL_INCL=-I${PWD}/../../stlport/
sl@0
    12
sl@0
    13
# STL_INCL= -DEH_NO_SGI_STL
sl@0
    14
sl@0
    15
AUX_LIST=TestClass.o main.o nc_alloc.o random_number.o
sl@0
    16
sl@0
    17
TEST_LIST=test_algo.o  \
sl@0
    18
test_algobase.o     test_list.o test_slist.o \
sl@0
    19
test_bit_vector.o   test_vector.o \
sl@0
    20
test_deque.o test_set.o test_map.o \
sl@0
    21
test_hash_map.o  test_hash_set.o test_rope.o \
sl@0
    22
test_string.o test_bitset.o test_valarray.o
sl@0
    23
sl@0
    24
LIST=${AUX_LIST} ${TEST_LIST}
sl@0
    25
sl@0
    26
OBJECTS = $(LIST)
sl@0
    27
EXECS = $(LIST:%.o=%)
sl@0
    28
TESTS = $(LIST:%.o=%.out)
sl@0
    29
TEST_EXE  = eh_test
sl@0
    30
TEST  = eh_test.out
sl@0
    31
sl@0
    32
CC = CC
sl@0
    33
CXX = $(CC)
sl@0
    34
sl@0
    35
# CXXFLAGS = -J 4 -ansi -LANG:std -I. ${STL_INCL} ${DEBUG_FLAGS} -I. -D_STLP_NO_OWN_IOSTREAMS -D_STLP_NO_NEW_IOSTREAMS
sl@0
    36
CXXFLAGS = -J 4 -ansi -LANG:std -I. ${STL_INCL} ${DEBUG_FLAGS} -I.
sl@0
    37
sl@0
    38
LIBS = -L../../lib -lstlport_mipspro -lm 
sl@0
    39
LIBSTDCXX = 
sl@0
    40
sl@0
    41
.SUFFIXES: .cpp .i .o .out .res
sl@0
    42
sl@0
    43
check: $(TEST)
sl@0
    44
sl@0
    45
$(TEST) : $(OBJECTS)
sl@0
    46
	$(CXX) $(CXXFLAGS) $(OBJECTS) $(LIBS) -o $(TEST_EXE)
sl@0
    47
	LD_LIBRARY_PATH="../../lib:$(LD_LIBRARY_PATH)" ./$(TEST_EXE) -s 100
sl@0
    48
sl@0
    49
.cpp.o:
sl@0
    50
	$(CXX) $(CXXFLAGS) $< -c -o $@
sl@0
    51
sl@0
    52
.cpp.i:
sl@0
    53
	$(CXX) $(CXXFLAGS) $< -E > $@
sl@0
    54
sl@0
    55
%.out: %.cpp
sl@0
    56
	$(CXX) $(CXXFLAGS) $*.cpp -c -USINGLE -DMAIN -g -o $*.o
sl@0
    57
	$(CXX) $(CXXFLAGS) $*.o $(LIBS) -o $*
sl@0
    58
	./$* -q
sl@0
    59
	-rm -f $*
sl@0
    60
sl@0
    61
clean:
sl@0
    62
	-rm -fr ${TEST_EXE} *.o *.rpo *.obj *.out core *~ Templates.DB SunWS_cache cxx_repository