chiark / gitweb /
New program to make fixed tables for universal hashing.
[mLib] / Makefile.am
index 08aeed3444c2ed509f95586fa2b6055a6904311e..32ef3491d93a0ca101d6aea33ca30f7b9796ce05 100644 (file)
@@ -1,6 +1,6 @@
 ## -*-Makefile-*-
 ##
-## $Id: Makefile.am,v 1.44 2003/12/14 14:56:57 mdw Exp $
+## $Id: Makefile.am,v 1.45 2003/12/15 20:53:08 mdw Exp $
 ##
 ## Building the distribution
 ##
@@ -29,6 +29,9 @@
 ##----- Revision history ----------------------------------------------------
 ##
 ## $Log: Makefile.am,v $
+## Revision 1.45  2003/12/15 20:53:08  mdw
+## New program to make fixed tables for universal hashing.
+##
 ## Revision 1.44  2003/12/14 14:56:57  mdw
 ## Fix distribution.
 ##
@@ -150,7 +153,7 @@ AUTOMAKE_OPTIONS = foreign
 SUBDIRS = man
 
 bin_SCRIPTS = mLib-config
-bin_PROGRAMS = crc-mktab
+bin_PROGRAMS = crc-mktab unihash-mkstatic
 
 lib_LTLIBRARIES = libmLib.la
 pkglibexecdir = $(libexecdir)/$(PACKAGE)
@@ -175,10 +178,11 @@ libmLib_la_LDFLAGS = -version-info 2:3:0
 
 libmLib_la_SOURCES = \
        alloc.c arena.c exc.c quis.c pquis.c report.c sub.c trace.c \
-               traceopt.c track.c unihash.c \
+               traceopt.c track.c \
        pool.c pool-file.c pool-sub.c \
        atom.c assoc.c darray.c dstr.c dputf.c dspool.c hash.c sym.c \
        crc32.c crc32-tab.c \
+       unihash.c unihash-global.c \
        env.c fdflags.c fdpass.c fwatch.c lock.c \
        @BRES_SOURCE@.c \
        conn.c lbuf.c ident.c pkbuf.c sel.c selbuf.c selpk.c sig.c \
@@ -187,7 +191,7 @@ libmLib_la_SOURCES = \
 EXTRA_libmLib_la_SOURCES = bres.c bres-adns.c
 libmLib_la_LIBADD = @DEPLIBS@
 
-BUILT_SOURCES = crc32-tab.c
+BUILT_SOURCES = crc32-tab.c unihash-global.c
 
 crc32-tab.c: crc-mktab
        ./crc-mktab \
@@ -195,7 +199,17 @@ crc32-tab.c: crc-mktab
                -c -scrc32_table -icrc32.h -tuint32 -ocrc32-tab.c.new
        mv crc32-tab.c.new crc32-tab.c
 
-crc_mktab_SOURCES = crc-mktab.c mdwopt.c quis.c pquis.c report.c str.c
+unihash-global.c: unihash-mkstatic
+       ./unihash-mkstatic \
+               -c -sunihash_global -iunihash.h -ounihash-global.c.new
+       mv unihash-global.c.new unihash-global.c
+
+crc_mktab_SOURCES = \
+       crc-mktab.c \
+       mdwopt.c quis.c pquis.c report.c str.c
+unihash_mkstatic_SOURCES = \
+       unihash-mkstatic.c \
+       mdwopt.c quis.c pquis.c report.c str.c unihash.c
 
 ## --- Test code ---