From fa4d9615743ea1cd81651c222421a8b7c0928d7c Mon Sep 17 00:00:00 2001 From: justuser-31 Date: Sat, 26 Jul 2025 16:37:33 +0300 Subject: [PATCH] Outside declaration of botan path --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 9201182..2a114da 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ CXX = g++ -CXXFLAGS = -std=c++17 -I/usr/local/include/botan-2/ -lbotan-2 +CXXFLAGS = -std=c++17 -lbotan-2 RUN = ./ +BOTAN_PATH = /usr/local/include/botan-2/ LD_LIBRARY_PATH = /usr/local/lib .PHONY: all clean build run @@ -8,7 +9,7 @@ LD_LIBRARY_PATH = /usr/local/lib all: build run build: example.cpp - $(CXX) example.cpp $(CXXFLAGS) -o example + $(CXX) example.cpp $(CXXFLAGS) -I$(BOTAN_PATH) -o example run: $(RUN)example