### -*-makefile-*- ### ### Build script for hashing ### ### (c) 2009 Straylight/Edgeware ### ###----- Licensing notice --------------------------------------------------- ### ### This file is part of the mLib utilities library. ### ### mLib is free software; you can redistribute it and/or modify ### it under the terms of the GNU Library General Public License as ### published by the Free Software Foundation; either version 2 of the ### License, or (at your option) any later version. ### ### mLib is distributed in the hope that it will be useful, ### but WITHOUT ANY WARRANTY; without even the implied warranty of ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ### GNU Library General Public License for more details. ### ### You should have received a copy of the GNU Library General Public ### License along with mLib; if not, write to the Free ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, ### MA 02111-1307, USA. include $(top_srcdir)/vars.am noinst_LTLIBRARIES = libhash.la libhash_la_SOURCES = libhash_la_LIBADD = ###-------------------------------------------------------------------------- ### Component files. ## CRC32. pkginclude_HEADERS += crc32.h libhash_la_SOURCES += crc32.c LIBMANS += crc32.3 bin_PROGRAMS += crc-mktab crc_mktab_SOURCES = crc-mktab.c crc_mktab_LDADD = $(UTIL_LIBS) PROGMANS += crc-mktab.1 libhash_la_SOURCES += $(precomp)/crc32-tab.c PRECOMPS += $(precomp)/crc32-tab.c if !CROSS_COMPILING $(precomp)/crc32-tab.c: @$(mkdir_p) $(precomp) @$(build_util_libs) @$(MAKE) crc-mktab$(EXEEXT) ./crc-mktab -o $@.new \ -p0x04c11db7 -b32 -B8 -r -c \ -scrc32_table -icrc32.h -tuint32 && \ mv $@.new $@ endif check_PROGRAMS += t/crc32.t t_crc32_t_SOURCES = t/crc32-test.c t_crc32_t_CPPFLAGS = $(TEST_CPPFLAGS) t_crc32_t_LDFLAGS = -static EXTRA_DIST += t/crc32.tests ## Universal hashing. pkginclude_HEADERS += unihash.h noinst_LTLIBRARIES += libunihash.la libunihash_la_SOURCES = unihash.c libhash_la_LIBADD += libunihash.la LIBMANS += unihash.3 bin_PROGRAMS += unihash-mkstatic unihash_mkstatic_SOURCES = unihash-mkstatic.c unihash_mkstatic_LDADD = libunihash.la $(UTIL_LIBS) PROGMANS += unihash-mkstatic.1 libhash_la_SOURCES += $(precomp)/unihash-global.c PRECOMPS += $(precomp)/unihash-global.c if !CROSS_COMPILING $(precomp)/unihash-global.c: @$(mkdir_p) $(precomp) @$(build_util_libs) @$(MAKE) unihash-mkstatic$(EXEEXT) ./unihash-mkstatic -c -sunihash_global -iunihash.h -o$@.new && \ mv $@.new $@ endif check_PROGRAMS += t/unihash.t t_unihash_t_SOURCES = t/unihash-test.c t_unihash_t_CPPFLAGS = $(TEST_CPPFLAGS) t_unihash_t_LDFLAGS = -static EXTRA_DIST += t/unihash-testgen.py ###----- That's all, folks --------------------------------------------------