blob: 44de71a0492f1fdb9f4ff2939aa74565c02e0ecf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
# This file is part of GDBM. -*- Makefile -*-
# Copyright (C) 2007 Free Software Foundation, Inc.
#
# GDBM is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# GDBM 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GDBM. If not, see <http://www.gnu.org/licenses/>. */
# Flags
AM_CPPFLAGS=-DIN_GDBM
# Built sources
BUILT_SOURCES = gdbm.h
DISTCLEANFILES = gdbm.h
gdbm.h: $(top_srcdir)/src/gdbm.proto $(top_srcdir)/src/gdbmerrno.h $(top_srcdir)/src/gdbm.proto2
rm -f gdbm.h
cp $(top_srcdir)/src/gdbm.proto gdbm.h
chmod +w gdbm.h
grep _ $(top_srcdir)/src/gdbmerrno.h >> gdbm.h
cat $(top_srcdir)/src/gdbm.proto2 >> gdbm.h
chmod -w gdbm.h
# Extras
EXTRA_DIST = gdbm.proto gdbmerrno.h gdbm.proto2
noinst_HEADERS = \
extern.h\
gdbmconst.h\
gdbmdefs.h\
gdbmerrno.h\
proto.h\
systems.h
# The libraries
VI_CURRENT = 4
VI_REVISION = 0
VI_AGE = 0
lib_LTLIBRARIES = libgdbm.la
libgdbm_la_SOURCES = \
gdbmopen.c\
gdbmdelete.c\
gdbmfetch.c\
gdbmstore.c\
gdbmclose.c\
gdbmreorg.c\
gdbmseq.c\
gdbmsync.c\
gdbmerrno.c\
gdbmexists.c\
gdbmfdesc.c\
gdbmsetopt.c\
bucket.c\
falloc.c\
findkey.c\
flatfile.c\
global.c\
hash.c\
lock.c\
mmap.c\
update.c\
version.c
libgdbm_la_LDFLAGS = -version-info $(VI_CURRENT):$(VI_REVISION):$(VI_AGE)
# Programs
bin_PROGRAMS = testgdbm
testgdbm_LDADD = ./libgdbm.la
|