Debian Codegraph @

src/util/Makefile.am

raw
1 # Copyright (C) 2004, 2007, 2008, 2009 g10 Code GmbH
2 #
3 # This file is part of Poldi.
4 #
5 # Poldi is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
9 #
10 # Poldi is distributed in the hope that it will be useful, but WITHOUT
11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
13 # License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
18 # 02111-1307, USA
19
20 AM_CPPFLAGS =
21
22 include $(top_srcdir)/am/cmacros.am
23
24 noinst_LIBRARIES = libpoldi-util.a libpoldi-util_shared.a
25
26 poldi_util_SOURCES = \
27 util-local.h \
28 support.c support.h \
29 membuf.c membuf.h \
30 util.h \
31 convert.c \
32 simplelog.c simplelog.h \
33 simpleparse.c simpleparse.h \
34 filenames.c filenames.h
35
36 poldi_util_CFLAGS = \
37 -Wall \
38 -I$(top_builddir) \
39 -I$(top_srcdir)/src \
40 $(GPG_ERROR_CFLAGS) \
41 $(LIBGCRYPT_CFLAGS)
42
43 BUILT_SOURCES = \
44 defs.h
45
46 libpoldi_util_a_CFLAGS = $(poldi_util_CFLAGS)
47 libpoldi_util_shared_a_CFLAGS = -fPIC $(poldi_util_CFLAGS)
48 libpoldi_util_a_SOURCES = $(poldi_util_SOURCES)
49 libpoldi_util_shared_a_SOURCES = $(poldi_util_SOURCES)
50
51 generate = \
52 sed \
53 -e 's,[@]POLDI_CONF_DIRECTORY[@],$(POLDI_CONF_DIRECTORY),g'
54
55 defs.h: defs.h.in configure-stamp
56 $(generate) < $< > $@
57
58 EXTRA_DIST = \
59 defs.h.in configure-stamp.in
60
61 CLEANFILES = $(BUILT_SOURCES) configure-stamp