]>
Commit | Line | Data |
---|---|---|
1 | BOOST = ../../.. | |
2 | ||
3 | CXX = g++ | |
4 | EXTRAFLAGS = -pedantic -Wno-long-long -Wno-long-double -ftemplate-depth-50 | |
5 | LIBS = -lstdc++ | |
6 | ||
7 | #CXX = KCC | |
8 | #EXTRAFLAGS = --strict --display_error_number --diag_suppress 450 --max_pending_instantiations 50 | |
9 | #LIBS = | |
10 | ||
11 | INCLUDES = -I$(BOOST) | |
12 | ||
13 | ||
14 | ||
15 | CXXFLAGS = $(INCLUDES) $(EXTRAFLAGS) | |
16 | ||
17 | LIBFLAGS = $(LIBS) | |
18 | ||
19 | ||
20 | AR = ar | |
21 | ||
22 | .SUFFIXES: .cpp .o | |
23 | ||
24 | SOURCES = \ | |
25 | is_instance_of_test.cpp \ | |
26 | operator_tests_simple.cpp \ | |
27 | member_pointer_test.cpp \ | |
28 | control_structures.cpp \ | |
29 | switch_construct.cpp \ | |
30 | bind_tests_simple.cpp \ | |
31 | bind_tests_advanced.cpp \ | |
32 | bll_and_function.cpp \ | |
33 | constructor_tests.cpp \ | |
34 | extending_rt_traits.cpp \ | |
35 | bind_tests_simple_f_refs.cpp \ | |
36 | cast_test.cpp \ | |
37 | phoenix_control_structures.cpp \ | |
38 | exception_test.cpp \ | |
39 | ||
40 | ||
41 | # Create lists of object files from the source file lists. | |
42 | ||
43 | OBJECTS = ${SOURCES:.cpp=.o} | |
44 | ||
45 | TARGETS = ${SOURCES:.cpp=.exe} | |
46 | ||
47 | all: $(TARGETS) | |
48 | ||
49 | %.exe: %.o | |
50 | $(CXX) $(LIBFLAGS) $(CXXFLAGS) -o $@ $< | |
51 | ||
52 | %.o: %.cpp | |
53 | $(CXX) $(CXXFLAGS) -o $@ -c $< | |
54 | ||
55 | %.dep: %.cpp | |
56 | set -e; $(CXX) -M $(INCLUDES) -c $< \ | |
57 | | sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' > $@; \ | |
58 | [ -s $@ ] || rm -f $@ | |
59 | ||
60 | DEP_FILES = $(SOURCES:.cpp=.dep) | |
61 | ||
62 | include $(DEP_FILES) | |
63 | ||
64 | clean: | |
65 | /bin/rm -rf $(TARGETS) $(OBJECTS) $(DEP_FILES) | |
66 | ||
67 | run: | |
68 | ./is_instance_of_test.exe | |
69 | ./member_pointer_test.exe | |
70 | ./operator_tests_simple.exe | |
71 | ./control_structures.exe | |
72 | ./switch_construct.exe | |
73 | ./extending_rt_traits.exe | |
74 | ./constructor_tests.exe | |
75 | ./cast_test.exe | |
76 | ./bind_tests_simple.exe | |
77 | ./bind_tests_advanced.exe | |
78 | ./bll_and_function.exe | |
79 | ./bind_tests_simple_f_refs.exe | |
80 | ./phoenix_control_structures.exe | |
81 | ./exception_test.exe | |
82 | ||
83 | ||
84 | ||
85 | ||
86 | ||
87 | ||
88 | ||
89 |