Makefile.am 1.97 KB
Newer Older
1
SUBDIRS = . testsuite examples
Niels Möller's avatar
Niels Möller committed
2

3
noinst_PROGRAMS = desdata shadata
4

5 6
libnettleincludedir = $(includedir)/nettle

Niels Möller's avatar
Niels Möller committed
7
lib_LIBRARIES = libnettle.a
8 9
libnettleinclude_HEADERS = aes.h arcfour.h blowfish.h
			   base64.h cast128.h \
10
			   cbc.h \
11
			   des.h des-compat.h \
12
			   hmac.h \
13
			   knuth-lfib.h \
14 15 16 17 18
			   md5.h md5-compat.h \
			   nettle-meta.h rsa.h \
			   serpent.h sha.h twofish.h \
			   yarrow.h
			   
19
libnettle_a_SOURCES = aes.c aes.h aes-meta.c \
20 21
		      arcfour.c arcfour.h arcfour-meta.c \
                      base64.c base64-meta.c base64.h \
Niels Möller's avatar
Niels Möller committed
22
		      cast128.c cast128.h cast128_sboxes.h cast128-meta.c \
Niels Möller's avatar
Niels Möller committed
23
		      blowfish.h blowfish.c \
24
		      cbc.c cbc.h \
25 26
		      des.c des.h desinfo.h desCode.h \
		      des3.c des-compat.c des-compat.h \
27 28
		      hmac.c hmac.h hmac-md5.c hmac-sha1.c \
		      knuth-lfib.c knuth-lfib.h \
Niels Möller's avatar
Niels Möller committed
29 30 31 32
		      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 \
33 34
		      yarrow.h yarrow256.c yarrow_key_event.c \
		      bignum.h bignum.c \
35
		      rsa.h rsa.c rsa_md5.c rsa_sha1.c \
36
		      rsa-keygen.c rsa-compat.h rsa-compat.c \
37
		      nettle-internal.c nettle-internal.h nettle-meta.h
Niels Möller's avatar
Niels Möller committed
38

Niels Möller's avatar
Niels Möller committed
39
libnettle_a_LIBADD = @LIBOBJS@
Niels Möller's avatar
Niels Möller committed
40

41 42
shadata_LDADD = -lm

43 44 45 46
info_TEXINFOS = nettle.texinfo

all-local: nettle.html

47 48
EXTRA_DIST = macros.h memxor.h $(des_headers) descore.README nettle.html \
	.bootstrap $(des_headers)
49

50 51
# BUILT_SOURCE = $(des_headers)

52 53 54 55 56
%.html : %.texinfo
	(cd $(srcdir) \
	 && $(MAKEINFO) --html --no-split --output $@T $(<F) \
	 ; test -s $@T && mv -f $@T $@)

57
# desCore rules
58 59 60
# 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 
61 62

# Generate DES headers.
63 64
$(des_headers): desdata.c
	$(MAKE) desdata
65
	./desdata $(@F) > $@T
66 67 68
	test -s $@T && mv -f $@T $@

des.o: des.c des.h $(des_headers)