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