1
lib_LTLIBRARIES = libgweather.la
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) \
14
pkgconfigdir = $(libdir)/pkgconfig
15
pkgconfig_DATA = gweather.pc
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 \
29
location-entry.c location-entry.h \
30
timezone-menu.c timezone-menu.h \
34
libgweather_la_SOURCES += gweather-win32.c
36
EXTRA_libgweather_la_SOURCES = gweather-win32.c
39
libgweather_la_CFLAGS = \
47
-DG_LOG_DOMAIN=\"GWeather\" \
48
-DGNOMELOCALEDIR=\""$(datadir)/locale"\" \
49
-DGWEATHER_XML_LOCATION_DIR=\""$(pkgdatadir)"\"
51
libgweather_la_LIBADD = \
59
libgweather_la_LDFLAGS = \
60
-version-info $(LT_VERSION) -no-undefined
62
MKENUMS_GENERATED = gweather-enum-types.c gweather-enum-types.h
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
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
76
BUILT_SOURCES = $(MKENUMS_GENERATED)
78
test_metar_SOURCES = test_metar.c
86
-DG_LOG_DOMAIN=\"GWeather\"
93
test_locations_SOURCES = test_locations.c
95
test_locations_CFLAGS = \
100
$(GNOME_VFS_APPLETS_CFLAGS) \
101
-DG_LOG_DOMAIN=\"GWeather\"
103
test_locations_LDADD = libgweather.la
105
test_sun_moon_SOURCES = \
108
test_sun_moon_CFLAGS = \
114
-DG_LOG_DOMAIN=\"GWeather\"
116
test_sun_moon_LDADD = \
120
noinst_HEADERS = weather-priv.h gweather-win32.h
121
noinst_PROGRAMS = test_metar test_locations test_sun_moon
123
schemadir = @GCONF_SCHEMA_FILE_DIR@
124
schema_in_files = gweather.schemas.in
125
schema_DATA = $(schema_in_files:.schemas.in=.schemas)
127
@INTLTOOL_SCHEMAS_RULE@
129
if GCONF_SCHEMAS_INSTALL
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 ; \
137
for p in $(schema_DATA) ; do \
138
GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-uninstall-rule $$p ; \
142
EXTRA_DIST = gweather.pc.in gweather-uninstalled.pc.in $(schema_in_files)
144
EXTRA_PROGRAMS = test_metar test_sun_moon
146
CLEANFILES = $(schema_DATA) $(EXTRA_PROGRAMS) $(MKENUMS_GENERATED)
148
-include $(top_srcdir)/git.mk