File tree Expand file tree Collapse file tree 1 file changed +32
-16
lines changed
tools/snippets/benchmark/cpp/boost Expand file tree Collapse file tree 1 file changed +32
-16
lines changed Original file line number Diff line number Diff line change @@ -70,39 +70,55 @@ endif
7070cxx_targets := benchmark.out
7171
7272
73- # TARGETS #
73+ # RULES #
7474
75- # Default target.
75+ # /
76+ # Compiles C++ source files.
7677#
77- # This target is the default target.
78-
78+ # @param {string} BOOST - Boost include directory
79+ # @param {string} [CXX_COMPILER] - C++ compiler
80+ # @param {string} [CXXFLAGS] - C++ compiler flags
81+ # @param {(string|void)} [fPIC] - flag indicating whether to generate position independent code
82+ #
83+ # @example
84+ # make
85+ #
86+ # @example
87+ # make all
88+ # /
7989all : $(cxx_targets )
8090
8191.PHONY : all
8292
83-
84- # Compile C++ source.
93+ # /
94+ # Compiles C++ source files .
8595#
86- # This target compiles C++ source files.
87-
96+ # @private
97+ # @param {string} CXX - C++ compiler
98+ # @param {string} CXXFLAGS - C++ compiler flags
99+ # @param {(string|void)} fPIC - flag indicating whether to generate position independent code
100+ # @param {string} BOOST - Boost include directory
101+ # /
88102$(cxx_targets ) : % .out: % .cpp $(BOOST )
89103 $(QUIET ) $(CXX ) $(CXXFLAGS ) $(fPIC ) -I $(BOOST ) -o $@ $< -lm
90104
91-
92- # Run a benchmark .
105+ # /
106+ # Runs compiled benchmarks .
93107#
94- # This target runs a benchmark.
95-
108+ # @example
109+ # make run
110+ # /
96111run : $(cxx_targets )
97112 $(QUIET ) ./$<
98113
99114.PHONY : run
100115
101-
102- # Perform clean-up .
116+ # /
117+ # Removes generated files .
103118#
104- # This target removes generated files.
105-
119+ # @example
120+ # make clean
121+ # /
106122clean :
107123 $(QUIET ) -rm -f * .o * .out
108124
You can’t perform that action at this time.
0 commit comments