medit/moo/mooapp/Makefile.am

86 lines
2.2 KiB
Makefile
Raw Normal View History

2005-06-22 11:20:32 -07:00
#
# mooapp/Makefile.am
#
SUBDIRS = glade
DEFAULT_INCLUDES =
AM_CFLAGS = \
-I$(top_builddir) \
-I$(top_builddir)/$(MOO_SRC_PREFIX) \
$(PYTHON_INCLUDES) \
$(PYGTK_CFLAGS) \
$(MOO_CFLAGS) \
2005-07-25 03:56:08 -07:00
$(DEBUG_CFLAGS) \
2005-06-22 11:20:32 -07:00
$(CFLAGS) \
-DG_LOG_DOMAIN=\"Moo\"
noinst_LTLIBRARIES = libmooapp.la
2005-07-25 08:50:20 -07:00
BUILT_SOURCES =
2005-06-22 11:20:32 -07:00
libmooapp_la_SOURCES = \
mooappdialogs.c \
mooapp-prefs.c \
2005-06-22 11:20:32 -07:00
mooapp-private.h \
mooapp.c \
mooapp.h
if USE_PYTHON
libmooapp_la_SOURCES += \
mooapp-python.h \
2005-06-22 11:20:32 -07:00
mooappinput.c \
mooappinput.h \
moopythonconsole.c \
moopythonconsole.h \
moopython.c \
moopython.h \
pyutils.h
endif USE_PYTHON
EXTRA_DIST = \
gpl \
mooappinput.c \
mooappinput.h \
moopython.c \
moopython.h \
moopythonconsole.c \
moopythonconsole.h \
pyutils.h
##############################################################################
# Pygtk stuff
#
EXTRA_DIST += mooapp-mod.c mooapp-pygtk.defs mooapp-pygtk.override
if USE_PYGTK
libmooapp_la_SOURCES += mooapp-mod.c
nodist_libmooapp_la_SOURCES = mooapp-pygtk.c
2005-07-25 08:50:20 -07:00
BUILT_SOURCES += mooapp-pygtk.c
2005-06-22 11:20:32 -07:00
CLEANFILES = mooapp-pygtk.c
mooapp-pygtk.c: $(srcdir)/mooapp-pygtk.defs $(srcdir)/mooapp-pygtk.override
pygtk-codegen-2.0 --prefix moo_app \
--register $(PYGTK_DEFS_DIR)/gtk-types.defs \
--register $(PYGTK_DEFS_DIR)/gdk-types.defs \
--register $(srcdir)/../mooedit/mooedit-pygtk.defs \
--register $(srcdir)/../mooui/mooui-pygtk.defs \
--override $(srcdir)/mooapp-pygtk.override \
--outfilename mooapp-pygtk.c \
2005-06-22 11:20:32 -07:00
$(srcdir)/mooapp-pygtk.defs > mooapp-pygtk.c
endif
2005-07-25 08:50:20 -07:00
2005-07-25 08:57:10 -07:00
if !GTK_2_6
2005-07-25 08:50:20 -07:00
libmooapp_la_SOURCES += mooappabout-glade.c
BUILT_SOURCES += mooappabout-glade.c
GLADE = $(srcdir)/glade
SUPPORT = $(top_srcdir)/$(MOO_SRC_PREFIX)/mooutils/glade/support.sh
mooappabout-glade.c: $(GLADE)/mooappabout.c $(GLADE)/mooappabout.sed $(SUPPORT)
cat $(GLADE)/mooappabout.c | sh $(SUPPORT) | sed -f $(GLADE)/mooappabout.sed \
> mooappabout-glade.c
2005-07-25 09:05:30 -07:00
endif