Makefile.am 804 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 \
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
26
27
EXTRA_DIST = macros.h memxor.h $(des_headers) descore.README
# BUILT_SOURCE = $(des_headers)

# desCore rules
des_headers = $(srcdir)/parity.h $(srcdir)/rotors.h $(srcdir)/keymap.h 

# Generate DES headers.
$(des_headers): desdata
28
	./desdata $(@F) > $@T
29
30
31
	test -s $@T && mv -f $@T $@

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