Makefile.am 1019 Bytes
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 des.h md5.h sha1.h
Niels Möller's avatar
Niels Möller committed
9

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

Niels Möller's avatar
Niels Möller committed
18
libnettle_a_LIBADD = @LIBOBJS@
Niels Möller's avatar
Niels Möller committed
19

20
21
22
23
24
25
info_TEXINFOS = nettle.texinfo

all-local: nettle.html

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

26
27
# BUILT_SOURCE = $(des_headers)

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

33
34
35
36
37
# desCore rules
des_headers = $(srcdir)/parity.h $(srcdir)/rotors.h $(srcdir)/keymap.h 

# Generate DES headers.
$(des_headers): desdata
38
	./desdata $(@F) > $@T
39
40
41
	test -s $@T && mv -f $@T $@

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