Blame view

3rdparty/boost_1_81_0/libs/lambda/test/Makefile 1.57 KB
73ef4ff3   Hu Chunming   提交三方库
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
  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