bin_PROGRAMS = gnome-calculator gcalccmd
AM_CPPFLAGS = \
-DVERSION=\""$(VERSION)"\" \
-DLOCALE_DIR=\""$(localedir)"\" \
-DGETTEXT_PACKAGE=\"$(GETTEXT_PACKAGE)\" \
-w \
-I$(top_srcdir)/lib \
$(LIBCALCULATOR_CFLAGS)
resources_file = gnome-calculator.gresource.xml
BUILT_SOURCES = resources.c
resources.c: $(resources_file) $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies --sourcedir=$(srcdir) $(srcdir)/gnome-calculator.gresource.xml)
$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate-source $<
gnome_calculator_SOURCES = \
$(top_builddir)/vapi/config.vapi \
gnome-calculator.vala \
math-buttons.vala \
math-converter.vala \
math-display.vala \
math-preferences.vala \
math-function-popover.vala \
math-variable-popover.vala \
math-window.vala \
math-history.vala \
$(BUILT_SOURCES)
gnome_calculator_VALAFLAGS = \
--target-glib $(GLIB_REQUIRED) \
--pkg posix \
--pkg gtk+-3.0 \
--pkg gtksourceview-3.0 \
--pkg libxml-2.0 \
--gresources $(resources_file) \
$(top_builddir)/lib/libcalculator.vapi \
$(top_builddir)/vapi/mpfr.vapi
gnome_calculator_CPPFLAGS = \
$(AM_CPPFLAGS) \
$(GNOME_CALCULATOR_CFLAGS)
gnome_calculator_LDADD = \
$(GNOME_CALCULATOR_LIBS) \
$(top_builddir)/lib/libcalculator.la
gcalccmd_SOURCES = \
$(top_builddir)/vapi/config.vapi \
gcalccmd.vala
gcalccmd_VALAFLAGS = \
--target-glib $(GLIB_REQUIRED) \
--pkg posix \
--pkg gio-2.0 \
--pkg gtksourceview-3.0 \
--pkg libxml-2.0 \
$(top_builddir)/lib/libcalculator.vapi \
$(top_builddir)/vapi/mpfr.vapi
gcalccmd_CPPFLAGS = \
$(AM_CPPFLAGS) \
$(GCALCCMD_CFLAGS)
gcalccmd_LDADD = \
$(GCALCCMD_LIBS) \
$(top_builddir)/lib/libcalculator.la
EXTRA_DIST = \
buttons-basic.ui \
buttons-advanced.ui \
buttons-financial.ui \
buttons-programming.ui \
history-entry.ui \
history-view.ui \
math-converter.ui \
math-function-popover.ui \
math-variable-popover.ui \
math-window.ui \
math-shortcuts.ui \
menu.ui \
calculator.css \
gnome-calculator.gresource.xml
-include $(top_srcdir)/git.mk