• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# ;;; -*- Mode:makefile;-*-
2# Generated automatically from Makefile.in by configure.
3# This requires GNU make.
4
5
6SHELL=/bin/sh
7
8# point this to proper location
9STL_INCL= -I${PWD}/../../stlport
10
11# STL_INCL= -DEH_NO_SGI_STL
12
13AUX_LIST=TestClass.cpp main.cpp nc_alloc.cpp random_number.cpp
14
15TEST_LIST=test_algo.cpp  \
16test_algobase.cpp     test_list.cpp test_slist.cpp \
17test_bit_vector.cpp   test_vector.cpp \
18test_deque.cpp test_set.cpp test_map.cpp \
19test_hash_map.cpp  test_hash_set.cpp test_rope.cpp \
20test_string.cpp test_bitset.cpp test_valarray.cpp
21
22LIST=${AUX_LIST} ${TEST_LIST}
23
24OBJECTS = $(LIST:%.cpp=%.o) $(STAT_MODULE)
25EXECS = $(LIST:%.cpp=%)
26TESTS = $(LIST:%.cpp=%.out)
27TEST_EXE  = eh_test
28TEST  = eh_test.out
29
30CC = CC
31CXX = $(CC)
32
33CXXFLAGS = ${STL_INCL} -xarch=v9 -library=no%Cstd -features=rtti -DEH_VECTOR_OPERATOR_NEW -DEH_DELETE_HAS_THROW_SPEC -xildoff -g -D_REENTRANT -DNO_FAST_ALLOCATOR
34
35# This is to test with native STL
36# CXXFLAGS = +w2 -xildoff -D_STLP_USE_NEWALLOC -DEH_NO_SGI_STL -DEH_NEW_HEADERS -DEH_VECTOR_OPERATOR_NEW -DEH_DELETE_HAS_THROW_SPEC
37
38
39LIBS = -lm
40LIBSTDCXX =
41
42LIBSTLPORT = -library=no%Cstd -L../../lib -lstlport_sunpro64
43
44
45check: $(TEST)
46
47$(TEST) : $(OBJECTS)
48	$(CXX) $(CXXFLAGS) $(OBJECTS) ${LIBSTLPORT} $(LIBS) -o $(TEST_EXE)
49	LD_LIBRARY_PATH="../../lib;${LD_LIBRARY_PATH}" ./$(TEST_EXE) -s 100
50
51SUFFIXES: .cpp.o.out.res
52
53%.o : %.cpp
54	$(CXX) $(CXXFLAGS) $< -c -o $@
55
56%.i : %.cpp
57	$(CXX) $(CXXFLAGS) $< -E -H > $@
58
59%.out: %.cpp
60	$(CXX) $(CXXFLAGS) $< -c -USINGLE -DMAIN -g -o $*.o
61	$(CXX) $(CXXFLAGS) $*.o $(LIBS) -o $*
62	./$* -q
63	-rm -f $*
64
65%.s: %.cpp
66	$(CXX) $(CXXFLAGS) -O4 -S -pto $<  -o $@
67
68clean:
69	-rm -fr ${TEST_EXE} *.o *.rpo *.obj *.out core *~ Templates.DB SunWS_cache
70