1BOOST = ../../.. 2 3CXX = g++ 4EXTRAFLAGS = -pedantic -Wno-long-long -Wno-long-double -ftemplate-depth-50 5LIBS = -lstdc++ 6 7#CXX = KCC 8#EXTRAFLAGS = --strict --display_error_number --diag_suppress 450 --max_pending_instantiations 50 9#LIBS = 10 11INCLUDES = -I$(BOOST) 12 13 14 15CXXFLAGS = $(INCLUDES) $(EXTRAFLAGS) 16 17LIBFLAGS = $(LIBS) 18 19 20AR = ar 21 22.SUFFIXES: .cpp .o 23 24SOURCES = \ 25is_instance_of_test.cpp \ 26operator_tests_simple.cpp \ 27member_pointer_test.cpp \ 28control_structures.cpp \ 29switch_construct.cpp \ 30bind_tests_simple.cpp \ 31bind_tests_advanced.cpp \ 32bll_and_function.cpp \ 33constructor_tests.cpp \ 34extending_rt_traits.cpp \ 35bind_tests_simple_f_refs.cpp \ 36cast_test.cpp \ 37phoenix_control_structures.cpp \ 38exception_test.cpp \ 39 40 41# Create lists of object files from the source file lists. 42 43OBJECTS = ${SOURCES:.cpp=.o} 44 45TARGETS = ${SOURCES:.cpp=.exe} 46 47all: $(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 60DEP_FILES = $(SOURCES:.cpp=.dep) 61 62include $(DEP_FILES) 63 64clean: 65 /bin/rm -rf $(TARGETS) $(OBJECTS) $(DEP_FILES) 66 67run: 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 90