24 |
@echo "/* This is automatically created. Don't touch... */" >> mcrypt_symb.c |
@echo "/* This is automatically created. Don't touch... */" >> mcrypt_symb.c |
25 |
@echo "" >> mcrypt_symb.c |
@echo "" >> mcrypt_symb.c |
26 |
-@for i in $(EXTRA_ALGOS); do \ |
-@for i in $(EXTRA_ALGOS); do \ |
27 |
if test -f ../modules/algorithms/$$i.c; then cat ../modules/algorithms/$$i.c 2>/dev/null|grep define|grep LTX|awk '{print "extern "$$3"();";}' >> mcrypt_symb.c 2>/dev/null; fi; \ |
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; \ |
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 |
done |
34 |
@echo "" >> mcrypt_symb.c |
@echo "" >> mcrypt_symb.c |
35 |
@echo "const mcrypt_preloaded mps[] = {" >> mcrypt_symb.c |
@echo "const mcrypt_preloaded mps[] = {" >> mcrypt_symb.c |
36 |
-@for i in $(EXTRA_ALGOS); do \ |
-@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; \ |
if test -f ../modules/modes/$$i.c; then echo " {\"$$i\", NULL}, " >> mcrypt_symb.c 2>/dev/null; fi; \ |
42 |
if test -f ../modules/algorithms/$$i.c; then echo " {\"$$i\", NULL}, " >> mcrypt_symb.c 2>/dev/null; fi; \ |
if test -f ../modules/algorithms/$$f.c; then echo " {\"$$i\", NULL}, " >> mcrypt_symb.c 2>/dev/null; fi; \ |
43 |
if test -f ../modules/algorithms/$$i.c; then cat ../modules/algorithms/$$i.c 2>/dev/null|grep define|grep LTX|awk '{print "\t{\""$$3"\", "$$3"},";}' >> mcrypt_symb.c 2>/dev/null; fi; \ |
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; \ |
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 |
done |
46 |
@echo " {NULL, NULL}" >> mcrypt_symb.c |
@echo " {NULL, NULL}" >> mcrypt_symb.c |