1 |
DEFS = @DEFS@ -DLIBDIR=\"$(libdir)/@PACKAGE@/\" -I. -I.. $(INCLTDL) |
2 |
include_HEADERS = mcrypt.h |
3 |
EXTRA_DIST = libdefs.h bzero.h xmemory.h mcrypt_modules.h mcrypt_internal.h \ |
4 |
libmcrypt.sym win32_comp.h mcrypt.h.in libmcrypt-config.in libmcrypt.m4 |
5 |
lib_LTLIBRARIES = libmcrypt.la |
6 |
|
7 |
libmcrypt_la_SOURCES = mcrypt_extra.c mcrypt.c bzero.c xmemory.c mcrypt_modules.c win32_comp.c mcrypt_threads.c \ |
8 |
mcrypt_symb.c |
9 |
|
10 |
libmcrypt_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \ |
11 |
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \ |
12 |
-export-symbols libmcrypt.sym @LIBLTDL@ |
13 |
m4datadir = $(datadir)/aclocal |
14 |
m4data_DATA = libmcrypt.m4 |
15 |
bin_SCRIPTS = libmcrypt-config |
16 |
|
17 |
mcrypt_symb.c: |
18 |
echo "#include \"mcrypt_internal.h\"" > mcrypt_symb.c |
19 |
echo "" >> mcrypt_symb.c |
20 |
echo "This is automatically created. Don't touch..." >> mcrypt_symb.c |
21 |
echo "" >> mcrypt_symb.c |
22 |
-for i in $(EXTRA_SOURCES);do \ |
23 |
test -f ../modules/algorithms/$$i.c && $(LN_S) ../modules/algorithms/$$i.c >/dev/null 2>&1; \ |
24 |
test -f ../modules/algorithms/$$i.h && $(LN_S) ../modules/algorithms/$$i.h >/dev/null 2>&1; \ |
25 |
test -f ../modules/modes/$$i.c && $(LN_S) ../modules/modes/$$i.c >/dev/null 2>&1; \ |
26 |
test -f ../modules/modes/$$i.h && $(LN_S) ../modules/modes/$$i.h >/dev/null 2>&1; \ |
27 |
cat $$i.c >> mcrypt_symb.c; \ |
28 |
done |
29 |
echo "" >> mcrypt_symb.c |
30 |
echo "const mcrypt_preloaded mps[] = {" >> mcrypt_symb.c |
31 |
-for i in $(EXTRA_SOURCES);do \ |
32 |
test -f $$i.c && echo " {\"$$i\", NULL}, " >> mcrypt_symb.c; \ |
33 |
cat $$i.c|grep define|grep LTX|awk '{print "\t{\""$$3"\", "$$3"},";}' >> mcrypt_symb.c; \ |
34 |
done |
35 |
echo " {NULL, NULL}" >> mcrypt_symb.c |
36 |
echo "};" >> mcrypt_symb.c |
37 |
|
38 |
# cat $$i.c|grep define|grep LTX|awk '{print "extern "$$3"();"}' >> mcrypt_symb.c; |