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 |
|
sl@0
|
6 |
SHELL=/bin/sh
|
sl@0
|
7 |
|
sl@0
|
8 |
# point this to proper location
|
sl@0
|
9 |
STL_INCL= -I${PWD}/../../stlport
|
sl@0
|
10 |
|
sl@0
|
11 |
# STL_INCL= -DEH_NO_SGI_STL
|
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 |
LIST=${AUX_LIST} ${TEST_LIST}
|
sl@0
|
23 |
|
sl@0
|
24 |
OBJECTS = $(LIST:%.cpp=%.o) $(STAT_MODULE)
|
sl@0
|
25 |
EXECS = $(LIST:%.cpp=%)
|
sl@0
|
26 |
TESTS = $(LIST:%.cpp=%.out)
|
sl@0
|
27 |
TEST_EXE = eh_test
|
sl@0
|
28 |
TEST = eh_test.out
|
sl@0
|
29 |
|
sl@0
|
30 |
CC = CC
|
sl@0
|
31 |
CXX = $(CC)
|
sl@0
|
32 |
|
sl@0
|
33 |
# CXXFLAGS = ${STL_INCL} -library=no%Cstd -qoption ccfe -instlib=../../lib/libstlport_sunpro.so -features=rtti -DEH_VECTOR_OPERATOR_NEW -DEH_DELETE_HAS_THROW_SPEC
|
sl@0
|
34 |
|
sl@0
|
35 |
CXXFLAGS = ${STL_INCL} -library=no%Cstd -features=rtti -DEH_VECTOR_OPERATOR_NEW -DEH_DELETE_HAS_THROW_SPEC
|
sl@0
|
36 |
|
sl@0
|
37 |
# This is to test with native STL
|
sl@0
|
38 |
# 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
|
39 |
|
sl@0
|
40 |
|
sl@0
|
41 |
LIBS = -lm
|
sl@0
|
42 |
LIBSTDCXX =
|
sl@0
|
43 |
|
sl@0
|
44 |
LIBSTLPORT = -library=no%Cstd -L../../lib -lstlport_sunpro
|
sl@0
|
45 |
|
sl@0
|
46 |
|
sl@0
|
47 |
check: $(TEST)
|
sl@0
|
48 |
|
sl@0
|
49 |
$(TEST) : $(OBJECTS)
|
sl@0
|
50 |
$(CXX) $(CXXFLAGS) $(OBJECTS) ${LIBSTLPORT} $(LIBS) -o $(TEST_EXE)
|
sl@0
|
51 |
LD_LIBRARY_PATH="../../lib;${LD_LIBRARY_PATH}" ./$(TEST_EXE) -s 100
|
sl@0
|
52 |
|
sl@0
|
53 |
SUFFIXES: .cpp.o.out.res
|
sl@0
|
54 |
|
sl@0
|
55 |
%.o : %.cpp
|
sl@0
|
56 |
$(CXX) $(CXXFLAGS) $< -c -o $@
|
sl@0
|
57 |
|
sl@0
|
58 |
%.i : %.cpp
|
sl@0
|
59 |
$(CXX) $(CXXFLAGS) $< -E -H > $@
|
sl@0
|
60 |
|
sl@0
|
61 |
%.out: %.cpp
|
sl@0
|
62 |
$(CXX) $(CXXFLAGS) $< -c -USINGLE -DMAIN -g -o $*.o
|
sl@0
|
63 |
$(CXX) $(CXXFLAGS) $*.o $(LIBS) ${LIBSTLPORT} -o $*
|
sl@0
|
64 |
LD_LIBRARY_PATH="../../lib;${LD_LIBRARY_PATH}" ./$*
|
sl@0
|
65 |
|
sl@0
|
66 |
|
sl@0
|
67 |
%.s: %.cpp
|
sl@0
|
68 |
$(CXX) $(CXXFLAGS) -O4 -S -pto $< -o $@
|
sl@0
|
69 |
|
sl@0
|
70 |
clean:
|
sl@0
|
71 |
-rm -fr ${TEST_EXE} *.o *.rpo *.obj *.out core *~ Templates.DB SunWS_cache
|