|
2 | 2 | # ************************************************************** |
3 | 3 | # * C++ Mathematical Expression Toolkit Library * |
4 | 4 | # * * |
5 | | -# * Author: Arash Partow (1999-2023) * |
| 5 | +# * Author: Arash Partow (1999-2024) * |
6 | 6 | # * URL: https://www.partow.net/programming/exprtk/index.html * |
7 | 7 | # * * |
8 | 8 | # * Copyright notice: * |
9 | 9 | # * Free use of the Mathematical Expression Toolkit Library is * |
10 | 10 | # * permitted under the guidelines and in accordance with the * |
11 | 11 | # * most current version of the MIT License. * |
12 | | -# * http://www.opensource.org/licenses/MIT * |
| 12 | +# * https://www.opensource.org/licenses/MIT * |
| 13 | +# * SPDX-License-Identifier: MIT * |
13 | 14 | # * * |
14 | 15 | # ************************************************************** |
15 | 16 | # |
16 | 17 |
|
17 | 18 |
|
18 | 19 | COMPILER := -c++ |
19 | 20 | #COMPILER := -clang++ |
20 | | -OPTIMIZATION_OPT := -O1 |
| 21 | +OPTIMIZATION_OPT := -O2 -DNDEBUG |
21 | 22 | BASE_OPTIONS := -pedantic-errors -Wall -Wextra -Werror -Wno-long-long |
22 | 23 | OPTIONS := $(BASE_OPTIONS) $(OPTIMIZATION_OPT) |
23 | 24 | LINKER_OPT := -L/usr/lib -lstdc++ -lm |
@@ -46,9 +47,9 @@ valgrind : |
46 | 47 | fi done; |
47 | 48 |
|
48 | 49 | pgo: exprtk_benchmark.cpp exprtk.hpp |
49 | | - $(COMPILER) $(BASE_OPTIONS) -O3 -march=native -fprofile-generate -o exprtk_benchmark exprtk_benchmark.cpp $(LINKER_OPT) |
| 50 | + $(COMPILER) $(BASE_OPTIONS) -O3 -DNDEBUG -march=native -fprofile-generate -o exprtk_benchmark exprtk_benchmark.cpp $(LINKER_OPT) |
50 | 51 | ./exprtk_benchmark |
51 | | - $(COMPILER) $(BASE_OPTIONS) -O3 -march=native -fprofile-use -o exprtk_benchmark exprtk_benchmark.cpp $(LINKER_OPT) |
| 52 | + $(COMPILER) $(BASE_OPTIONS) -O3 -DNDEBUG -march=native -fprofile-use -o exprtk_benchmark exprtk_benchmark.cpp $(LINKER_OPT) |
52 | 53 |
|
53 | 54 | clean: |
54 | 55 | rm -f core.* *~ *.o *.bak *stackdump gmon.out *.gcda *.gcno *.gcnor *.gch |
0 commit comments