common_defines = \
-DSHARE_DIR=\""$(pkgdatadir)"\" \
- -DDATA_DIR=\""$(datadir)"\"
+ -DDATA_DIR=\""$(datadir)"\" \
+ -DPKGLIB_DIR=\""$(pkglibdir)"\"
bin_PROGRAMS = homebank
homebank_SOURCES = \
- dsp_account.c \
- dsp_account.h \
- dsp_mainwindow.c \
- dsp_mainwindow.h \
+ dsp-account.c \
+ dsp-account.h \
+ dsp-mainwindow.c \
+ dsp-mainwindow.h \
enums.h \
gtk-chart.c \
gtk-chart.h \
+ gtk-chart-colors.c \
+ gtk-chart-colors.h \
+ gtk-chart-progress.c \
+ gtk-chart-progress.h \
gtk-dateentry.c \
gtk-dateentry.h \
hb-account.c \
hb-assign.h \
hb-category.c \
hb-category.h \
+ hb-currency.c \
+ hb-currency.h \
hb-encoding.c \
hb-encoding.h \
hb-export.c \
hb-hbfile.h \
hb-import.c \
hb-import.h \
+ hb-import-ofx.c \
+ hb-import-qif.c \
+ hb-import-csv.c \
hb-misc.c \
hb-misc.h \
hb-payee.c \
hb-report.h \
hb-tag.c \
hb-tag.h \
+ hb-split.c \
+ hb-split.h \
hb-transaction.c \
hb-transaction.h \
hb-xml.c \
hb-xml.h \
homebank.c \
homebank.h \
- imp_qif.c \
- imp_qif.h \
- import.c \
- import.h \
+ hub-account.c \
+ hub-account.h \
+ hub-scheduled.c \
+ hub-scheduled.h \
+ hub-spending.c \
+ hub-spending.h \
+ hub-transaction.c \
+ hub-transaction.h \
language.c \
language.h \
- list_account.c \
- list_account.h \
- list_operation.c \
- list_operation.h \
- list_topspending.c \
- list_topspending.h \
- list_upcoming.c \
- list_upcoming.h \
- rep_balance.c \
- rep_balance.h \
- rep_budget.c \
- rep_budget.h \
- rep_stats.c \
- rep_stats.h \
- rep_time.c \
- rep_time.h \
- rep_vehicle.c \
- rep_vehicle.h \
+ list-account.c \
+ list-account.h \
+ list-operation.c \
+ list-operation.h \
+ list-scheduled.c \
+ list-scheduled.h \
+ rep-balance.c \
+ rep-balance.h \
+ rep-budget.c \
+ rep-budget.h \
+ rep-stats.c \
+ rep-stats.h \
+ rep-time.c \
+ rep-time.h \
+ rep-vehicle.c \
+ rep-vehicle.h \
ui-account.c \
ui-account.h \
ui-archive.c \
ui-archive.h \
ui-assign.c \
ui-assign.h \
+ ui-assist-import.c \
+ ui-assist-import.h \
ui-assist-start.c \
ui-assist-start.h \
ui-budget.c \
ui-budget.h \
ui-category.c \
ui-category.h \
+ ui-currency.c \
+ ui-currency.h \
ui-dialogs.c \
ui-dialogs.h \
ui-filter.c \
ui-payee.h \
ui-pref.c \
ui-pref.h \
+ ui-split.c \
+ ui-split.h \
+ ui-tag.c \
+ ui-tag.h \
ui-transaction.c \
ui-transaction.h \
+ ui-txn-multi.c \
+ ui-txn-multi.h \
+ ui-widgets-data.c \
ui-widgets.c \
ui-widgets.h \
- gtk-chart-colors.c \
- gtk-chart-colors.h
+ refcount.h \
+ ext.c \
+ ext.h \
+ ext-value.c \
+ ext-value.h \
+ ext-native.c \
+ ext-perl.xs
+
+EXTRA_homebank_DEPENDENCIES = $(PERL_OBJS)
-homebank_LDADD = $(DEPS_LIBS)
+
+homebank_LDADD = $(DEPS_LIBS) \
+ $(LIBSOUP_LIBS) \
+ $(PERL_OBJS)
AM_CPPFLAGS = \
$(DEPS_CFLAGS) \
+ $(LIBSOUP_CFLAGS) \
$(common_defines)
+$(PERL_OBJS): CPPFLAGS += $(PERL_CPPFLAGS)
+
+ext-perl.c: ext-perl.xs typemap
+ $(XSUBPP) -typemap $(PERL_PRIVLIBEXP)/ExtUtils/typemap -typemap typemap $< >$@
+
+perlxsi.c: Makefile
+ $(PERL) -MExtUtils::Embed -e xsinit -- -std HomeBank
+
+CLEANFILES = ext-perl.c perlxsi.c
+
+pluginsupportdir = $(pkglibdir)
+pluginsupport_DATA = HomeBank.pm
+