2014-07-03 21:13:52 +00:00
|
|
|
|
RESOURCE_DIR = $(srcdir)/resources
|
|
|
|
|
resource_files = $(shell glib-compile-resources --sourcedir=$(RESOURCE_DIR) --generate-dependencies $(srcdir)/ag.gresource.xml)
|
2013-09-08 11:37:38 +00:00
|
|
|
|
|
2014-09-26 12:52:43 +00:00
|
|
|
|
ag_enum_headers = ag-icon-view.h
|
|
|
|
|
|
2013-09-08 11:37:38 +00:00
|
|
|
|
ag-resources.c: ag.gresource.xml $(resource_files)
|
2014-07-03 21:13:52 +00:00
|
|
|
|
glib-compile-resources --target=$@ --sourcedir=$(RESOURCE_DIR) --generate-source --c-name ag $(srcdir)/ag.gresource.xml
|
2013-09-08 11:37:38 +00:00
|
|
|
|
|
|
|
|
|
ag-resources.h: ag.gresource.xml $(resource_files)
|
2014-07-03 21:13:52 +00:00
|
|
|
|
glib-compile-resources --target=$@ --sourcedir=$(RESOURCE_DIR) --generate-header --c-name ag $(srcdir)/ag.gresource.xml
|
2013-09-08 11:37:38 +00:00
|
|
|
|
|
2014-09-26 12:52:43 +00:00
|
|
|
|
ag-enumtypes.h: $(ag_enum_headers) ag-enumtypes.h.template
|
|
|
|
|
$(GLIB_MKENUMS) --template $(filter %.template,$^) $(filter-out %.template,$^) > \
|
|
|
|
|
ag-enumtypes.h.tmp && mv ag-enumtypes.h.tmp ag-enumtypes.h
|
|
|
|
|
|
|
|
|
|
ag-enumtypes.c: $(ag_enum_headers) ag-enumtypes.c.template
|
|
|
|
|
$(GLIB_MKENUMS) --template $(filter %.template,$^) $(filter-out %.template,$^) > \
|
|
|
|
|
ag-enumtypes.c.tmp && mv ag-enumtypes.c.tmp ag-enumtypes.c
|
|
|
|
|
|
2013-09-08 11:37:38 +00:00
|
|
|
|
BUILT_SOURCES = \
|
|
|
|
|
ag-resources.h \
|
|
|
|
|
ag-resources.c \
|
2014-09-26 12:52:43 +00:00
|
|
|
|
ag-enumtypes.h \
|
|
|
|
|
ag-enumtypes.c \
|
2013-09-08 11:37:38 +00:00
|
|
|
|
$(NULL)
|
|
|
|
|
|
2013-09-13 23:25:46 +00:00
|
|
|
|
astrognome_source_files = \
|
2014-09-12 10:31:11 +00:00
|
|
|
|
ag-app.c \
|
|
|
|
|
ag-window.c \
|
|
|
|
|
ag-chart.c \
|
|
|
|
|
ag-settings.c \
|
|
|
|
|
ag-preferences.c \
|
|
|
|
|
ag-db.c \
|
|
|
|
|
ag-display-theme.c \
|
2014-09-26 12:52:43 +00:00
|
|
|
|
ag-icon-view.c \
|
2014-09-26 12:51:39 +00:00
|
|
|
|
ag-chart-renderer.c \
|
2014-09-12 10:31:11 +00:00
|
|
|
|
astrognome.c \
|
2013-09-13 23:25:46 +00:00
|
|
|
|
$(NULL)
|
|
|
|
|
|
2013-09-08 11:37:38 +00:00
|
|
|
|
EXTRA_DIST = \
|
|
|
|
|
$(resource_files) \
|
|
|
|
|
ag.gresource.xml \
|
|
|
|
|
$(NULL)
|
|
|
|
|
|
2014-09-26 19:10:59 +00:00
|
|
|
|
AM_CPPFLAGS = -DG_LOG_DOMAIN=\"Astrognome\" -DLOCALEDIR=\"$(localedir)\" -DPKGDATADIR=\"$(pkgdatadir)\"
|
2013-08-21 22:48:00 +00:00
|
|
|
|
bin_PROGRAMS = astrognome
|
2013-07-08 23:15:13 +00:00
|
|
|
|
|
2013-09-13 23:25:46 +00:00
|
|
|
|
astrognome_SOURCES = $(astrognome_source_files) $(BUILT_SOURCES)
|
2014-09-26 19:10:59 +00:00
|
|
|
|
astrognome_LDADD = $(SWE_GLIB_LIBS) $(GTK_LIBS) $(LIBXML_LIBS) $(LIBXSLT_LIBS) $(WEBKIT_LIBS) $(GDA_LIBS) $(PIXBUF_LIBS) $(RSVG_LIBS) $(CAIRO_LIBS)
|
2013-08-21 23:42:41 +00:00
|
|
|
|
astrognome_LDFLAGS = -rdynamic
|
2014-09-26 12:51:39 +00:00
|
|
|
|
astrognome_CFLAGS = $(SWE_GLIB_CFLAGS) $(CFLAGS) $(GTK_CFLAGS) $(LIBXML_CFLAGS) $(LIBXSLT_CFLAGS) $(WEBKIT_CFLAGS) $(GDA_CFLAGS) $(PIXBUF_CFLAGS) $(RSVG_CFLAGS) $(CAIRO_CFLAGS) -Wall
|
2013-09-06 14:28:00 +00:00
|
|
|
|
|
2014-09-17 23:22:01 +00:00
|
|
|
|
# The following two lines generate a .dir-locals.el file, so
|
|
|
|
|
# company-mode won’t die due to unknown includes
|
|
|
|
|
.dir-locals.el:
|
|
|
|
|
@echo $(astrognome_CFLAGS) | ./gen-dir-locals-el.sh
|
|
|
|
|
|
|
|
|
|
.PHONY: .dir-locals.el
|