Makefile.am 1.33 KB
Newer Older
Niels Möller's avatar
Niels Möller committed
1
SUBDIRS = . testsuite
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
libnettleinclude_HEADERS = aes.h arcfour.h blowfish.h cast128.h des.h des-compat.h \
9
			   serpent.h twofish.h \
10
			   md5.h md5-compat.h sha.h \
11
			   cbc.h
Niels Möller's avatar
Niels Möller committed
12

Niels Möller's avatar
Niels Möller committed
13
14
15
libnettle_a_SOURCES = aes.c aes.h arcfour.c arcfour.h \
		      cast128.c cast128.h cast128_sboxes.h \
		      blowfish.h blowfish.c \
Niels Möller's avatar
Niels Möller committed
16
		      cbc.c \
17
18
		      des.c des.h desinfo.h desCode.h \
		      des3.c des-compat.c des-compat.h \
19
		      md5.c md5.h md5-compat.c md5-compat.h \
20
		      sha.h sha1.c sha256.c \
21
22
		      serpent.c serpent.h serpent_sboxes.h \
		      twofish.c twofish.h
Niels Möller's avatar
Niels Möller committed
23

Niels Möller's avatar
Niels Möller committed
24
libnettle_a_LIBADD = @LIBOBJS@
Niels Möller's avatar
Niels Möller committed
25

26
27
shadata_LDADD = -lm

28
29
30
31
info_TEXINFOS = nettle.texinfo

all-local: nettle.html

32
EXTRA_DIST = macros.h memxor.h $(des_headers) descore.README nettle.html .bootstrap
33

34
35
# BUILT_SOURCE = $(des_headers)

36
37
38
39
40
%.html : %.texinfo
	(cd $(srcdir) \
	 && $(MAKEINFO) --html --no-split --output $@T $(<F) \
	 ; test -s $@T && mv -f $@T $@)

41
# desCore rules
42
43
44
# 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 
45
46
47

# Generate DES headers.
$(des_headers): desdata
48
	./desdata $(@F) > $@T
49
50
51
	test -s $@T && mv -f $@T $@

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