1 |
DEFS = @DEFS@ -DLIBDIR=\"$(libdir)/@PACKAGE@/\" |
2 |
INCLUDES = -I. -I.. $(INCLTDL) -I../modules/algorithms -I../modules/modes |
3 |
include_HEADERS = mcrypt.h |
4 |
EXTRA_DIST = libdefs.h bzero.h xmemory.h mcrypt_modules.h mcrypt_internal.h \ |
5 |
libmcrypt.sym win32_comp.h mcrypt.h.in libmcrypt-config.in libmcrypt.m4 |
6 |
lib_LTLIBRARIES = libmcrypt.la |
7 |
|
8 |
libmcrypt_la_SOURCES = mcrypt_extra.c mcrypt.c bzero.c xmemory.c mcrypt_modules.c win32_comp.c mcrypt_threads.c \ |
9 |
mcrypt_symb.c |
10 |
|
11 |
libmcrypt_la_LDFLAGS = \ |
12 |
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \ |
13 |
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \ |
14 |
-export-symbols libmcrypt.sym @LIBLTDL@ |
15 |
libmcrypt_la_LIBADD = @EXTRA_OBJECTS@ |
16 |
|
17 |
m4datadir = $(datadir)/aclocal |
18 |
m4data_DATA = libmcrypt.m4 |
19 |
bin_SCRIPTS = libmcrypt-config |
20 |
|
21 |
mcrypt_symb.c: mcrypt_internal.h |
22 |
@echo "#include \"mcrypt_internal.h\"" > mcrypt_symb.c |
23 |
@echo "" >> mcrypt_symb.c |
24 |
@echo "/* This is automatically created. Don't touch... */" >> mcrypt_symb.c |
25 |
@echo "" >> mcrypt_symb.c |
26 |
-@for i in $(EXTRA_ALGOS); do \ |
27 |
f=$$i ; \ |
28 |
if test x$$f = xthreeway; then f=3-way; \ |
29 |
elif test x$$f = xsafer-sk64; then f=safer64; \ |
30 |
elif test x$$f = xsafer-sk128; then f=safer128; fi; \ |
31 |
if test -f ../modules/algorithms/$$f.c; then cat ../modules/algorithms/$$f.c 2>/dev/null|grep define|grep LTX|awk '{print "extern "$$3"();";}' >> mcrypt_symb.c 2>/dev/null; fi; \ |
32 |
if test -f ../modules/modes/$$i.c; then cat ../modules/modes/$$i.c 2>/dev/null|grep define|grep LTX|awk '{print "extern "$$3"();";}' >> mcrypt_symb.c 2>/dev/null; fi; \ |
33 |
done |
34 |
@echo "" >> mcrypt_symb.c |
35 |
@echo "const mcrypt_preloaded mps[] = {" >> mcrypt_symb.c |
36 |
-@for i in $(EXTRA_ALGOS); do \ |
37 |
f=$$i ; \ |
38 |
if test x$$f = xthreeway; then f=3-way; \ |
39 |
elif test x$$f = xsafer-sk64; then f=safer64; \ |
40 |
elif test x$$f = xsafer-sk128; then f=safer128; fi; \ |
41 |
if test -f ../modules/modes/$$i.c; then echo " {\"$$i\", NULL}, " >> mcrypt_symb.c 2>/dev/null; fi; \ |
42 |
if test -f ../modules/algorithms/$$f.c; then echo " {\"$$i\", NULL}, " >> mcrypt_symb.c 2>/dev/null; fi; \ |
43 |
if test -f ../modules/algorithms/$$f.c; then cat ../modules/algorithms/$$f.c 2>/dev/null|grep define|grep LTX|awk '{print "\t{\""$$3"\", "$$3"},";}' >> mcrypt_symb.c 2>/dev/null; fi; \ |
44 |
if test -f ../modules/modes/$$i.c; then cat ../modules/modes/$$i.c 2>/dev/null|grep define|grep LTX|awk '{print "\t{\""$$3"\", "$$3"},";}' >> mcrypt_symb.c 2>/dev/null; fi; \ |
45 |
done |
46 |
@echo " {NULL, NULL}" >> mcrypt_symb.c |
47 |
@echo "};" >> mcrypt_symb.c |
48 |
|
49 |
clean-local: |
50 |
-rm mcrypt_symb.c |