cavecomm/Makefile

36 lines
759 B
Makefile

.POSIX:
# Include path for Boost 1.81.0 and its libraries
INC += -I/home/user/project/resources/boost_1_81_0 -L/home/user/project/resources/boost_1_81_0/stage/lib
# User include paths
INC += -I/usr/include -L/usr/lib
SRCFILES = src/main.cpp
DEF += -DCROW_ENABLE_SSL
LIBS += -lpqxx -lcurl -lcrypto -lssl -pthread
db:
./setupdb.sh
dbclean:
sudo -u postgres sh -c 'dropdb cavecomm ; dropuser cavecommadmin'
all:
rm -r bin cavecomm
g++ $(INC) -o cavecomm $(SRCFILES) $(DEF) $(LIBS)
build:
g++ $(INC) -o cavecomm $(SRCFILES) $(DEF) $(LIBS)
release:
mkdir bin
g++ $(INC) -o bin/cavecomm $(SRCFILES) $(DEF) $(LIBS)
clean:
rm -r bin cavecomm
buildRun:
clear
g++ $(INC) -o cavecomm $(SRCFILES) $(DEF) $(LIBS)
./cavecomm src/default-cavecomm.conf