Makefile.am 1.24 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
libnettleinclude_HEADERS = aes.h arcfour.h blowfish.h cast128.h des.h \
			   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
		      des.c des.h des3.c desinfo.h desCode.h \
18 19
		      md5.c md5.h md5-compat.c md5-compat.h \
		      sha1.c sha1.h \
20 21
		      serpent.c serpent.h serpent_sboxes.h \
		      twofish.c twofish.h
Niels Möller's avatar
Niels Möller committed
22

Niels Möller's avatar
Niels Möller committed
23
libnettle_a_LIBADD = @LIBOBJS@
Niels Möller's avatar
Niels Möller committed
24

25 26 27 28 29 30
info_TEXINFOS = nettle.texinfo

all-local: nettle.html

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

31 32
# BUILT_SOURCE = $(des_headers)

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

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

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

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