shepherd/Makefile
2018-09-05 21:51:13 +02:00

31 lines
No EOL
537 B
Makefile

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 $@