Makefile.am 1.3 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
4
noinst_PROGRAMS = desdata

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
11
			   md5.h md5-compat.h sha1.h \
			   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
20
		      md5.c md5.h md5-compat.c md5-compat.h \
		      sha1.c sha1.h \
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
28
29
info_TEXINFOS = nettle.texinfo

all-local: nettle.html

30
EXTRA_DIST = macros.h memxor.h $(des_headers) descore.README nettle.html .bootstrap
31

32
33
# BUILT_SOURCE = $(des_headers)

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

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

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

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