Adding install

This commit is contained in:
JulienLoiseau 2020-08-13 13:38:58 -06:00
parent 281c2ccc65
commit 85c9a3237c
1 changed files with 7 additions and 1 deletions

View File

@ -27,7 +27,9 @@ LSAN_OPT := -g -fsanitize=leak -fno-omit-frame-pointer
USAN_OPT := -g -fsanitize=undefined -fno-omit-frame-pointer
BUILD_SRC := $(sort $(wildcard exprtk_*.cpp))
BUILD_LIST := $(BUILD_SRC:%.cpp=%)
ifeq ($(PREFIX),)
PREFIX := /usr/local
endif
all: $(BUILD_LIST)
@ -50,5 +52,9 @@ pgo: exprtk_benchmark.cpp exprtk.hpp
./exprtk_benchmark
$(COMPILER) $(BASE_OPTIONS) -O3 -march=native -fprofile-use -o exprtk_benchmark exprtk_benchmark.cpp $(LINKER_OPT)
install:
install -d $(PREFIX)/include/
install -m 644 exprtk.hpp $(PREFIX)/include/
clean:
rm -f core.* *~ *.o *.bak *stackdump gmon.out *.gcda *.gcno *.gcnor *.gch