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