2013-06-11 17:21:06 +00:00
|
|
|
|
2013-06-11 17:34:01 +00:00
|
|
|
PREFIX ?= /usr/local
|
|
|
|
|
2013-06-11 17:21:06 +00:00
|
|
|
all:
|
2020-12-24 06:03:49 +00:00
|
|
|
$(CC) -O2 $(CFLAGS) -o tomb-kdb-pbkdf2 pbkdf2.c -lgcrypt
|
|
|
|
$(CC) -O2 $(CFLAGS) -o tomb-kdb-pbkdf2-getiter benchmark.c -lgcrypt
|
|
|
|
$(CC) -O2 $(CFLAGS) -o tomb-kdb-pbkdf2-gensalt gen_salt.c -lgcrypt
|
|
|
|
$(CC) -O2 $(CFLAGS) -o tomb-kdb-hexencode hexencode.c
|
2013-06-11 17:21:06 +00:00
|
|
|
|
2018-02-03 20:14:17 +00:00
|
|
|
test:
|
|
|
|
@echo "Running Tomb-kdb tests"
|
|
|
|
./test.sh
|
|
|
|
|
2013-06-11 17:21:06 +00:00
|
|
|
clean:
|
2014-11-16 14:18:11 +00:00
|
|
|
rm -f tomb-kdb-pbkdf2 tomb-kdb-pbkdf2-getiter tomb-kdb-pbkdf2-gensalt tomb-kdb-hexencode
|
2013-06-11 17:34:01 +00:00
|
|
|
|
|
|
|
install:
|
|
|
|
install -Dm755 tomb-kdb-pbkdf2 ${DESTDIR}${PREFIX}/bin/tomb-kdb-pbkdf2
|
|
|
|
install -Dm755 tomb-kdb-pbkdf2-getiter ${DESTDIR}${PREFIX}/bin/tomb-kdb-pbkdf2-getiter
|
|
|
|
install -Dm755 tomb-kdb-pbkdf2-gensalt ${DESTDIR}${PREFIX}/bin/tomb-kdb-pbkdf2-gensalt
|
2014-11-17 16:32:51 +00:00
|
|
|
install -Dm755 tomb-kdb-hexencode ${DESTDIR}${PREFIX}/bin/tomb-kdb-hexencode
|
2014-11-16 14:18:11 +00:00
|
|
|
@echo "Tomb-kdb auxiliary binaries installed in ${DESTDIR}${PREFIX}/bin"
|