Makefile.am.in 2.13 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
9
noinst_PROGRAMS = desTest desdata bf_test twofish_test generate_q
Niels Möller's avatar
Niels Möller committed
10

Niels Möller's avatar
Niels Möller committed
11
Makefile.am: Makefile.am.in
12
	(cd $(top_srcdir) && $(MAKE) src/symmetric/Makefile.am)
Niels Möller's avatar
Niels Möller committed
13

14 15 16
# 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
17 18
LDADD = libsymmetric.a
desdata_LDADD =
19 20 21 22 23 24 25

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) \
J.H.M. Dassen's avatar
J.H.M. Dassen committed
26
      sha.c md5.c idea.c arcfour.c cast.c blowfish.c twofish.c
27 28 29

# Generate DES headers.
$(des_headers): desdata
Niels Möller's avatar
Niels Möller committed
30 31
	./desdata $@ > $@T
	test -s $@T && mv -f $@T $@
32

33 34
desUtil.o: desUtil.c $(des_headers)

35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
# 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)' 
60

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

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

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

MAINTAINERCLEANFILES += $(DEP_FILES)

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