Makefile.am 717 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

10 11
libnettle_a_SOURCES = aes.c aes.h arcfour.c arcfour.h blowfish.h blowfish.c \
		      des.c des.h \
12 13
		      md5.c md5.h sha1.c sha1.h \
		      serpent.c serpent.h serpent_sboxes.h
Niels Möller's avatar
Niels Möller committed
14

Niels Möller's avatar
Niels Möller committed
15
libnettle_a_LIBADD = @LIBOBJS@
Niels Möller's avatar
Niels Möller committed
16

17 18 19 20 21 22 23 24
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
25
	./desdata $(@F) > $@T
26 27 28
	test -s $@T && mv -f $@T $@

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