summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/lambda/test/Makefile
blob: f25b5e4ffb984efce9640aa047b9be3d2d29ce9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
BOOST 		= ../../..
 
CXX		= g++
EXTRAFLAGS 	= -pedantic -Wno-long-long -Wno-long-double -ftemplate-depth-50 
LIBS		= -lstdc++

#CXX		= KCC 
#EXTRAFLAGS 	= --strict --display_error_number --diag_suppress 450 --max_pending_instantiations 50
#LIBS		=

INCLUDES	= -I$(BOOST)



CXXFLAGS	= $(INCLUDES) $(EXTRAFLAGS)

LIBFLAGS	= $(LIBS)


AR		= ar

.SUFFIXES: .cpp .o

SOURCES = \
is_instance_of_test.cpp \
operator_tests_simple.cpp \
member_pointer_test.cpp \
control_structures.cpp \
switch_construct.cpp \
bind_tests_simple.cpp \
bind_tests_advanced.cpp \
bll_and_function.cpp \
constructor_tests.cpp \
extending_rt_traits.cpp \
bind_tests_simple_f_refs.cpp \
cast_test.cpp \
phoenix_control_structures.cpp \
exception_test.cpp \


# Create lists of object files from the source file lists.

OBJECTS = ${SOURCES:.cpp=.o}     

TARGETS = ${SOURCES:.cpp=.exe}     

all: 	$(TARGETS)

%.exe: %.o
	$(CXX) $(LIBFLAGS) $(CXXFLAGS) -o $@ $<

%.o: %.cpp 
	$(CXX) $(CXXFLAGS) -o $@ -c $<

%.dep:  %.cpp
	set -e; $(CXX) -M $(INCLUDES) -c $< \
		| sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' > $@; \
	[ -s $@ ] || rm -f $@

DEP_FILES = $(SOURCES:.cpp=.dep)

include $(DEP_FILES)

clean:	
	/bin/rm -rf $(TARGETS) $(OBJECTS) $(DEP_FILES)

run:	
	./is_instance_of_test.exe
	./member_pointer_test.exe
	./operator_tests_simple.exe 
	./control_structures.exe 
	./switch_construct.exe 
	./extending_rt_traits.exe 
	./constructor_tests.exe 
	./cast_test.exe 
	./bind_tests_simple.exe 
	./bind_tests_advanced.exe 
	./bll_and_function.exe
	./bind_tests_simple_f_refs.exe
	./phoenix_control_structures.exe
	./exception_test.exe