• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# ;;; -*- Mode:makefile;-*-
2# Generated automatically from Makefile.in by configure.
3# This requires GNU make.
4
5srcdir = .
6VPATH = .
7
8# point this to proper location
9STL_INCL=../../stlport
10
11AUX_LIST=TestClass.cpp main.cpp nc_alloc.cpp random_number.cpp
12
13TEST_LIST=test_algo.cpp  \
14test_algobase.cpp     test_list.cpp test_slist.cpp \
15test_bit_vector.cpp   test_vector.cpp \
16test_deque.cpp test_set.cpp test_map.cpp \
17test_hash_map.cpp  test_hash_set.cpp test_rope.cpp \
18test_string.cpp test_bitset.cpp test_valarray.cpp
19
20LIST=${AUX_LIST} ${TEST_LIST}
21
22OBJECTS = $(LIST:%.cpp=%.o) $(STAT_MODULE)
23EXECS = $(LIST:%.cpp=%)
24TESTS = $(LIST:%.cpp=%.out)
25TEST_EXE  = ./eh_test
26TEST  = ./eh_test.out
27
28CC = egcs-c++
29CXX = $(CC)
30
31# for egcs
32REPO_FLAGS =
33
34# CXXFLAGS = -g -Wall -I${STL_INCL}  -I. -D_STLP_USE_NEWALLOC -D_STLP_DEBUG_ALLOC ${REPO_FLAGS} -DEH_NEW_HEADERS
35
36# CXXFLAGS = -Wall -ansi -I${STL_INCL}  -I. -D_STLP_DEBUG ${REPO_FLAGS} ${CXX_EXTRA_FLAGS}
37CXXFLAGS = -Wall -g  -D_STLP_USE_NEWALLOC -DNO_FAST_ALLOCATOR -ansi -I${STL_INCL}  -I. ${REPO_FLAGS} ${CXX_EXTRA_FLAGS} -DEH_VECTOR_OPERATOR_NEW -D_STLP_DEBUG -D_STLP_NO_DEBUG_EXCEPTIONS
38
39# CXXFLAGS = -Wall -I${STL_INCL}  -I. -D_STLP_USE_NEWALLOC ${REPO_FLAGS} ${CXX_EXTRA_FLAGS}
40
41
42LIBS = -lm
43LIBSTDCXX =
44
45check: $(TEST)
46
47$(TEST_EXE) : $(OBJECTS)
48	$(CXX) $(CXXFLAGS) $(OBJECTS) $(LIBS) -o $(TEST_EXE)
49
50
51$(TEST) : $(TEST_EXE)
52	$(TEST_EXE)
53
54SUFFIXES: .cpp.o.exe.out.res
55
56%.o : %.cpp
57	$(CXX) $(CXXFLAGS) $< -c -o $@
58
59%.i : %.cpp
60	$(CXX) $(CXXFLAGS) $< -E -H -o $@
61
62%.out: %.cpp
63	$(CXX) $(CXXFLAGS) $< -c -USINGLE -DMAIN -g -o $*.o
64	$(CXX) $(CXXFLAGS) $*.o $(LIBS) -o $*
65	./$* > $@
66	-rm -f $*
67
68%.s: %.cpp
69	$(CXX) $(CXXFLAGS) -O4 -S -pto $<  -o $@
70
71%.E: %.cpp
72	$(CXX) $(CXXFLAGS) -E $<  -o $@
73
74clean:
75	-rm -fr ${TEST_EXE} $(OBJDIR) $(D_OBJDIR) $(NOSGI_OBJDIR) *.o *.rpo *.obj *.out core *~ Templates.DB
76