/[mcrypt]/libmcrypt/lib/Makefile.am
ViewVC logotype

Annotation of /libmcrypt/lib/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (hide annotations)
Sun Sep 2 20:11:45 2001 UTC (22 years, 7 months ago) by nmav
Branch: MAIN
Changes since 1.9: +29 -6 lines
added option to include modules into the library

1 nmav 1.5 DEFS = @DEFS@ -DLIBDIR=\"$(libdir)/@PACKAGE@/\" -I. -I.. $(INCLTDL)
2 nmav 1.1 include_HEADERS = mcrypt.h
3 nmav 1.7 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 nmav 1.10 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 nmav 1.9 libmcrypt_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
11     -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
12 nmav 1.10 -export-symbols libmcrypt.sym @LIBLTDL@
13 nmav 1.4 m4datadir = $(datadir)/aclocal
14     m4data_DATA = libmcrypt.m4
15     bin_SCRIPTS = libmcrypt-config
16 nmav 1.10
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;

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26