1
lib_LTLIBRARIES = libgweather.la
3
libgweatherincdir = $(includedir)/libgweather
1
lib_LTLIBRARIES = libgweather-3.la
2
noinst_PROGRAMS = test_metar test_locations test_sun_moon
9
AM_CFLAGS = $(WARN_CFLAGS)
4
11
gweather_old_headers = \
5
12
weather.h gweather-gconf.h gweather-prefs.h gweather-xml.h
6
13
gweather_new_headers = \
7
14
gweather-location.h location-entry.h \
8
15
gweather-timezone.h timezone-menu.h
16
libgweatherincdir = $(includedir)/libgweather-3.0/libgweather
9
17
libgweatherinc_HEADERS = \
10
18
$(gweather_old_headers) \
11
19
$(gweather_new_headers) \
12
20
gweather-enum-types.h
14
pkgconfigdir = $(libdir)/pkgconfig
15
pkgconfig_DATA = gweather.pc
22
noinst_HEADERS = weather-priv.h gweather-win32.h
17
libgweather_la_SOURCES = \
24
libgweather_3_la_SOURCES = \
18
25
weather.c weather.h weather-priv.h \
19
26
weather-metar.c weather-iwin.c weather-met.c \
20
27
weather-bom.c weather-wx.c \
59
libgweather_la_LDFLAGS = \
63
libgweather_3_la_LDFLAGS = \
60
64
-version-info $(LT_VERSION) -no-undefined
62
MKENUMS_GENERATED = gweather-enum-types.c gweather-enum-types.h
66
test_metar_SOURCES = test_metar.c
67
test_metar_CPPFLAGS = $(AM_CPPFLAGS) $(LIBSOUP_CFLAGS)
68
test_metar_LDADD = libgweather-3.la $(GTK_LIBS)
70
test_locations_SOURCES = test_locations.c
71
test_locations_LDADD = libgweather-3.la $(GTK_LIBS)
73
test_sun_moon_SOURCES = test_sun_moon.c
74
test_sun_moon_CPPFLAGS = $(AM_CPPFLAGS) $(LIBSOUP_CFLAGS)
75
test_sun_moon_LDADD = libgweather-3.la $(GTK_LIBS)
64
77
gweather-enum-types.h: $(gweather_new_headers)
65
78
$(AM_V_GEN)( cd $(srcdir) && $(GLIB_MKENUMS) --template gweather-enum-types.h.tmpl \
73
86
&& mv gweather-enum-types.c.tmp gweather-enum-types.c \
74
87
|| rm -f gweather-enum-type.c.tmp
76
BUILT_SOURCES = $(MKENUMS_GENERATED)
78
test_metar_SOURCES = test_metar.c
86
-DG_LOG_DOMAIN=\"GWeather\"
94
test_locations_SOURCES = test_locations.c
96
test_locations_CFLAGS = \
101
$(GNOME_VFS_APPLETS_CFLAGS) \
102
-DG_LOG_DOMAIN=\"GWeather\"
104
test_locations_LDADD = libgweather.la $(GTK_LIBS)
106
test_sun_moon_SOURCES = \
109
test_sun_moon_CFLAGS = \
115
-DG_LOG_DOMAIN=\"GWeather\"
117
test_sun_moon_LDADD = \
122
noinst_HEADERS = weather-priv.h gweather-win32.h
123
noinst_PROGRAMS = test_metar test_locations test_sun_moon
125
schemadir = @GCONF_SCHEMA_FILE_DIR@
89
BUILT_SOURCES = gweather-enum-types.c gweather-enum-types.h
91
pkgconfigdir = $(libdir)/pkgconfig
92
pkgconfig_DATA = gweather-3.0.pc
94
schemadir = @GCONF_SCHEMA_FILE_DIR@
126
95
schema_in_files = gweather.schemas.in
127
96
schema_DATA = $(schema_in_files:.schemas.in=.schemas)
129
98
@INTLTOOL_SCHEMAS_RULE@
100
EXTRA_DIST = gweather-3.0.pc.in gweather-3.0-uninstalled.pc.in $(schema_in_files)
102
CLEANFILES = $(schema_DATA) $(noinst_PROGRAMS) $(BUILT_SOURCES)
105
-include $(INTROSPECTION_MAKEFILE)
107
INTROSPECTION_SCANNER_ARGS = --warn-all --add-include-path=$(srcdir)
108
INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
110
if HAVE_INTROSPECTION
111
introspection_sources = \
112
weather.c weather.h \
113
gweather-location.c gweather-location.h \
114
gweather-timezone.c gweather-timezone.h \
115
location-entry.c location-entry.h \
116
timezone-menu.c timezone-menu.h \
117
gweather-enum-types.h
119
GWeather-3.0.gir: libgweather-3.la Makefile
120
GWeather_3_0_gir_INCLUDES = GObject-2.0 Gtk-3.0
121
GWeather_3_0_gir_CFLAGS = $(libgweather_3_la_CPPFLAGS) -DGWEATHER_I_KNOW_THIS_IS_UNSTABLE
122
GWeather_3_0_gir_LIBS = libgweather-3.la
123
GWeather_3_0_gir_SCANNERFLAGS = --identifier-prefix=GWeather --symbol-prefix=gweather --pkg-export=gweather-3.0
124
GWeather_3_0_gir_FILES = $(addprefix $(srcdir)/,$(introspection_sources))
125
INTROSPECTION_GIRS += GWeather-3.0.gir
127
girdir = $(INTROSPECTION_GIRDIR)
128
gir_DATA = $(INTROSPECTION_GIRS)
130
typelibdir = $(INTROSPECTION_TYPELIBDIR)
131
typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
133
CLEANFILES += $(gir_DATA) $(typelib_DATA)
131
136
if GCONF_SCHEMAS_INSTALL
132
137
install-data-local:
133
138
if test -z "$(DESTDIR)" ; then \
134
139
for p in $(schema_DATA) ; do \
135
GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $$p ; \
140
GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(top_builddir)/libgweather/$$p ; \
139
144
for p in $(schema_DATA) ; do \
140
GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-uninstall-rule $$p ; \
145
GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-uninstall-rule $(top_builddir)/libgweather/$$p ; \
144
EXTRA_DIST = gweather.pc.in gweather-uninstalled.pc.in $(schema_in_files)
146
EXTRA_PROGRAMS = test_metar test_sun_moon
148
CLEANFILES = $(schema_DATA) $(EXTRA_PROGRAMS) $(MKENUMS_GENERATED)
150
149
-include $(top_srcdir)/git.mk