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

Annotation of /libmcrypt/lib/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.19 - (hide annotations)
Sat Mar 8 17:30:52 2003 UTC (21 years, 1 month ago) by nmav
Branch: MAIN
CVS Tags: libmcrypt_2_5_7
Changes since 1.18: +1 -1 lines
mcrypt_symb.c is only generated when needed.

1 nmav 1.15 DEFS = @DEFS@ -DLIBDIR=\"$(libdir)/@PACKAGE@/\"
2     INCLUDES = -I. -I.. $(INCLTDL) -I../modules/algorithms -I../modules/modes
3 nmav 1.1 include_HEADERS = mcrypt.h
4 nmav 1.7 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 nmav 1.10 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 nmav 1.12 mcrypt_symb.c
10 nmav 1.10
11 nmav 1.14 libmcrypt_la_LDFLAGS = \
12 nmav 1.13 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
13 nmav 1.9 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
14 nmav 1.10 -export-symbols libmcrypt.sym @LIBLTDL@
15 nmav 1.12 libmcrypt_la_LIBADD = @EXTRA_OBJECTS@
16    
17 nmav 1.4 m4datadir = $(datadir)/aclocal
18     m4data_DATA = libmcrypt.m4
19     bin_SCRIPTS = libmcrypt-config
20 nmav 1.10
21 nmav 1.19 mcrypt_symb.c: mcrypt_internal.h
22 nmav 1.16 @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 nmav 1.18 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; \
28     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; \
29 nmav 1.10 done
30 nmav 1.16 @echo "" >> mcrypt_symb.c
31     @echo "const mcrypt_preloaded mps[] = {" >> mcrypt_symb.c
32     -@for i in $(EXTRA_ALGOS); do \
33 nmav 1.18 if test -f ../modules/modes/$$i.c; then echo " {\"$$i\", NULL}, " >> mcrypt_symb.c 2>/dev/null; fi; \
34     if test -f ../modules/algorithms/$$i.c; then echo " {\"$$i\", NULL}, " >> mcrypt_symb.c 2>/dev/null; fi; \
35     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; \
36     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; \
37 nmav 1.10 done
38 nmav 1.16 @echo " {NULL, NULL}" >> mcrypt_symb.c
39     @echo "};" >> mcrypt_symb.c
40 nmav 1.12
41     clean-local:
42     -rm mcrypt_symb.c

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26