140 lines
4.0 KiB
Makefile
140 lines
4.0 KiB
Makefile
#
|
|
# mooutils/Makefile.am
|
|
#
|
|
|
|
DIST_SUBDIRS = newgtk glade pcre unrtf pixmaps
|
|
|
|
DEFAULT_INCLUDES =
|
|
AM_CFLAGS = \
|
|
-I$(top_builddir) \
|
|
-I$(top_builddir)/$(MOO_SRC_PREFIX) \
|
|
$(MOO_CFLAGS) \
|
|
$(M_CFLAGS) \
|
|
$(CFLAGS) \
|
|
$(GTK_CFLAGS) \
|
|
$(PYTHON_INCLUDES) \
|
|
$(PYGTK_CFLAGS) \
|
|
-DG_LOG_DOMAIN=\"Moo\"
|
|
|
|
# if USE_UNRTF
|
|
# unrtf = unrtf
|
|
# unrtf_lib = unrtf/libunrtf.la
|
|
# unrtf_src = moortf.h moortf.c
|
|
# endif USE_UNRTF
|
|
|
|
SUBDIRS = pixmaps glade newgtk pcre $(unrtf) .
|
|
|
|
noinst_LTLIBRARIES = libmooutils.la
|
|
|
|
libmooutils_la_LIBADD = \
|
|
pcre/libpcre.la \
|
|
$(unrtf_lib) \
|
|
newgtk/libnewgtk.la
|
|
|
|
libmooutils_la_SOURCES = \
|
|
$(pcre_src) \
|
|
$(unrtf_src) \
|
|
bind.c \
|
|
bind.h \
|
|
eggregex.c \
|
|
eggregex.h \
|
|
mooaccelbutton.c \
|
|
mooaccelbutton.h \
|
|
mooclosure.c \
|
|
mooclosure.h \
|
|
moocompat.c \
|
|
moocompat.h \
|
|
moodialogs.c \
|
|
moodialogs.h \
|
|
moofileutils.c \
|
|
moofileutils.h \
|
|
moolog.c \
|
|
moolog.h \
|
|
moomarkup.c \
|
|
moomarkup.h \
|
|
mooobjectfactory.c \
|
|
mooobjectfactory.h \
|
|
mooparam.c \
|
|
mooparam.h \
|
|
mooprefs.c \
|
|
mooprefs.h \
|
|
mooprefsdialog.c \
|
|
mooprefsdialog.h \
|
|
mooprefsdialogpage.c \
|
|
mooprefsdialog-settings.c \
|
|
mooprefsdialog-settings.h \
|
|
moostock.c \
|
|
moostock.h \
|
|
mootypes.c \
|
|
mootypes.h \
|
|
moowin.c \
|
|
moowin.h \
|
|
shortcutdialog-glade.c \
|
|
stock-about-16.h \
|
|
stock-about-24.h \
|
|
stock-app.h \
|
|
stock-edit-16.h \
|
|
stock-edit-24.h \
|
|
stock-terminal-24.h
|
|
|
|
nodist_libmooutils_la_SOURCES = \
|
|
moomarshals.c \
|
|
moomarshals.h
|
|
CLEANFILES = $(nodist_libmooutils_la_SOURCES)
|
|
|
|
EXTRA_DIST = \
|
|
$(unrtf_src) \
|
|
moomarshals.list \
|
|
xml2h.sh
|
|
|
|
BUILT_SOURCES = \
|
|
moomarshals.h \
|
|
moomarshals.c \
|
|
shortcutdialog-glade.c \
|
|
stock-app.h
|
|
|
|
moomarshals.c: moomarshals.list
|
|
glib-genmarshal --prefix=_moo_marshal --body \
|
|
$(srcdir)/moomarshals.list > moomarshals.c
|
|
moomarshals.h: moomarshals.list
|
|
glib-genmarshal --prefix=_moo_marshal --header \
|
|
$(srcdir)/moomarshals.list > moomarshals.h
|
|
|
|
GLADE = $(srcdir)/glade
|
|
shortcutdialog-glade.c: $(GLADE)/shortcutdialog.c $(GLADE)/shortcutdialog.sed $(SUPPORT)
|
|
cat $(GLADE)/shortcutdialog.c | sh $(GLADE)/support.sh | \
|
|
sed -f $(GLADE)/shortcutdialog.sed > shortcutdialog-glade.c
|
|
|
|
PIXMAPS = \
|
|
$(srcdir)/pixmaps/gap.png \
|
|
$(srcdir)/pixmaps/ggap.png
|
|
|
|
stock-app.h: $(PIXMAPS)
|
|
gdk-pixbuf-csource --static --build-list \
|
|
GAP_ICON $(srcdir)/pixmaps/gap.png \
|
|
GGAP_ICON $(srcdir)/pixmaps/ggap.png \
|
|
> $(srcdir)/stock-app.h
|
|
|
|
|
|
##############################################################################
|
|
# Pygtk stuff
|
|
#
|
|
|
|
EXTRA_DIST += mooutils-mod.c mooutils-pygtk.defs mooutils-pygtk.override
|
|
|
|
if USE_PYGTK
|
|
|
|
libmooutils_la_SOURCES += mooutils-mod.c
|
|
nodist_libmooutils_la_SOURCES += mooutils-pygtk.c
|
|
BUILT_SOURCES += mooutils-pygtk.c
|
|
CLEANFILES += mooutils-pygtk.c
|
|
|
|
mooutils-pygtk.c: $(srcdir)/mooutils-pygtk.defs $(srcdir)/mooutils-pygtk.override
|
|
pygtk-codegen-2.0 --prefix moo_utils \
|
|
--register $(PYGTK_DEFS_DIR)/gtk-types.defs \
|
|
--register $(PYGTK_DEFS_DIR)/gdk-types.defs \
|
|
--override $(srcdir)/mooutils-pygtk.override \
|
|
$(srcdir)/mooutils-pygtk.defs > mooutils-pygtk.c
|
|
|
|
endif
|