~ubuntu-branches/ubuntu/quantal/libgweather/quantal

« back to all changes in this revision

Viewing changes to .pc/02_gcc45_linking.patch/libgweather/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2011-05-17 15:26:05 UTC
  • mfrom: (1.1.28 upstream) (5.1.9 experimental)
  • Revision ID: james.westby@ubuntu.com-20110517152605-anf9c03d1ny7yn54
Tags: 3.0.0-0ubuntu1
* Resynchronize on Debian and update to the current version, remaining diff:
* debian/control.in:
  - Build-depend on dh-autoreconf, gnome-common
  - use Conflicts on the ppa binaries names differently for easier upgrades
* debian/rules:
  - Run autotools on build
  - Generate POT files on build
* debian/patches/01_gettext_not_xml.patch: 
  - using gettext rather than add translations to the xml databases
* debian/watch: 
  - Watch unstable series  

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
lib_LTLIBRARIES = libgweather.la
2
 
 
3
 
libgweatherincdir = $(includedir)/libgweather
4
 
gweather_old_headers = \
5
 
        weather.h gweather-gconf.h gweather-prefs.h gweather-xml.h
6
 
gweather_new_headers = \
7
 
        gweather-location.h location-entry.h \
8
 
        gweather-timezone.h timezone-menu.h
9
 
libgweatherinc_HEADERS = \
10
 
        $(gweather_old_headers)         \
11
 
        $(gweather_new_headers)         \
12
 
        gweather-enum-types.h
13
 
 
14
 
pkgconfigdir = $(libdir)/pkgconfig
15
 
pkgconfig_DATA = gweather.pc
16
 
 
17
 
libgweather_la_SOURCES = \
18
 
        weather.c weather.h weather-priv.h \
19
 
        weather-metar.c weather-iwin.c weather-met.c \
20
 
        weather-bom.c weather-wx.c \
21
 
        weather-sun.c weather-moon.c \
22
 
        gweather-enum-types.c \
23
 
        gweather-prefs.c gweather-prefs.h \
24
 
        gweather-gconf.c gweather-gconf.h \
25
 
        gweather-xml.c gweather-xml.h \
26
 
        gweather-location.c gweather-location.h \
27
 
        gweather-timezone.c gweather-timezone.h \
28
 
        gweather-win32.h \
29
 
        location-entry.c location-entry.h \
30
 
        timezone-menu.c timezone-menu.h \
31
 
        parser.c parser.h
32
 
 
33
 
if OS_WIN32
34
 
libgweather_la_SOURCES += gweather-win32.c
35
 
else
36
 
EXTRA_libgweather_la_SOURCES = gweather-win32.c
37
 
endif
38
 
 
39
 
libgweather_la_CFLAGS = \
40
 
        -I$(top_srcdir)                 \
41
 
        -I$(srcdir)                     \
42
 
        $(WARN_CFLAGS)                  \
43
 
        $(GTK_CFLAGS)                   \
44
 
        $(LIBXML_CFLAGS)                \
45
 
        $(LIBSOUP_CFLAGS)               \
46
 
        $(GCONF_CFLAGS)                 \
47
 
        -DG_LOG_DOMAIN=\"GWeather\"     \
48
 
        -DGNOMELOCALEDIR=\""$(datadir)/locale"\" \
49
 
        -DGWEATHER_XML_LOCATION_DIR=\""$(pkgdatadir)"\"
50
 
 
51
 
libgweather_la_LIBADD = \
52
 
        -lm             \
53
 
        $(GTK_LIBS)     \
54
 
        $(LIBXML_LIBS)  \
55
 
        $(LIBSOUP_LIBS) \
56
 
        $(GCONF_LIBS) \
57
 
        $(REGEX_LIBS)
58
 
 
59
 
libgweather_la_LDFLAGS = \
60
 
        -version-info $(LT_VERSION) -no-undefined
61
 
 
62
 
MKENUMS_GENERATED = gweather-enum-types.c gweather-enum-types.h
63
 
 
64
 
gweather-enum-types.h: $(gweather_new_headers)
65
 
        $(AM_V_GEN)( cd $(srcdir) && $(GLIB_MKENUMS) --template gweather-enum-types.h.tmpl \
66
 
                $(gweather_new_headers) ) > gweather-enum-types.h.tmp \
67
 
        && mv gweather-enum-types.h.tmp gweather-enum-types.h \
68
 
        || rm -f gweather-enum-type.h.tmp
69
 
 
70
 
gweather-enum-types.c: $(libgweatherinclude_HEADERS)
71
 
        $(AM_V_GEN)( cd $(srcdir) && $(GLIB_MKENUMS) --template gweather-enum-types.c.tmpl \
72
 
                $(gweather_new_headers) ) > gweather-enum-types.c.tmp \
73
 
        && mv gweather-enum-types.c.tmp gweather-enum-types.c \
74
 
        || rm -f gweather-enum-type.c.tmp
75
 
 
76
 
BUILT_SOURCES = $(MKENUMS_GENERATED)
77
 
 
78
 
test_metar_SOURCES = test_metar.c
79
 
 
80
 
test_metar_CFLAGS = \
81
 
        -I$(top_srcdir)                 \
82
 
        -I$(srcdir)                     \
83
 
        $(WARN_CFLAGS)                  \
84
 
        $(GTK_CFLAGS)                   \
85
 
        $(LIBSOUP_CFLAGS)               \
86
 
        -DG_LOG_DOMAIN=\"GWeather\"
87
 
 
88
 
test_metar_LDADD = \
89
 
        $(LIBSOUP_LIBS) \
90
 
        $(REGEX_LIBS) \
91
 
        libgweather.la
92
 
 
93
 
test_locations_SOURCES = test_locations.c
94
 
 
95
 
test_locations_CFLAGS = \
96
 
        -I$(top_srcdir)                 \
97
 
        -I$(srcdir)                     \
98
 
        $(WARN_CFLAGS)                  \
99
 
        $(GTK_CFLAGS)                   \
100
 
        $(GNOME_VFS_APPLETS_CFLAGS)     \
101
 
        -DG_LOG_DOMAIN=\"GWeather\"
102
 
 
103
 
test_locations_LDADD = libgweather.la
104
 
 
105
 
test_sun_moon_SOURCES = \
106
 
        test_sun_moon.c
107
 
 
108
 
test_sun_moon_CFLAGS = \
109
 
        -I$(top_srcdir)                 \
110
 
        -I$(srcdir)                     \
111
 
        $(WARN_CFLAGS)                  \
112
 
        $(GTK_CFLAGS)                   \
113
 
        $(LIBSOUP_CFLAGS)               \
114
 
        -DG_LOG_DOMAIN=\"GWeather\"
115
 
 
116
 
test_sun_moon_LDADD = \
117
 
        $(LIBSOUP_LIBS) \
118
 
        libgweather.la
119
 
 
120
 
noinst_HEADERS = weather-priv.h gweather-win32.h
121
 
noinst_PROGRAMS = test_metar test_locations test_sun_moon
122
 
 
123
 
schemadir   = @GCONF_SCHEMA_FILE_DIR@
124
 
schema_in_files = gweather.schemas.in
125
 
schema_DATA = $(schema_in_files:.schemas.in=.schemas)
126
 
 
127
 
@INTLTOOL_SCHEMAS_RULE@
128
 
 
129
 
if GCONF_SCHEMAS_INSTALL
130
 
install-data-local:
131
 
        if test -z "$(DESTDIR)" ; then \
132
 
                for p in $(schema_DATA) ; do \
133
 
                        GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $$p ; \
134
 
                done \
135
 
        fi
136
 
uninstall-local:
137
 
        for p in $(schema_DATA) ; do \
138
 
                GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-uninstall-rule $$p ; \
139
 
        done
140
 
endif
141
 
 
142
 
EXTRA_DIST = gweather.pc.in gweather-uninstalled.pc.in $(schema_in_files)
143
 
 
144
 
EXTRA_PROGRAMS = test_metar test_sun_moon
145
 
 
146
 
CLEANFILES = $(schema_DATA) $(EXTRA_PROGRAMS) $(MKENUMS_GENERATED)
147
 
 
148
 
-include $(top_srcdir)/git.mk