medit/moo/Makefile.am

101 lines
2.0 KiB
Makefile
Raw Normal View History

2005-06-22 11:20:32 -07:00
#
# moo/Makefile.am
#
DIST_SUBDIRS = \
mooapp \
mooutils \
mooedit \
mooterm \
mooui
subdirs =
noinst_LTLIBRARIES = libmoo.la
libmoo_la_LIBADD =
2005-06-23 13:18:45 -07:00
libmoo_la_SOURCES = dummy.c
2005-07-22 02:50:25 -07:00
moo_pygtk_flags =
2005-06-22 11:20:32 -07:00
if BUILD_MOOUTILS
subdirs += mooutils
libmoo_la_LIBADD += mooutils/libmooutils.la
2005-07-22 02:50:25 -07:00
moo_pygtk_flags += -DBUILD_MOOUTILS
2005-06-22 11:20:32 -07:00
endif
if BUILD_MOOUI
subdirs += mooui
2005-07-22 02:50:25 -07:00
moo_pygtk_flags += -DBUILD_MOOUI
2005-06-22 11:20:32 -07:00
libmoo_la_LIBADD += mooui/libmooui.la
endif
if BUILD_MOOEDIT
subdirs += mooedit
2005-07-22 02:50:25 -07:00
moo_pygtk_flags += -DBUILD_MOOEDIT
2005-06-22 11:20:32 -07:00
libmoo_la_LIBADD += mooedit/libmooedit.la
endif
if BUILD_MOOTERM
subdirs += mooterm
2005-07-22 02:50:25 -07:00
moo_pygtk_flags += -DBUILD_MOOTERM
2005-06-22 11:20:32 -07:00
if !CYGWIN_BUILD
libmoo_la_LIBADD += mooterm/libmooterm.la
endif !CYGWIN_BUILD
endif
if BUILD_MOOAPP
subdirs += mooapp
2005-07-22 02:50:25 -07:00
moo_pygtk_flags += -DBUILD_MOOAPP
2005-06-22 11:20:32 -07:00
if !CYGWIN_BUILD
libmoo_la_LIBADD += mooapp/libmooapp.la
endif !CYGWIN_BUILD
endif
SUBDIRS = $(subdirs) .
DEFAULT_INCLUDES =
AM_CFLAGS = \
-I$(top_builddir) \
$(MOO_CFLAGS) \
$(PYTHON_INCLUDES) \
$(PYGTK_CFLAGS) \
$(M_CFLAGS) \
$(CFLAGS) \
-DMOO_VERSION=\"$(MOO_VERSION)\" \
-DMOO_VERSION_MAJOR=$(MOO_VERSION_MAJOR)\
-DMOO_VERSION_MINOR=$(MOO_VERSION_MINOR)\
2005-07-22 02:50:25 -07:00
-DMOO_VERSION_MICRO=$(MOO_VERSION_MICRO)\
$(moo_pygtk_flags)
2005-06-22 11:20:32 -07:00
EXTRA_DIST = moo-pygtk.c
if USE_PYGTK
if !CYGWIN_BUILD
libmoo_la_SOURCES += moo-pygtk.c
endif !CYGWIN_BUILD
endif USE_PYGTK
##############################################################################
# moo module
#
if BUILD_PYMOO
pyexec_LTLIBRARIES = moo.la
2005-07-22 02:50:25 -07:00
moo_la_SOURCES = moo-pygtk.c
2005-06-22 11:20:32 -07:00
if MINGW_BUILD
mingw_flags = -no-undefined
endif MINGW_BUILD
moo_la_LDFLAGS = -module -avoid-version -export-symbols-regex initmoo $(mingw_flags)
moo_la_LIBADD = \
$(libmoo_la_LIBADD) \
$(GTK_LIBS) \
$(XML_LIBS) \
$(PYTHON_LDFLAGS) \
$(PYTHON_EXTRA_LIBS)
endif BUILD_PYMOO