Hash :
054bca1a
Author :
Date :
2023-04-11T00:19:46
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
## Process this file with automake to produce Makefile.in
AM_CPPFLAGS = \
-I$(top_builddir) \
-I$(srcdir) \
-I$(top_srcdir)/include \
# EOL
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = \
libmd.pc \
# EOL
lib_LTLIBRARIES = libmd.la
libmd_la_helper_sources = \
md2hl.c \
md4hl.c \
md5hl.c \
rmd160hl.c \
sha1hl.c \
sha224hl.c \
sha256hl.c \
sha384hl.c \
sha512hl.c \
sha512_256hl.c \
# EOL
EXTRA_libmd_la_DEPENDENCIES = \
libmd.map
libmd_la_LDFLAGS = \
-no-undefined \
-version-number $(LIBMD_ABI) \
# EOL
if HAVE_LINKER_VERSION_SCRIPT
libmd_la_LDFLAGS += \
-Wl,--version-script=$(srcdir)/libmd.map \
# EOL
else
libmd_la_LDFLAGS += \
-export-symbols libmd.sym \
# EOL
EXTRA_libmd_la_DEPENDENCIES += \
libmd.sym \
# EOL
endif
EXTRA_libmd_la_DEPENDENCIES += \
helper.c \
# EOL
libmd_la_SOURCES = \
local-link.h \
md2.c \
md4.c \
md5.c \
rmd160.c \
sha1.c \
sha2.c \
$(libmd_la_helper_sources) \
# EOL
BUILT_SOURCES = \
$(libmd_la_helper_sources) \
# EOL
EXTRA_DIST = \
libmd.map \
libmd.pc.in \
helper.c \
# EOL
CLEANFILES = \
$(libmd_la_helper_sources) \
# EOL
DISTCLEANFILES = \
libmd.sym \
# EOL
# Generate a simple libtool symbol export list to be used as a fallback if
# there is no version script support.
libmd.sym: libmd.map
$(AM_V_GEN) $(SED) -ne 's/^[[:space:]]\{1,\}\([A-Za-z0-9_]\{1,\}\);/\1/p' libmd.map > $@
md2hl.c: helper.c
$(AM_V_GEN) $(SED) -e 's/hashinc/md2.h/g' -e 's/HASH/MD2/g' helper.c > $@
md4hl.c: helper.c
$(AM_V_GEN) $(SED) -e 's/hashinc/md4.h/g' -e 's/HASH/MD4/g' helper.c > $@
md5hl.c: helper.c
$(AM_V_GEN) $(SED) -e 's/hashinc/md5.h/g' -e 's/HASH/MD5/g' helper.c > $@
rmd160hl.c: helper.c
$(AM_V_GEN) $(SED) -e 's/hashinc/rmd160.h/g' -e 's/HASH/RMD160/g' helper.c > $@
sha1hl.c: helper.c
$(AM_V_GEN) $(SED) -e 's/hashinc/sha1.h/g' -e 's/HASH/SHA1/g' helper.c > $@
sha224hl.c: helper.c
$(AM_V_GEN) $(SED) -e 's/hashinc/sha2.h/g' -e 's/HASH/SHA224/g' \
-e 's/SHA[0-9][0-9][0-9]_CTX/SHA2_CTX/g' helper.c > $@
sha256hl.c: helper.c
$(AM_V_GEN) $(SED) -e 's/hashinc/sha2.h/g' -e 's/HASH/SHA256/g' \
-e 's/SHA[0-9][0-9][0-9]_CTX/SHA2_CTX/g' helper.c > $@
sha384hl.c: helper.c
$(AM_V_GEN) $(SED) -e 's/hashinc/sha2.h/g' -e 's/HASH/SHA384/g' \
-e 's/SHA[0-9][0-9][0-9]_CTX/SHA2_CTX/g' helper.c > $@
sha512hl.c: helper.c
$(AM_V_GEN) $(SED) -e 's/hashinc/sha2.h/g' -e 's/HASH/SHA512/g' \
-e 's/SHA[0-9][0-9][0-9]_CTX/SHA2_CTX/g' helper.c > $@
sha512_256hl.c: helper.c
$(AM_V_GEN) $(SED) -e 's/hashinc/sha2.h/g' -e 's/HASH/SHA512_256/g' \
-e 's/SHA512_256_CTX/SHA2_CTX/g' helper.c > $@
runtimelibdir = $(libdir)
install-exec-hook:
if [ "$(libdir)" != "$(runtimelibdir)" ]; then \
$(MKDIR_P) $(DESTDIR)$(runtimelibdir); \
mv $(DESTDIR)$(libdir)/libmd*.so.* \
$(DESTDIR)$(runtimelibdir)/; \
soname=`readlink $(DESTDIR)$(libdir)/libmd.so`; \
sorelprefix=`echo $(libdir) | $(SED) -r -e 's:(^/)?[^/]+:..:g'`; \
ln -sf $$sorelprefix$(runtimelibdir)/$$soname \
$(DESTDIR)$(libdir)/libmd.so; \
fi
uninstall-hook:
rm -f $(DESTDIR)$(runtimelibdir)/libmd*.so*