1 ## Prefered emacs editing mode: -*- Makefile -*-
3 ## Copyright (C) 2002 by Kevin L. Mitchell <klmitch@mit.edu>
5 ## This library is free software; you can redistribute it and/or
6 ## modify it under the terms of the GNU Library General Public
7 ## License as published by the Free Software Foundation; either
8 ## version 2 of the License, or (at your option) any later version.
10 ## This library is distributed in the hope that it will be useful,
11 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 ## Library General Public License for more details.
15 ## You should have received a copy of the GNU Library General Public
16 ## License along with this library; if not, write to the Free
17 ## Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
22 ## Process this file with automake to generate Makefile.in
24 AUTOMAKE_OPTIONS = foreign
26 # The . here forces prefix ordering, so make check rebuilds the
27 # library first if necessary
30 lib_LTLIBRARIES = libdbprim.la
31 libdbprim_la_SOURCES = dbprim_int.h \
33 _hash_prime.c he_init.c ht_add.c ht_find.c ht_flush.c \
34 ht_free.c ht_init.c ht_iter.c ht_move.c ht_remove.c \
37 le_init.c ll_add.c ll_find.c ll_flush.c ll_init.c \
38 ll_iter.c ll_move.c ll_remove.c \
40 sh_find.c sh_flush.c sh_init.c sh_iter.c sh_move.c \
41 _smat_comp.c smat_freelist.c _smat_hash.c \
42 _smat_resize.c st_add.c st_find.c st_flush.c st_free.c \
43 st_init.c st_iter.c st_remove.c st_resize.c
44 libdbprim_la_LIBADD = @DBPRIM_ET_OBJS@
45 libdbprim_la_DEPENDENCIES = @DBPRIM_ET_OBJS@
46 libdbprim_la_LDFLAGS = -version-info 1:1:0
48 include_HEADERS = dbprim.h
50 EXTRA_DIST = dbprim.h.top dbprim.h.bot dbprim_err.et \
51 comp_et-sh.in COPYING INSTALL doc
55 CLEANFILES = dbprim.h dbprim_err.c dbprim_err.h
57 .et.c .et.h: comp_et-sh
58 $(SHELL) comp_et-sh --com_err=@COM_ERR@ --dir=$(top_builddir) $<
60 dbprim_err.c dbprim_err.h: dbprim_err.et
64 dbprim.h: $(srcdir)/dbprim.h.top dbprim_err.h $(srcdir)/dbprim.h.bot
65 cat $(srcdir)/dbprim.h.top dbprim_err.h \
66 $(srcdir)/dbprim.h.bot > dbprim.h
69 rm -f dbprim.h dbprim_err.c dbprim_err.h