From b79a513e628b7aa6cfb1a3f14bf863ebdf4052aa Mon Sep 17 00:00:00 2001 From: Tina_Azure <-> Date: Mon, 20 Mar 2023 17:59:41 +0100 Subject: [PATCH] Modified Makefile potentially remove the include if it is generally not necessary. -pthread is necessary --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index a6755de..c86aee3 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ .POSIX: - +INC=-I/home/user/project/resources/boost_1_81_0 -L/home/user/project/resources/boost_1_81_0/stage/lib SRCFILES = src/main.cpp db: @@ -12,12 +12,16 @@ db: dbclean: sudo -u postgres sh -c 'dropdb cavecomm ; dropuser cavecommadmin' +all: + rm -r bin cavecomm + g++ $(INC) -o cavecomm $(SRCFILES) -lpqxx -lfmt -pthread + build: - g++ -o cavecomm $(SRCFILES) -lpqxx -lfmt + g++ $(INC) -o cavecomm $(SRCFILES) -lpqxx -lfmt -pthread release: mkdir bin - g++ -o bin/cavecomm $(SRCFILES) -lpqxx -lfmt + g++ $(INC) -o bin/cavecomm $(SRCFILES) -lpqxx -lfmt -pthread clean: rm -r bin cavecomm