ac4ea9026907e073d2de5febdbdae7d918878103
[ircu2.10.12-pk.git] / libs / dbprim / Makefile.am
1 ## Prefered emacs editing mode: -*- Makefile -*-
2 ##
3 ## Copyright (C) 2002 by Kevin L. Mitchell <klmitch@mit.edu>
4 ##
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.
9 ##
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.
14 ##
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,
18 ## MA 02111-1307, USA
19 ##
20 ## @(#)$Id$
21 ##
22 ## Process this file with automake to generate Makefile.in
23
24 AUTOMAKE_OPTIONS = foreign
25
26 # The . here forces prefix ordering, so make check rebuilds the
27 # library first if necessary
28 SUBDIRS = . tests
29
30 lib_LTLIBRARIES = libdbprim.la
31 libdbprim_la_SOURCES = dbprim_int.h \
32                        \
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 \
35                        ht_resize.c \
36                        \
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 \
39                        \
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
47
48 include_HEADERS = dbprim.h
49
50 EXTRA_DIST = dbprim.h.top dbprim.h.bot dbprim_err.et \
51              comp_et-sh.in COPYING INSTALL doc
52
53 SUFFIXES = .et .h
54
55 CLEANFILES = dbprim.h dbprim_err.c dbprim_err.h
56
57 .et.c .et.h: comp_et-sh
58         $(SHELL) comp_et-sh --com_err=@COM_ERR@ --dir=$(top_builddir) $<
59
60 dbprim_err.c dbprim_err.h: dbprim_err.et
61
62 $(OBJECTS): dbprim.h
63
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
67
68 dist-hook:
69         rm -f dbprim.h dbprim_err.c dbprim_err.h