~ubuntu-branches/ubuntu/oneiric/gnupg2/oneiric-updates

« back to all changes in this revision

Viewing changes to common/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Viehmann
  • Date: 2008-10-04 10:25:53 UTC
  • mfrom: (5.1.15 intrepid)
  • Revision ID: james.westby@ubuntu.com-20081004102553-fv62pp8dsitxli47
Tags: 2.0.9-3.1
* Non-maintainer upload.
* agent/gpg-agent.c: Deinit the threading library before exec'ing
  the command to run in --daemon mode. And because that still doesn't
  restore the sigprocmask, do that manually. Closes: #499569

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Makefile for common gnupg modules
2
 
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
 
2
# Copyright (C) 2001, 2003, 2007 Free Software Foundation, Inc.
3
3
#
4
4
# This file is part of GnuPG.
5
5
#
6
6
# GnuPG is free software; you can redistribute it and/or modify
7
7
# it under the terms of the GNU General Public License as published by
8
 
# the Free Software Foundation; either version 2 of the License, or
 
8
# the Free Software Foundation; either version 3 of the License, or
9
9
# (at your option) any later version.
10
10
11
11
# GnuPG is distributed in the hope that it will be useful,
14
14
# GNU General Public License for more details.
15
15
16
16
# You should have received a copy of the GNU General Public License
17
 
# along with this program; if not, write to the Free Software
18
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
 
17
# along with this program; if not, see <http://www.gnu.org/licenses/>.
19
18
 
20
19
## Process this file with automake to produce Makefile.in
21
20
 
22
 
noinst_LIBRARIES = libcommon.a libsimple-pwquery.a
23
 
 
24
 
AM_CPPFLAGS = -I$(top_srcdir)/gl
25
 
 
26
 
AM_CFLAGS = $(LIBGCRYPT_CFLAGS) $(LIBASSUAN_CFLAGS) $(KSBA_CFLAGS) \
27
 
            $(PTH_CFLAGS)
28
 
 
29
 
libcommon_a_SOURCES = \
30
 
        util.h i18n.h \
31
 
        errors.h \
 
21
EXTRA_DIST = mkstrtable.awk exaudit.awk exstatus.awk \
 
22
             audit-events.h status-codes.h
 
23
 
 
24
noinst_LIBRARIES = libcommon.a libcommonpth.a libsimple-pwquery.a libgpgrl.a
 
25
noinst_PROGRAMS = $(module_tests) $(module_maint_tests)
 
26
TESTS = $(module_tests)
 
27
 
 
28
BUILT_SOURCES = audit-events.h status-codes.h
 
29
 
 
30
CLEANFILES = audit-events.h status-codes.h
 
31
 
 
32
AM_CPPFLAGS = -I$(top_srcdir)/gl -I$(top_srcdir)/intl
 
33
 
 
34
AM_CFLAGS = $(LIBGCRYPT_CFLAGS) $(KSBA_CFLAGS)
 
35
 
 
36
include $(top_srcdir)/am/cmacros.am
 
37
 
 
38
common_sources = \
 
39
        common-defs.h \
 
40
        util.h i18n.c i18n.h \
 
41
        status.c status.h\
 
42
        openpgpdefs.h \
 
43
        gc-opt-flags.h \
 
44
        keyserver.h \
32
45
        sexp-parse.h \
 
46
        tlv.c tlv.h \
 
47
        init.c init.h \
33
48
        sexputil.c \
34
 
        maperror.c \
35
49
        sysutils.c sysutils.h \
36
50
        homedir.c \
37
51
        gettime.c \
38
52
        yesno.c \
39
53
        b64enc.c \
 
54
        convert.c \
40
55
        miscellaneous.c \
41
56
        xasprintf.c \
42
57
        xreadline.c \
45
60
        ttyio.c ttyio.h \
46
61
        asshelp.c asshelp.h \
47
62
        exechelp.c exechelp.h \
48
 
        simple-gettext.c \
49
 
        w32reg.c \
50
63
        signal.c \
51
 
        dynload.h \
52
 
        estream.c estream.h
53
 
 
 
64
        estream.c estream.h estream-printf.c estream-printf.h \
 
65
        audit.c audit.h \
 
66
        srv.h \
 
67
        dns-cert.c dns-cert.h \
 
68
        pka.c pka.h \
 
69
        http.c http.h \
 
70
        localename.c \
 
71
        helpfile.c
 
72
 
 
73
 
 
74
 
 
75
libcommon_a_SOURCES = $(common_sources)
 
76
if USE_DNS_SRV
 
77
libcommon_a_SOURCES += srv.c
 
78
endif
 
79
libcommon_a_CFLAGS = $(AM_CFLAGS) $(LIBASSUAN_CFLAGS) -DWITHOUT_GNU_PTH=1
 
80
 
 
81
libcommonpth_a_SOURCES = $(common_sources)
 
82
if USE_DNS_SRV
 
83
libcommonpth_a_SOURCES += srv.c
 
84
endif
 
85
libcommonpth_a_CFLAGS = $(AM_CFLAGS) $(LIBASSUAN_PTH_CFLAGS) $(PTH_CFLAGS)
54
86
 
55
87
libsimple_pwquery_a_SOURCES = \
56
88
        simple-pwquery.c simple-pwquery.h asshelp.c asshelp.h
 
89
libsimple_pwquery_a_CFLAGS = $(AM_CFLAGS) $(LIBASSUAN_CFLAGS)
 
90
 
 
91
libgpgrl_a_SOURCES = \
 
92
        gpgrlhelp.c
 
93
 
 
94
# Create the audit-events.h include file from audit.h
 
95
audit-events.h: Makefile mkstrtable.awk exaudit.awk audit.h
 
96
        $(AWK) -f $(srcdir)/exaudit.awk $(srcdir)/audit.h \
 
97
          | $(AWK) -f $(srcdir)/mkstrtable.awk -v textidx=3 -v nogettext=1 \
 
98
                   -v namespace=eventstr_  >$@
 
99
 
 
100
# Create the status-codes.h include file from status.h
 
101
status-codes.h: Makefile mkstrtable.awk exstatus.awk status.h
 
102
        $(AWK) -f $(srcdir)/exstatus.awk $(srcdir)/status.h \
 
103
          | $(AWK) -f $(srcdir)/mkstrtable.awk -v textidx=3 -v nogettext=1 \
 
104
                   -v namespace=statusstr_  >$@
 
105
 
 
106
 
 
107
#
 
108
# Module tests
 
109
#
 
110
module_tests = t-convert t-gettime t-sysutils t-sexputil
 
111
module_maint_tests = t-helpfile
 
112
 
 
113
t_common_ldadd = libcommon.a ../jnlib/libjnlib.a ../gl/libgnu.a \
 
114
                 $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) $(LIBINTL) $(LIBICONV)
 
115
 
 
116
t_convert_LDADD = $(t_common_ldadd)
 
117
t_gettime_LDADD = $(t_common_ldadd)
 
118
t_sysutils_LDADD = $(t_common_ldadd)
 
119
t_helpfile_LDADD = $(t_common_ldadd)
 
120
t_sexputil_LDADD = $(t_common_ldadd)
57
121