C++ Mathematical Expression Library (ExprTk) http://www.partow.net/programming/exprtk/index.html
This commit is contained in:
commit
992835d50a
|
@ -0,0 +1,43 @@
|
|||
#
|
||||
# **************************************************************
|
||||
# * C++ Mathematical Expression Toolkit Library *
|
||||
# * *
|
||||
# * Author: Arash Partow (1999-2012) *
|
||||
# * URL: http://www.partow.net/programming/exprtk/index.html *
|
||||
# * *
|
||||
# * Copyright notice: *
|
||||
# * Free use of the Mathematical Expression Toolkit Library is *
|
||||
# * permitted under the guidelines and in accordance with the *
|
||||
# * most current version of the Common Public License. *
|
||||
# * http://www.opensource.org/licenses/cpl1.0.php *
|
||||
# * *
|
||||
# **************************************************************
|
||||
#
|
||||
|
||||
|
||||
COMPILER = -c++
|
||||
#COMPILER = -clang
|
||||
OPTIMIZATION_OPT = -O1
|
||||
BASE_OPTIONS = -ansi -pedantic-errors -Wall -Wextra -Werror -Wno-long-long
|
||||
OPTIONS = $(BASE_OPTIONS) $(OPTIMIZATION_OPT) -o
|
||||
LINKER_OPT = -L/usr/lib -lstdc++
|
||||
|
||||
BUILD_LIST+=exprtk_test
|
||||
|
||||
all: $(BUILD_LIST)
|
||||
|
||||
exprtk_test: exprtk_test.cpp exprtk.hpp
|
||||
$(COMPILER) $(OPTIONS) exprtk_test exprtk_test.cpp $(LINKER_OPT)
|
||||
|
||||
|
||||
pgo: exprtk_test.cpp exprtk.hpp
|
||||
$(COMPILER) $(BASE_OPTIONS) -O3 -march=native -fprofile-generate -o exprtk_test exprtk_test.cpp $(LINKER_OPT)
|
||||
|
||||
strip_bin:
|
||||
strip -s exprtk_test
|
||||
|
||||
valgrind_check:
|
||||
valgrind --leak-check=full --show-reachable=yes --track-origins=yes ./exprtk_test
|
||||
|
||||
clean:
|
||||
rm -f core.* *~ *.o *.bak *stackdump gmon.out *.gcda *.gcno *.gcnor *.gch
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,48 @@
|
|||
C++ Mathematical Expression Toolkit Library
|
||||
|
||||
[INTRODUCTION]
|
||||
The C++ Mathematical Expression Library (ExprTk) is a simple to use,
|
||||
easy to integrate and extremely efficient mathematical expression
|
||||
parsing and evaluation engine. The parsing engine supports various
|
||||
kinds of functional, logic processing semantics and is very easily
|
||||
extendible.
|
||||
|
||||
|
||||
[COPYRIGHT NOTICE]
|
||||
Free use of the Mathematical Expression Toolkit Library is permitted
|
||||
under the guidelines and in accordance with the most current version
|
||||
of the Common Public License.
|
||||
|
||||
http://www.opensource.org/licenses/cpl1.0.php
|
||||
|
||||
|
||||
[DOWNLOADS & UPDATES]
|
||||
All updates and the most recent version of the C++ Mathematical
|
||||
Expression Library can be found at:
|
||||
(1) http://www.partow.net/programming/exprtk/index.html
|
||||
|
||||
|
||||
[INSTALLATION]
|
||||
(1) exprtk.hpp should be placed in a project or system include path
|
||||
(e.g: /usr/include/).
|
||||
|
||||
|
||||
[COMPILATION]
|
||||
(1) For a complete build: make clean all
|
||||
(2) For a PGO build: make clean pgo
|
||||
(3) To strip executables: make strip_bin
|
||||
|
||||
|
||||
[COMPILER COMPATIBILITY]
|
||||
(*) GNU Compiler Collection (4.3+)
|
||||
(*) Intel® C++ Compiler (9.x+)
|
||||
(*) Clang/LLVM (1.1+)
|
||||
(*) Microsoft Visual Studio C++ Compiler (8.1+)
|
||||
(*) Comeau C++ Compiler (4.3+)
|
||||
|
||||
|
||||
[FILES]
|
||||
(00) Makefile
|
||||
(01) readme.txt
|
||||
(02) exprtk.hpp
|
||||
(03) exprtk_test.cpp
|
Loading…
Reference in New Issue