~ubuntu-branches/debian/squeeze/libgpg-error/squeeze

« back to all changes in this revision

Viewing changes to src/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Jose Carlos Garcia Sogo
  • Date: 2006-09-24 16:33:03 UTC
  • mfrom: (1.2.1 upstream) (2.1.3 edgy)
  • Revision ID: james.westby@ubuntu.com-20060924163303-2secsa8lts3hhhct
Tags: 1.4-1
* New upstream version.
* Bumped Standards-Version to 3.7.2. No changes needed.
* Use {binary:Version} field in libgpg-error-dev dependecy field. (Closes: #384376)
* Fix typo in upstream URL at debian/copyright file (Closes: #387735)
* debian/patches: Disable m4_macros and 10_relibtoolize patches.
  Upstream uses now a quite current copy of gettext.
* Update FSF address in debian/copyright file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
# We distribute the generated sources err-sources.h and err-codes.h,
21
21
# because they are needed to build the po directory, and they don't
22
22
# depend on the configuration anyway. 
 
23
 
 
24
localedir = $(datadir)/locale
 
25
bin_PROGRAMS = gpg-error
 
26
lib_LTLIBRARIES = libgpg-error.la
 
27
include_HEADERS = gpg-error.h
 
28
bin_SCRIPTS = gpg-error-config
 
29
m4datadir = $(datadir)/aclocal
 
30
m4data_DATA = gpg-error.m4
 
31
 
 
32
 
23
33
EXTRA_DIST = mkstrtable.awk err-sources.h.in err-codes.h.in \
24
34
        mkerrnos.awk errnos.in \
25
35
        mkerrcodes.awk mkerrcodes1.awk mkerrcodes2.awk mkerrcodes.c \
26
36
        mkheader.awk gpg-error.h.in \
27
 
        err-sources.h err-codes.h gpg-error-config.in gpg-error.m4
 
37
        err-sources.h err-codes.h gpg-error-config.in gpg-error.m4 \
 
38
        gpg-error.def versioninfo.rc.in
 
39
 
28
40
BUILT_SOURCES = err-sources.h err-codes.h code-to-errno.h code-from-errno.h \
29
41
        err-sources-sym.h err-codes-sym.h errnos-sym.h gpg-error.h
 
42
 
 
43
tmp_files = _mkerrcodes.h
 
44
 
30
45
CLEANFILES = err-sources.h err-codes.h code-to-errno.h code-from-errno.h \
31
46
        gpg-error.h mkerrcodes mkerrcodes.h \
32
 
        err-sources-sym.h err-codes-sym.h errnos-sym.h
33
 
 
34
 
bin_SCRIPTS = gpg-error-config
35
 
m4datadir = $(datadir)/aclocal
36
 
m4data_DATA = gpg-error.m4
37
 
 
38
 
include_HEADERS = gpg-error.h
39
 
 
40
 
lib_LTLIBRARIES = libgpg-error.la
41
 
 
42
 
libgpg_error_la_LDFLAGS = -version-info \
43
 
  @LIBGPG_ERROR_LT_CURRENT@:@LIBGPG_ERROR_LT_REVISION@:@LIBGPG_ERROR_LT_AGE@
44
 
 
45
 
libgpg_error_la_SOURCES = gpg-error.h gettext.h \
46
 
        strsource.c strerror.c code-to-errno.c code-from-errno.c
47
 
 
48
 
libgpg_error_la_LIBADD = @LTLIBINTL@
49
 
 
50
 
bin_PROGRAMS = gpg-error
51
 
gpg_error_SOURCES = strsource-sym.c strerror-sym.c gpg-error.c
52
 
gpg_error_LDADD = ./libgpg-error.la
 
47
        err-sources-sym.h err-codes-sym.h errnos-sym.h $(tmp_files)
 
48
 
 
49
 
 
50
if HAVE_W32_SYSTEM
 
51
arch_sources = w32-gettext.h w32-gettext.c
 
52
 
 
53
LTRCCOMPILE = $(LIBTOOL) --mode=compile $(RC) \
 
54
     `echo $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) | \
 
55
     sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
 
56
 
 
57
%.o : %.rc
 
58
        $(LTRCCOMPILE) -i $< -o $@
 
59
 
 
60
gpg_error_res = versioninfo.o
 
61
gpg_error_res_ldflag = -Wl,$(gpg_error_res)
 
62
no_undefined = -no-undefined
 
63
export_symbols = -export-symbols $(srcdir)/gpg-error.def
 
64
 
 
65
install-def-file:
 
66
        $(INSTALL) gpg-error.def $(DESTDIR)$(libdir)/gpg-error-.def
 
67
 
 
68
uninstall-def-file:
 
69
        -rm $(DESTDIR)$(libdir)/gpg-error.def
 
70
 
 
71
libgpg_error_la_DEPENDENCIES = $(gpg_error_res) gpg-error.def
 
72
intllibs = 
 
73
 
 
74
else
 
75
arch_sources =
 
76
gpg_error_res =
 
77
gpg_error_res_ldflag =
 
78
no_undefined =
 
79
export_symbols =
 
80
install-def-file:
 
81
uninstall-def-file:
 
82
 
 
83
intllibs = @LTLIBINTL@
 
84
 
 
85
endif
 
86
 
 
87
 
 
88
libgpg_error_la_LDFLAGS = $(gpg_error_res_ldflag) -version-info \
 
89
  @LIBGPG_ERROR_LT_CURRENT@:@LIBGPG_ERROR_LT_REVISION@:@LIBGPG_ERROR_LT_AGE@ \
 
90
  $(no_undefined) $(export_symbols)
 
91
 
 
92
libgpg_error_la_SOURCES = gpg-error.h gettext.h $(arch_sources) \
 
93
        init.c strsource.c strerror.c code-to-errno.c code-from-errno.c
 
94
 
 
95
libgpg_error_la_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\" -I../intl
 
96
libgpg_error_la_LIBADD = $(intllibs)
 
97
 
 
98
gpg_error_SOURCES = strsource-sym.c strerror-sym.c gpg-error.c $(arch_sources)
 
99
gpg_error_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\" -I../intl
 
100
gpg_error_LDADD = ./libgpg-error.la @LTLIBINTL@
53
101
 
54
102
err-sources.h: Makefile mkstrtable.awk err-sources.h.in
55
103
        $(AWK) -f $(srcdir)/mkstrtable.awk -v textidx=3 \
72
120
 
73
121
# It is correct to use $(CPP).  We want the host's idea of the error codes.
74
122
mkerrcodes.h: Makefile mkerrcodes.awk
75
 
        $(AWK) -f $(srcdir)/mkerrcodes1.awk $(srcdir)/errnos.in \
76
 
        | $(CPP) - | grep GPG_ERR_ | $(AWK) -f $(srcdir)/mkerrcodes.awk >$@
 
123
        $(AWK) -f $(srcdir)/mkerrcodes1.awk $(srcdir)/errnos.in >_$@
 
124
        $(CPP) _$@ | grep GPG_ERR_ | $(AWK) -f $(srcdir)/mkerrcodes.awk >$@
 
125
        -rm _$@
77
126
 
78
127
# It is correct to use $(CC_FOR_BUILD) here.  We want to run the
79
128
# program at build time.
80
129
mkerrcodes: mkerrcodes.c mkerrcodes.h Makefile
81
 
        $(CC_FOR_BUILD) -I. -I$(srcdir) -o $@ $<
 
130
        $(CC_FOR_BUILD) -I. -I$(srcdir) -o $@ $(srcdir)/mkerrcodes.c
82
131
 
83
132
code-from-errno.h: mkerrcodes Makefile
84
 
        ./$< | $(AWK) -f $(srcdir)/mkerrcodes2.awk >$@
 
133
        ./mkerrcodes | $(AWK) -f $(srcdir)/mkerrcodes2.awk >$@
85
134
 
86
135
errnos-sym.h: Makefile mkstrtable.awk errnos.in
87
136
        $(AWK) -f $(srcdir)/mkstrtable.awk -v textidx=2 -v nogettext=1 \