Fixed license declaration at spec file
[platform/upstream/gdbm.git] / src / Makefile.am
1 # This file is part of GDBM.                                   -*- Makefile -*-
2 # Copyright (C) 2007, 2011 Free Software Foundation, Inc.
3 #
4 # GDBM is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3, or (at your option)
7 # any later version.
8 #
9 # GDBM is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with GDBM. If not, see <http://www.gnu.org/licenses/>. 
16
17 # Flags
18 AM_CPPFLAGS=-DIN_GDBM -DLOCALEDIR=\"$(localedir)\"
19
20 # Headers
21 include_HEADERS = gdbm.h
22 noinst_HEADERS = \
23  gdbmconst.h\
24  gdbmdefs.h\
25  gettext.h\
26  proto.h\
27  systems.h
28
29 EXTRA_DIST = gdbm.h.in gram.h
30
31 # The libraries
32 VI_CURRENT  = 4
33 VI_REVISION = 0
34 VI_AGE      = 0
35
36 lib_LTLIBRARIES = libgdbm.la
37 libgdbm_la_LIBADD = @LTLIBINTL@
38
39 libgdbm_la_SOURCES = \
40  gdbmclose.c\
41  gdbmcount.c\
42  gdbmdelete.c\
43  gdbmdump.c\
44  gdbmerrno.c\
45  gdbmexists.c\
46  gdbmexp.c\
47  gdbmfdesc.c\
48  gdbmfetch.c\
49  gdbmload.c\
50  gdbmopen.c\
51  gdbmimp.c\
52  gdbmreorg.c\
53  gdbmseq.c\
54  gdbmsetopt.c\
55  gdbmstore.c\
56  gdbmsync.c\
57  base64.c\
58  bucket.c\
59  falloc.c\
60  findkey.c\
61  fullio.c\
62  hash.c\
63  lock.c\
64  mmap.c\
65  update.c\
66  version.c
67
68 libgdbm_la_LDFLAGS = -version-info $(VI_CURRENT):$(VI_REVISION):$(VI_AGE)
69
70 noinst_LIBRARIES = libgdbmapp.a
71
72 libgdbmapp_a_SOURCES =\
73  err.c\
74  mem.c\
75  gdbmapp.h\
76  parseopt.c\
77  progname.c
78
79 # Programs
80 bin_PROGRAMS = gdbmtool gdbm_load gdbm_dump
81
82 gdbmtool_LDADD  = ./libgdbmapp.a ./libgdbm.la
83 gdbmtool_SOURCES = \
84  datconv.c\
85  gram.y\
86  lex.l\
87  gdbmtool.h\
88  gdbmtool.c\
89  var.c\
90  util.c
91
92 AM_YFLAGS = -dtv
93 #AM_LFLAGS = -d
94
95 gdbm_load_LDADD  = ./libgdbmapp.a ./libgdbm.la 
96 gdbm_dump_LDADD  = ./libgdbmapp.a ./libgdbm.la