Newer
Older
noinst_PROGRAMS = desdata shadata
libnettleincludedir = $(includedir)/nettle
libnettleinclude_HEADERS = aes.h arcfour.h blowfish.h
base64.h cast128.h \
des.h des-compat.h \
md5.h md5-compat.h \
nettle-meta.h rsa.h \
serpent.h sha.h twofish.h \
yarrow.h
libnettle_a_SOURCES = aes.c aes.h aes-meta.c \
arcfour.c arcfour.h arcfour-meta.c \
base64.c base64-meta.c base64.h \
des.c des.h desinfo.h desCode.h \
des3.c des-compat.c des-compat.h \
hmac.c hmac.h hmac-md5.c hmac-sha1.c \
knuth-lfib.c knuth-lfib.h \
md5.c md5.h md5-compat.c md5-compat.h md5-meta.c \
sha.h sha1.c sha1-meta.c sha256.c sha256-meta.c \
serpent.c serpent.h serpent_sboxes.h serpent-meta.c \
twofish.c twofish.h twofish-meta.c \
yarrow.h yarrow256.c yarrow_key_event.c \
bignum.h bignum.c \
rsa.h rsa.c rsa_md5.c rsa_sha1.c \
rsa-keygen.c rsa-compat.h rsa-compat.c \
nettle-internal.c nettle-internal.h nettle-meta.h
shadata_LDADD = -lm
info_TEXINFOS = nettle.texinfo
all-local: nettle.html
EXTRA_DIST = macros.h memxor.h $(des_headers) descore.README nettle.html \
.bootstrap $(des_headers)
%.html : %.texinfo
(cd $(srcdir) \
&& $(MAKEINFO) --html --no-split --output $@T $(<F) \
; test -s $@T && mv -f $@T $@)
# It seems using $(srcdir)/ doesn't work with GNU make 3.79.1
# des_headers = $(srcdir)/parity.h $(srcdir)/rotors.h $(srcdir)/keymap.h
des_headers = parity.h rotors.h keymap.h
$(des_headers): desdata.c
$(MAKE) desdata
./desdata $(@F) > $@T
test -s $@T && mv -f $@T $@
des.o: des.c des.h $(des_headers)