### -*-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 += crc32-tab.c CLEANFILES += crc32-tab.c crc32-tab.c: @$(build_util_libs) @$(MAKE) crc-mktab$(EXEEXT) ./crc-mktab -o $@.new \ -p0x04c11db7 -b32 -B8 -r -c \ -scrc32_table -icrc32.h -tuint32 && \ mv $@.new $@ ## 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 += unihash-global.c CLEANFILES += unihash-global.c unihash-global.c: @$(build_util_libs) @$(MAKE) unihash-mkstatic$(EXEEXT) ./unihash-mkstatic -c -sunihash_global -iunihash.h -o$@.new && \ mv $@.new $@ check_PROGRAMS += unihash.t unihash_t_SOURCES = unihash.c unihash_t_CPPFLAGS = $(TEST_CPPFLAGS) unihash_t_LDFLAGS = -static tests:: unihash.t unihash.in ./unihash.t -f unihash.in EXTRA_DIST += unihash-check.pl CLEANFILES += unihash.in unihash.in: unihash-check.pl perl $(srcdir)/unihash-check.pl >$@.new && mv $@.new $@ ###----- That's all, folks --------------------------------------------------