Makefile.am 1.4 KB
Newer Older
1
SUBDIRS = . testsuite examples
Niels Möller's avatar
Niels Möller committed
2

3
noinst_PROGRAMS = desdata shadata
4

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 blowfish.h cast128.h des.h des-compat.h \
9
			   serpent.h twofish.h \
10
			   md5.h md5-compat.h sha.h \
11
			   cbc.h yarrow.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 18
		      des.c des.h desinfo.h desCode.h \
		      des3.c des-compat.c des-compat.h \
19
		      md5.c md5.h md5-compat.c md5-compat.h \
20
		      sha.h sha1.c sha256.c \
21
		      serpent.c serpent.h serpent_sboxes.h \
22 23
		      twofish.c twofish.h \
		      yarrow.h yarrow256.c yarrow_key_event.c
Niels Möller's avatar
Niels Möller committed
24

Niels Möller's avatar
Niels Möller committed
25
libnettle_a_LIBADD = @LIBOBJS@
Niels Möller's avatar
Niels Möller committed
26

27 28
shadata_LDADD = -lm

29 30 31 32
info_TEXINFOS = nettle.texinfo

all-local: nettle.html

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

35 36
# BUILT_SOURCE = $(des_headers)

37 38 39 40 41
%.html : %.texinfo
	(cd $(srcdir) \
	 && $(MAKEINFO) --html --no-split --output $@T $(<F) \
	 ; test -s $@T && mv -f $@T $@)

42
# desCore rules
43 44 45
# 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 
46 47 48

# Generate DES headers.
$(des_headers): desdata
49
	./desdata $(@F) > $@T
50 51 52
	test -s $@T && mv -f $@T $@

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