This repository has been archived on 2025-02-20. You can view files and clone it, but cannot push or open issues or pull requests.
Files
cavecomm/Makefile
Michael Yick 6eb6f7d8f6 remove opinionation from Makefile
accidently added some nginx Makefile edits that did not need to be there.
2023-07-09 16:58:25 -05:00

37 lines
760 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