summaryrefslogtreecommitdiff
path: root/libmateweather/Makefile.am
diff options
context:
space:
mode:
authorPerberos <[email protected]>2011-12-01 21:42:39 -0300
committerPerberos <[email protected]>2011-12-01 21:42:39 -0300
commitfe8aea1c3b5348347633da18a02b0bffd3b266a1 (patch)
tree9881bf77df7572844707cc7c50bd8ca6b5a97076 /libmateweather/Makefile.am
downloadlibmateweather-fe8aea1c3b5348347633da18a02b0bffd3b266a1.tar.bz2
libmateweather-fe8aea1c3b5348347633da18a02b0bffd3b266a1.tar.xz
moving from https://github.com/perberos/mate-desktop-environment
Diffstat (limited to 'libmateweather/Makefile.am')
-rw-r--r--libmateweather/Makefile.am152
1 files changed, 152 insertions, 0 deletions
diff --git a/libmateweather/Makefile.am b/libmateweather/Makefile.am
new file mode 100644
index 0000000..8502708
--- /dev/null
+++ b/libmateweather/Makefile.am
@@ -0,0 +1,152 @@
+lib_LTLIBRARIES = libmateweather.la
+
+libmateweatherincdir = $(includedir)/libmateweather
+mateweather_old_headers = \
+ weather.h mateweather-mateconf.h mateweather-prefs.h mateweather-xml.h
+mateweather_new_headers = \
+ mateweather-location.h location-entry.h \
+ mateweather-timezone.h timezone-menu.h
+libmateweatherinc_HEADERS = \
+ $(mateweather_old_headers) \
+ $(mateweather_new_headers) \
+ mateweather-enum-types.h
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = mateweather.pc
+
+libmateweather_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 weather-moon.c \
+ mateweather-enum-types.c \
+ mateweather-prefs.c mateweather-prefs.h \
+ mateweather-mateconf.c mateweather-mateconf.h \
+ mateweather-xml.c mateweather-xml.h \
+ mateweather-location.c mateweather-location.h \
+ mateweather-timezone.c mateweather-timezone.h \
+ mateweather-win32.h \
+ location-entry.c location-entry.h \
+ timezone-menu.c timezone-menu.h \
+ parser.c parser.h
+
+if OS_WIN32
+libmateweather_la_SOURCES += mateweather-win32.c
+else
+EXTRA_libmateweather_la_SOURCES = mateweather-win32.c
+endif
+
+libmateweather_la_CFLAGS = \
+ -I$(top_srcdir) \
+ -I$(srcdir) \
+ $(WARN_CFLAGS) \
+ $(GTK_CFLAGS) \
+ $(LIBXML_CFLAGS) \
+ $(LIBSOUP_CFLAGS) \
+ $(MATECONF_CFLAGS) \
+ -DG_LOG_DOMAIN=\"MateWeather\" \
+ -DMATELOCALEDIR=\""$(datadir)/locale"\" \
+ -DMATEWEATHER_XML_LOCATION_DIR=\""$(pkgdatadir)"\"
+
+libmateweather_la_LIBADD = \
+ -lm \
+ $(GTK_LIBS) \
+ $(LIBXML_LIBS) \
+ $(LIBSOUP_LIBS) \
+ $(MATECONF_LIBS) \
+ $(REGEX_LIBS)
+
+libmateweather_la_LDFLAGS = \
+ -version-info $(LT_VERSION) -no-undefined
+
+# something is wrong with glib-mkenums, please research the issue
+MKENUMS_GENERATED = mateweather-enum-types.c mateweather-enum-types.h
+
+mateweather-enum-types.h: $(mateweather_new_headers)
+# $(AM_V_GEN)( cd $(srcdir) && $(GLIB_MKENUMS) --template mateweather-enum-types.h.tmpl \
+# $(mateweather_new_headers) ) > mateweather-enum-types.h.tmp \
+# && mv mateweather-enum-types.h.tmp mateweather-enum-types.h \
+# || rm -f mateweather-enum-type.h.tmp
+
+mateweather-enum-types.c: $(libmateweatherinclude_HEADERS)
+# $(AM_V_GEN)( cd $(srcdir) && $(GLIB_MKENUMS) --template mateweather-enum-types.c.tmpl \
+# $(mateweather_new_headers) ) > mateweather-enum-types.c.tmp \
+# && mv mateweather-enum-types.c.tmp mateweather-enum-types.c \
+# || rm -f mateweather-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=\"MateWeather\"
+
+test_metar_LDADD = \
+ $(GTK_LIBS) \
+ $(LIBSOUP_LIBS) \
+ $(REGEX_LIBS) \
+ libmateweather.la
+
+test_locations_SOURCES = test_locations.c
+
+test_locations_CFLAGS = \
+ -I$(top_srcdir) \
+ -I$(srcdir) \
+ $(WARN_CFLAGS) \
+ $(GTK_CFLAGS) \
+ $(MATE_VFS_APPLETS_CFLAGS) \
+ -DG_LOG_DOMAIN=\"MateWeather\"
+
+test_locations_LDADD = libmateweather.la $(GTK_LIBS)
+
+test_sun_moon_SOURCES = \
+ test_sun_moon.c
+
+test_sun_moon_CFLAGS = \
+ -I$(top_srcdir) \
+ -I$(srcdir) \
+ $(WARN_CFLAGS) \
+ $(GTK_CFLAGS) \
+ $(LIBSOUP_CFLAGS) \
+ -DG_LOG_DOMAIN=\"MateWeather\"
+
+test_sun_moon_LDADD = \
+ $(GTK_LIBS) \
+ $(LIBSOUP_LIBS) \
+ libmateweather.la
+
+noinst_HEADERS = weather-priv.h mateweather-win32.h
+noinst_PROGRAMS = test_metar test_locations test_sun_moon
+
+schemadir = @[email protected]
+schema_in_files = mateweather.schemas.in
+schema_DATA = $(schema_in_files:.schemas.in=.schemas)
+
+
+if MATECONF_SCHEMAS_INSTALL
+install-data-local:
+ if test -z "$(DESTDIR)" ; then \
+ for p in $(schema_DATA) ; do \
+ MATECONF_CONFIG_SOURCE=$(MATECONF_SCHEMA_CONFIG_SOURCE) $(MATECONFTOOL) --makefile-install-rule $$p ; \
+ done \
+ fi
+uninstall-local:
+ for p in $(schema_DATA) ; do \
+ MATECONF_CONFIG_SOURCE=$(MATECONF_SCHEMA_CONFIG_SOURCE) $(MATECONFTOOL) --makefile-uninstall-rule $$p ; \
+ done
+endif
+
+EXTRA_DIST = mateweather.pc.in mateweather-uninstalled.pc.in $(schema_in_files)
+
+EXTRA_PROGRAMS = test_metar test_sun_moon
+
+CLEANFILES = $(schema_DATA) $(EXTRA_PROGRAMS)
+#$(MKENUMS_GENERATED)
+
+-include $(top_srcdir)/git.mk