CC = g++ LINKER = g++ CFLAGS = -std=c++14 -Wall -Werror -Wpointer-arith -Wfatal-errors DEBUG = -g prefix=/usr/local all: shepherd rsa test shepherd: src/pwmgr.cpp src/db.cpp src/db.h mkdir -p bin $(CC) $(CFLAGS) src/pwmgr.cpp src/db.cpp -o bin/shepherd -lsqlite3 test: src/test.cpp src/db2.cpp src/db2.h mkdir -p bin $(CC) $(CFLAGS) src/test.cpp src/db2.cpp -o bin/test -lsqlite3 rsa: src/rsa.cpp mkdir -p bin $(CC) $(CFLAGS) src/rsa.cpp -o bin/rsa -lssl -lcrypto install: bin/shepherd install -m 0755 bin/shepherd $(prefix)/bin # remove produced files, invoke as "make clean" clean: rm -f bin/*