xref: /reactos/sdk/lib/3rdparty/stlport/test/eh/como.mak (revision 1734f297)
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 = e:\lang\como\bin\como
29CXX = $(CC)
30
31# __COMO__ appears not to be defined automatically ;(
32CXXFLAGS = -D__COMO__ -D_MSC_VER=1200 --exceptions --microsoft -D_STLP_DEBUG -I${STL_INCL}  -I. ${CXX_EXTRA_FLAGS}
33
34LIBS = -lm
35LIBSTDCXX =
36
37check: $(TEST)
38
39$(TEST_EXE) : $(OBJECTS)
40	$(CXX) $(CXXFLAGS) $(OBJECTS) $(LIBS) -o $(TEST_EXE)
41
42
43$(TEST) : $(TEST_EXE)
44	$(TEST_EXE)
45
46SUFFIXES: .cpp.o.exe.out.res
47
48%.o : %.cpp
49	$(CXX) $(CXXFLAGS) $< -c -o $@
50
51%.i : %.cpp
52	$(CXX) $(CXXFLAGS) $< -E -H -o $@
53
54%.out: %.cpp
55	$(CXX) $(CXXFLAGS) $< -c -USINGLE -DMAIN -g -o $*.o
56	$(CXX) $(CXXFLAGS) $*.o $(LIBS) -o $*
57	./$* > $@
58	-rm -f $*
59
60%.s: %.cpp
61	$(CXX) $(CXXFLAGS) -O4 -S -pto $<  -o $@
62
63%.E: %.cpp
64	$(CXX) $(CXXFLAGS) -E $<  -o $@
65
66clean:
67	-rm -fr ${TEST_EXE} *.o *.rpo *.obj *.out core *~ Templates.DB
68