astrognome/src/Makefile.am

38 lines
1.4 KiB
Makefile
Raw Normal View History

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
ag-resources.c: ag.gresource.xml $(resource_files)
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)
glib-compile-resources --target=$@ --sourcedir=$(RESOURCE_DIR) --generate-header --c-name ag $(srcdir)/ag.gresource.xml
2013-09-08 11:37:38 +00:00
BUILT_SOURCES = \
ag-resources.h \
ag-resources.c \
$(NULL)
astrognome_source_files = \
ag-app.c \
ag-window.c \
ag-chart.c \
ag-settings.c \
ag-preferences.c \
2014-07-20 21:13:56 +00:00
ag-db.c \
astrognome.c \
$(NULL)
2013-09-08 11:37:38 +00:00
EXTRA_DIST = \
$(resource_files) \
ag.gresource.xml \
$(NULL)
AM_CPPFLAGS = -DG_LOG_DOMAIN=\"Astrognome\" -DLOCALEDIR=\"$(localedir)\" -DPKGDATADIR=\"$(pkgdatadir)\" -I$(top_srcdir)/libgd
bin_PROGRAMS = astrognome
2013-07-08 23:15:13 +00:00
astrognome_SOURCES = $(astrognome_source_files) $(BUILT_SOURCES)
astrognome_LDADD = $(SWE_GLIB_LIBS) $(GTK_LIBS) $(LIBXML_LIBS) $(LIBXSLT_LIBS) $(WEBKIT_LIBS) $(GDA_LIBS) $(top_builddir)/libgd/libgd.la
astrognome_LDFLAGS = -rdynamic
2014-07-20 21:13:56 +00:00
astrognome_CFLAGS = $(SWE_GLIB_CFLAGS) $(CFLAGS) $(GTK_CFLAGS) $(LIBXML_CFLAGS) $(LIBXSLT_CFLAGS) $(WEBKIT_CFLAGS) $(GDA_CFLAGS) -Wall