Makefile.am 1.71 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 cast128.h \
			   des.h des-compat.h \
10
			   serpent.h twofish.h \
11
			   md5.h md5-compat.h sha.h \
12
			   cbc.h yarrow.h \
Niels Möller's avatar
Niels Möller committed
13
			   rsa.h nettle-meta.h
Niels Möller's avatar
Niels Möller committed
14

Niels Möller's avatar
Niels Möller committed
15
16
libnettle_a_SOURCES = aes.c aes.h aes-meta.c arcfour.c arcfour.h arcfour-meta.c\
		      cast128.c cast128.h cast128_sboxes.h cast128-meta.c \
Niels Möller's avatar
Niels Möller committed
17
		      blowfish.h blowfish.c \
Niels Möller's avatar
Niels Möller committed
18
		      cbc.c \
19
20
		      des.c des.h desinfo.h desCode.h \
		      des3.c des-compat.c des-compat.h \
Niels Möller's avatar
Niels Möller committed
21
22
23
24
		      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 \
25
26
		      yarrow.h yarrow256.c yarrow_key_event.c \
		      bignum.h bignum.c \
27
		      rsa.h rsa.c rsa_md5.c rsa_sha1.c \
Niels Möller's avatar
Niels Möller committed
28
29
		      rsa-compat.h rsa-compat.c \
		      nettle-internal.c
Niels Möller's avatar
Niels Möller committed
30

Niels Möller's avatar
Niels Möller committed
31
libnettle_a_LIBADD = @LIBOBJS@
Niels Möller's avatar
Niels Möller committed
32

33
34
shadata_LDADD = -lm

35
36
37
38
info_TEXINFOS = nettle.texinfo

all-local: nettle.html

39
40
EXTRA_DIST = macros.h memxor.h $(des_headers) descore.README nettle.html \
	.bootstrap $(des_headers)
41

42
43
# BUILT_SOURCE = $(des_headers)

44
45
46
47
48
%.html : %.texinfo
	(cd $(srcdir) \
	 && $(MAKEINFO) --html --no-split --output $@T $(<F) \
	 ; test -s $@T && mv -f $@T $@)

49
# desCore rules
50
51
52
# 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 
53
54

# Generate DES headers.
55
56
$(des_headers): desdata.c
	$(MAKE) desdata
57
	./desdata $(@F) > $@T
58
59
60
	test -s $@T && mv -f $@T $@

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