Makefile.am 1.2 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
9
10
libnettleinclude_HEADERS = aes.h arcfour.h blowfish.h cast128.h des.h \
			   serpent.h twofish.h \
			   md5.h md5-compat.h sha1.h
Niels Möller's avatar
Niels Möller committed
11

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

Niels Möller's avatar
Niels Möller committed
21
libnettle_a_LIBADD = @LIBOBJS@
Niels Möller's avatar
Niels Möller committed
22

23
24
25
26
27
28
info_TEXINFOS = nettle.texinfo

all-local: nettle.html

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

29
30
# BUILT_SOURCE = $(des_headers)

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

36
# desCore rules
37
38
39
# 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 
40
41
42

# Generate DES headers.
$(des_headers): desdata
43
	./desdata $(@F) > $@T
44
45
46
	test -s $@T && mv -f $@T $@

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