makefile
This commit is contained in:
parent
17f820284a
commit
b5efb8c4b4
1 changed files with 27 additions and 0 deletions
27
Makefile
Normal file
27
Makefile
Normal file
|
@ -0,0 +1,27 @@
|
|||
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/*
|
Loading…
Reference in a new issue