2011-11-07 13:46:58 -06:00
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
|
|
|
|
noinst_LTLIBRARIES = \
|
2016-02-04 03:20:42 -06:00
|
|
|
xed.la
|
2011-11-07 13:46:58 -06:00
|
|
|
|
2016-02-04 03:20:42 -06:00
|
|
|
nodist_xed_la_SOURCES = \
|
|
|
|
xed.c \
|
|
|
|
xedutils.c \
|
|
|
|
xedcommands.c
|
2011-11-07 13:46:58 -06:00
|
|
|
|
2016-02-04 03:20:42 -06:00
|
|
|
xed_la_LDFLAGS = \
|
2011-11-07 13:46:58 -06:00
|
|
|
-module -avoid-version
|
|
|
|
|
2016-02-04 03:20:42 -06:00
|
|
|
xed_la_LIBADD = \
|
2011-11-07 13:46:58 -06:00
|
|
|
$(PYTHON_LIB_LOC) \
|
|
|
|
$(PYTHON_LIBS) \
|
|
|
|
$(PYTHON_EXTRA_LIBS) \
|
|
|
|
$(PYGTK_LIBS)
|
|
|
|
|
2016-02-04 03:20:42 -06:00
|
|
|
xed_la_CFLAGS = \
|
2011-11-07 13:46:58 -06:00
|
|
|
-I$(top_srcdir) \
|
|
|
|
-I$(top_builddir) \
|
2016-02-04 03:20:42 -06:00
|
|
|
-I$(top_srcdir)/xed \
|
|
|
|
-I$(top_builddir)/xed \
|
2011-11-07 13:46:58 -06:00
|
|
|
-I$(top_srcdir)/plugin-loaders/python \
|
|
|
|
-I$(top_builddir)/plugin-loaders/python \
|
2016-02-04 03:20:42 -06:00
|
|
|
$(XED_CFLAGS) \
|
2011-11-07 13:46:58 -06:00
|
|
|
$(NO_STRICT_ALIASING_CFLAGS) \
|
|
|
|
$(PYGTK_CFLAGS) \
|
|
|
|
$(PYTHON_CFLAGS) \
|
|
|
|
$(AM_CFLAGS)
|
|
|
|
|
2016-02-04 03:20:42 -06:00
|
|
|
$(top_builddir)/xed/xed-enum-types.h:
|
|
|
|
cd $(top_builddir)/xed && $(MAKE) xed-enum-types.h
|
2011-11-07 13:46:58 -06:00
|
|
|
|
2016-02-04 03:20:42 -06:00
|
|
|
xed.c: xed.defs xed.override xedplugin.override xedmessage.override $(top_builddir)/xed/xed-enum-types.h
|
2011-11-07 13:46:58 -06:00
|
|
|
( cd $(srcdir) && $(PYGTK_CODEGEN) \
|
|
|
|
--register $(PYGTK_DEFSDIR)/pango-types.defs \
|
|
|
|
--register $(PYGTK_DEFSDIR)/gdk-types.defs \
|
|
|
|
--register $(PYGTK_DEFSDIR)/gtk-types.defs \
|
|
|
|
--register $(PYGTK_DEFSDIR)/gtksourceview2.defs \
|
|
|
|
--register $(PYGOBJECT_DEFSDIR)/gio-types.defs \
|
|
|
|
--override $*.override \
|
|
|
|
--prefix py$* $(<F) ) > $@
|
|
|
|
|
2016-02-04 03:20:42 -06:00
|
|
|
xedutils.c: xedutils.defs xedutils.override
|
2011-11-07 13:46:58 -06:00
|
|
|
( cd $(srcdir) && $(PYGTK_CODEGEN) \
|
|
|
|
--override $*.override \
|
|
|
|
--prefix py$* $(<F) ) > $@
|
|
|
|
|
2016-02-04 03:20:42 -06:00
|
|
|
xedcommands.c: xedcommands.defs xedcommands.override xed.defs
|
2011-11-07 13:46:58 -06:00
|
|
|
( cd $(srcdir) && $(PYGTK_CODEGEN) \
|
2016-02-04 03:20:42 -06:00
|
|
|
--register xed.defs \
|
2011-11-07 13:46:58 -06:00
|
|
|
--register $(PYGTK_DEFSDIR)/gtk-types.defs \
|
|
|
|
--override $*.override \
|
|
|
|
--prefix py$* $(<F) ) > $@
|
|
|
|
|
2016-02-04 03:20:42 -06:00
|
|
|
BINDING_XED_HEADERS_SRCDIR_IN = \
|
|
|
|
xed/xed-app.h \
|
|
|
|
xed/xed-document.h \
|
|
|
|
xed/xed-encodings.h \
|
|
|
|
xed/xed-plugin.h \
|
|
|
|
plugin-loaders/python/xed-plugin-python.h \
|
|
|
|
xed/xed-view.h \
|
|
|
|
xed/xed-statusbar.h \
|
|
|
|
xed/xed-tab.h \
|
|
|
|
xed/xed-panel.h \
|
|
|
|
xed/xed-window.h \
|
|
|
|
xed/xed-help.h \
|
|
|
|
xed/xed-debug.h \
|
|
|
|
xed/xed-message-type.h \
|
|
|
|
xed/xed-message.h \
|
|
|
|
xed/xed-message-bus.h \
|
|
|
|
xed/xed-language-manager.h
|
2011-11-07 13:46:58 -06:00
|
|
|
|
|
|
|
BINDING_UTILS_HEADERS_SRCDIR_IN = \
|
2016-02-04 03:20:42 -06:00
|
|
|
xed/xed-utils.h
|
2011-11-07 13:46:58 -06:00
|
|
|
|
|
|
|
BINDING_COMMANDS_HEADERS_SRCDIR_IN = \
|
2016-02-04 03:20:42 -06:00
|
|
|
xed/xed-commands.h
|
2011-11-07 13:46:58 -06:00
|
|
|
|
|
|
|
BINDING_HEADERS_BUILDDIR_IN =
|
|
|
|
|
2016-02-04 03:20:42 -06:00
|
|
|
BINDING_XED_HEADERS_SRCDIR := $(addprefix $(top_srcdir)/,$(BINDING_XED_HEADERS_SRCDIR_IN))
|
2011-11-07 13:46:58 -06:00
|
|
|
BINDING_UTILS_HEADERS_SRCDIR := $(addprefix $(top_srcdir)/,$(BINDING_UTILS_HEADERS_SRCDIR_IN))
|
|
|
|
BINDING_COMMANDS_HEADERS_SRCDIR := $(addprefix $(top_srcdir)/,$(BINDING_COMMANDS_HEADERS_SRCDIR_IN))
|
|
|
|
|
|
|
|
BINDING_HEADERS_BUILDDIR := $(addprefix $(top_builddir)/,$(BINDING_HEADERS_BUILDDIR_IN))
|
|
|
|
|
|
|
|
regenerate-python-binding:
|
2016-02-04 03:20:42 -06:00
|
|
|
$(PYGTK_H2DEF) $(sort $(BINDING_XED_HEADERS_SRCDIR) $(BINDING_HEADERS_BUILDDIR)) > xed.defs.new
|
|
|
|
$(PYGTK_H2DEF) $(sort $(BINDING_UTILS_HEADERS_SRCDIR) $(BINDING_HEADERS_BUILDDIR)) > xedutils.defs.new
|
|
|
|
$(PYGTK_H2DEF) $(sort $(BINDING_COMMANDS_HEADERS_SRCDIR) $(BINDING_HEADERS_BUILDDIR)) > xedcommands.defs.new
|
2011-11-07 13:46:58 -06:00
|
|
|
|
|
|
|
BUILT_SOURCES = \
|
2016-02-04 03:20:42 -06:00
|
|
|
xed.c \
|
|
|
|
xedutils.c \
|
|
|
|
xedcommands.c
|
2011-11-07 13:46:58 -06:00
|
|
|
|
|
|
|
EXTRA_DIST = \
|
2016-02-04 03:20:42 -06:00
|
|
|
xed.override \
|
|
|
|
xed.defs \
|
|
|
|
xedutils.override \
|
|
|
|
xedutils.defs \
|
|
|
|
xedcommands.override \
|
|
|
|
xedcommands.defs \
|
|
|
|
xedmessage.override \
|
|
|
|
xedplugin.override
|
2011-11-07 13:46:58 -06:00
|
|
|
|
|
|
|
CLEANFILES = $(BUILT_SOURCES)
|
|
|
|
|
|
|
|
dist-hook:
|
|
|
|
cd $(distdir); rm -f $(BUILT_SOURCES)
|
|
|
|
|
|
|
|
-include $(top_srcdir)/git.mk
|