shepherd/Makefile
2016-01-28 18:06:36 +01:00

23 lines
448 B
Makefile

CC = g++
LINKER = g++
CFLAGS = -std=c++14 -Wall -Werror -Wpointer-arith -Wfatal-errors
DEBUG = -g
prefix=/usr/local
all: shepherd rsa
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
# remove produced files, invoke as "make clean"
clean:
rm -f bin/*