Makefile.am.in 1.71 KB
Newer Older
1
## Process this file with make_am to produce Makefile.am
2
CVS_HEADERS: cvs_headers
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
BODY:

AUTOMAKE_OPTIONS = foreign

noinst_LIBRARIES = libsymmetric.a
noinst_PROGRAMS = desTest desdata

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

desTest_LDADD = libsymmetric.a

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) \
      sha.c md5.c idea.c rc4.c cast.c

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

# 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)' 
52

53
EXTRA_DIST = $(cvs_headers) Makefile.am.in descore.README