aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2019-02-10 23:19:58 +0100
committerMattias Andrée <maandree@kth.se>2019-02-10 23:19:58 +0100
commitc461a856bc3bca4b1190cf46a1d8a4f401f79b5c (patch)
treedae918632e8bfc1f3d0c23f00a23e7c2e68db4ef /Makefile
parentAdd test from github issue #10 (diff)
downloadlibkeccak-c461a856bc3bca4b1190cf46a1d8a4f401f79b5c.tar.gz
libkeccak-c461a856bc3bca4b1190cf46a1d8a4f401f79b5c.tar.bz2
libkeccak-c461a856bc3bca4b1190cf46a1d8a4f401f79b5c.tar.xz
General API improvements
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 5 insertions, 14 deletions
diff --git a/Makefile b/Makefile
index 7528040..e8c9b80 100644
--- a/Makefile
+++ b/Makefile
@@ -23,18 +23,11 @@ OBJ =\
libkeccak/generalised-spec.o\
libkeccak/hex.o\
libkeccak/state.o\
- libkeccak/mac/hmac.o
+ libkeccak/hmac.o
HDR =\
libkeccak.h\
- libkeccak/digest.h\
- libkeccak/files.h\
- libkeccak/generalised-spec.h\
- libkeccak/hex.h\
- libkeccak/spec.h\
- libkeccak/state.h\
- libkeccak/internal.h\
- libkeccak/mac/hmac.h
+ common.h
MAN3 =\
man3/libkeccak_behex_lower.3\
@@ -146,8 +139,7 @@ install: libkeccak.$(LIBEXT) libkeccak.a
ln -sf -- libkeccak.$(LIBMINOREXT) "$(DESTDIR)$(PREFIX)/lib/libkeccak.$(LIBMAJOREXT)"
ln -sf -- libkeccak.$(LIBMINOREXT) "$(DESTDIR)$(PREFIX)/lib/libkeccak.$(LIBEXT)"
cp -- libkeccak.a "$(DESTDIR)$(PREFIX)/lib/libkeccak.a"
- mkdir -p -- "$(DESTDIR)$(PREFIX)/include/libkeccak/mac"
- for f in $(HDR); do cp -- "$$f" "$(DESTDIR)$(PREFIX)/include/$$f" || exit 1; done
+ cp -- libkeccak.h "$(DESTDIR)$(PREFIX)/include/"
mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man3"
mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man7"
cp -- $(MAN3) "$(DESTDIR)$(MANPREFIX)/man3"
@@ -166,9 +158,8 @@ uninstall:
-rm -rf -- "$(DESTDIR)$(PREFIX)/share/licenses/libkeccak"
clean:
- -rm -f -- *.o libkeccak/*.o libkeccak/mac/*.o
- -rm -f -- *.su libkeccak/*.su libkeccak/mac/*.su
- -rm -f -- *.info *.pdf *.ps *.dvi *.a libkeccak.$(LIBEXT)* test benchmark benchfile
+ -rm -f -- *.o *.su libkeccak/*.o libkeccak/*.su test benchmark benchfile
+ -rm -f -- *.a libkeccak.$(LIBEXT) libkeccak.$(LIBEXT).* libkeccak.*.$(LIBEXT)
.SUFFIXES:
.SUFFIXES: .c .o