medit/moo/Makefile.am

94 lines
1.8 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-06-22 11:20:32 -07:00
if BUILD_MOOUTILS
subdirs += mooutils
libmoo_la_LIBADD += mooutils/libmooutils.la
endif
if BUILD_MOOUI
subdirs += mooui
libmoo_la_LIBADD += mooui/libmooui.la
endif
if BUILD_MOOEDIT
subdirs += mooedit
libmoo_la_LIBADD += mooedit/libmooedit.la
endif
if BUILD_MOOTERM
subdirs += mooterm
if !CYGWIN_BUILD
libmoo_la_LIBADD += mooterm/libmooterm.la
endif !CYGWIN_BUILD
endif
if BUILD_MOOAPP
subdirs += mooapp
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)\
-DMOO_VERSION_MICRO=$(MOO_VERSION_MICRO)
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-06-23 13:18:45 -07:00
moo_la_SOURCES = dummy.c 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