Makefile.am.in 2.17 KB
Newer Older
1
## Process this file with make_am to produce Makefile.am
Niels Möller's avatar
Niels Möller committed
2
SUBDIRS: include
3
CVS_HEADERS: cvs_headers
4
5
6
7
8
BODY:

AUTOMAKE_OPTIONS = foreign

noinst_LIBRARIES = libsymmetric.a
Niels Möller's avatar
Niels Möller committed
9
noinst_PROGRAMS = desTest desdata bf_test
10

Niels Möller's avatar
Niels Möller committed
11
12
13
# FIXME: Use the BASH variable to execute the script. The problem is
# that the script attempts to start itselt with "$0 args".

Niels Möller's avatar
Niels Möller committed
14
Makefile.am: Makefile.am.in
Niels Möller's avatar
Niels Möller committed
15
	(cd $(top_srcdir); ./make_am)
Niels Möller's avatar
Niels Möller committed
16

17
18
19
# When compiling with lsh, this is set to to -DLSH -I/path/to/lsh/include
# INCLUDES = @crypto_cpp_flags@

Niels Möller's avatar
Niels Möller committed
20
21
LDADD = libsymmetric.a
desdata_LDADD =
22
23
24
25
26
27
28

des_headers = parity.h rotors.h keymap.h 
BUILT_SOURCES =	desSmallFips.c desSmallCore.c desQuickFips.c desQuickCore.c \
	$(des_headers)

libsymmetric_a_SOURCES = desCode.h desKerb.c desUtil.c desQuick.c \
      $(BUILT_SOURCES) \
Niels Möller's avatar
Niels Möller committed
29
      sha.c md5.c idea.c arcfour.c cast.c blowfish.c
30
31
32
33
34

# Generate DES headers.
$(des_headers): desdata
	./desdata $@ > $@

35
36
desUtil.o: desUtil.c $(des_headers)

37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Generate DES sources. Slowest to quickest.
desSmallFips.c:
		@echo > $@ '#include "desCode.h"' 
		@echo >> $@ 'ENCRYPT(DesSmallFipsEncrypt,TEMPSMALL,\
			     LOADFIPS,KEYMAPSMALL,SAVEFIPS)' 
		@echo >> $@ 'DECRYPT(DesSmallFipsDecrypt,TEMPSMALL,\
			     LOADFIPS,KEYMAPSMALL,SAVEFIPS)' 
desSmallCore.c:
		@echo > $@ '#include "desCode.h"' 
		@echo >> $@ 'ENCRYPT(DesSmallCoreEncrypt,TEMPSMALL,\
			     LOADCORE,KEYMAPSMALL,SAVECORE)' 
		@echo >> $@ 'DECRYPT(DesSmallCoreDecrypt,TEMPSMALL,\
			     LOADCORE,KEYMAPSMALL,SAVECORE)' 
desQuickFips.c:
		@echo > $@ '#include "desCode.h"' 
		@echo >> $@ 'ENCRYPT(DesQuickFipsEncrypt,TEMPQUICK,\
			     LOADFIPS,KEYMAPQUICK,SAVEFIPS)' 
		@echo >> $@ 'DECRYPT(DesQuickFipsDecrypt,TEMPQUICK,\
			     LOADFIPS,KEYMAPQUICK,SAVEFIPS)' 
desQuickCore.c:
		@echo > $@ '#include "desCode.h"' 
		@echo >> $@ 'ENCRYPT(DesQuickCoreEncrypt,TEMPQUICK,\
			     LOADCORE,KEYMAPQUICK,SAVECORE)' 
		@echo >> $@ 'DECRYPT(DesQuickCoreDecrypt,TEMPQUICK,\
			     LOADCORE,KEYMAPQUICK,SAVECORE)' 
62

63
EXTRA_DIST = $(cvs_headers) Makefile.am.in descore.README
64
65
66
67
68
69

.PHONY: depend
depend:
	rm -f $(DEP_FILES)
	make $(DEP_FILES)

70
71
# .deps/%.P : %.c
# 	$(CC) $(CPPFLAGS) $(DEFS) -M -MG $< > $@
72
73
74

MAINTAINERCLEANFILES += $(DEP_FILES)

Niels Möller's avatar
Niels Möller committed
75
include $(top_srcdir)/misc/ctags.mk