2006-08-01 02:57:26 -07:00
|
|
|
moo_include_headers = \
|
|
|
|
moo.h \
|
|
|
|
moo-version.h
|
|
|
|
|
2006-08-06 23:25:35 -07:00
|
|
|
if MOO_INSTALL_HEADERS
|
|
|
|
moo_include_HEADERS = $(moo_include_headers)
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
|
|
pkgconfig_DATA = moo.pc
|
|
|
|
endif
|
2006-08-01 04:36:16 -07:00
|
|
|
|
2006-08-01 02:57:26 -07:00
|
|
|
EXTRA_DIST = \
|
|
|
|
TODO
|
|
|
|
|
|
|
|
subdirs =
|
|
|
|
libs =
|
|
|
|
if MOO_BUILD_UTILS
|
|
|
|
subdirs += mooutils
|
|
|
|
libs += mooutils/libmooutils.la
|
|
|
|
endif
|
|
|
|
if GTK_2_6
|
|
|
|
subdirs += moofileview
|
|
|
|
libs += moofileview/libmoofileview.la
|
|
|
|
endif
|
|
|
|
if MOO_BUILD_TERM
|
|
|
|
subdirs += mooterm
|
|
|
|
libs += mooterm/libmooterm.la
|
|
|
|
endif
|
|
|
|
if MOO_BUILD_EDIT
|
|
|
|
subdirs += mooscript mooedit
|
|
|
|
libs += mooscript/libmooscript.la mooedit/libmooedit.la
|
|
|
|
endif
|
|
|
|
if MOO_BUILD_APP
|
|
|
|
subdirs += mooapp
|
|
|
|
libs += mooapp/libmooapp.la
|
|
|
|
endif
|
|
|
|
if MOO_USE_PYGTK
|
|
|
|
subdirs += moopython
|
2006-08-04 02:17:32 -07:00
|
|
|
if !MOO_BUILD_PYTHON_MODULE
|
|
|
|
libs += moopython/libmoopython.la $(PYTHON_LIBS) $(PYTHON_EXTRA_LIBS)
|
|
|
|
endif
|
2006-08-01 02:57:26 -07:00
|
|
|
endif
|
|
|
|
|
|
|
|
SUBDIRS = $(subdirs) .
|
|
|
|
DIST_SUBDIRS = mooutils mooterm mooedit mooapp moopython mooscript moofileview
|
|
|
|
|
2006-08-04 04:57:15 -07:00
|
|
|
lib_LTLIBRARIES =
|
|
|
|
noinst_LTLIBRARIES =
|
|
|
|
|
2006-08-01 04:36:16 -07:00
|
|
|
if MOO_INSTALL_LIB
|
2006-08-04 04:57:15 -07:00
|
|
|
lib_LTLIBRARIES += libmoo.la
|
2006-08-01 04:36:16 -07:00
|
|
|
else
|
2006-08-04 04:57:15 -07:00
|
|
|
noinst_LTLIBRARIES += libmoo.la
|
2006-08-01 04:36:16 -07:00
|
|
|
endif
|
|
|
|
|
2006-08-04 02:17:32 -07:00
|
|
|
libmoo_la_LIBADD = $(libs) $(MOO_LIBS)
|
2006-08-20 12:38:20 -07:00
|
|
|
libmoo_la_LDFLAGS = $(PYTHON_EXTRA_LDFLAGS) -no-undefined -avoid-version -export-symbols-regex "^(moo_|ms_).*"
|
2006-08-13 02:00:15 -07:00
|
|
|
# libmoo_la_LDFLAGS = $(PYTHON_EXTRA_LDFLAGS) -no-undefined -avoid-version -export-symbols-regex "^(moo_|ms_).*"
|
|
|
|
# libmoo_la_LDFLAGS = $(PYTHON_EXTRA_LDFLAGS) -no-undefined -avoid-version -export-symbols-regex ".*"
|
2006-08-01 02:57:26 -07:00
|
|
|
libmoo_la_SOURCES = $(moo_include_headers)
|
2006-08-01 04:36:16 -07:00
|
|
|
|
2006-08-04 04:57:15 -07:00
|
|
|
moo_la_ldflags = -no-undefined -module -avoid-version -export-symbols-regex initmoo
|
|
|
|
pymoo_la_ldflags = -no-undefined -module -avoid-version -export-symbols-regex moo_module_init
|
|
|
|
|
|
|
|
if MOO_OS_UNIX
|
2006-08-01 04:36:16 -07:00
|
|
|
|
|
|
|
if MOO_INSTALL_LIB
|
2006-08-04 04:57:15 -07:00
|
|
|
|
2006-08-01 12:49:57 -07:00
|
|
|
if MOO_USE_PYGTK
|
2006-08-01 04:36:16 -07:00
|
|
|
pyexec_LTLIBRARIES = moo.la
|
2006-08-04 02:17:32 -07:00
|
|
|
moo_la_SOURCES = moo.h
|
2006-08-04 04:57:15 -07:00
|
|
|
moo_la_LDFLAGS = $(moo_la_ldflags)
|
|
|
|
moo_la_LIBADD = moopython/libmoomod.la libmoo.la $(MOO_LIBS) $(PYTHON_LIBS)
|
2006-08-04 02:17:32 -07:00
|
|
|
endif MOO_USE_PYGTK
|
|
|
|
|
|
|
|
if MOO_BUILD_PYTHON_MODULE
|
|
|
|
plugindir = $(MOO_LIB_DIR)/plugins
|
|
|
|
plugin_LTLIBRARIES = pymoo.la
|
|
|
|
plugin_DATA = moopython/pymoo.ini
|
|
|
|
pymoo_la_SOURCES = moo.h
|
2006-08-04 04:57:15 -07:00
|
|
|
pymoo_la_LDFLAGS = $(pymoo_la_ldflags) $(PYTHON_EXTRA_LDFLAGS)
|
|
|
|
pymoo_la_LIBADD = moopython/libpymoo.la libmoo.la $(MOO_LIBS) $(PYTHON_LIBS) $(PYTHON_EXTRA_LIBS)
|
2006-08-04 02:17:32 -07:00
|
|
|
endif MOO_BUILD_PYTHON_MODULE
|
2006-08-04 04:57:15 -07:00
|
|
|
|
2006-08-04 02:17:32 -07:00
|
|
|
endif MOO_INSTALL_LIB
|
2006-08-04 04:57:15 -07:00
|
|
|
|
|
|
|
else !MOO_OS_UNIX
|
|
|
|
if MOO_USE_PYGTK
|
|
|
|
|
|
|
|
lib_LTLIBRARIES += pymoo23.la moo23.la pymoo24.la moo24.la
|
|
|
|
plugindir = $(MOO_LIB_DIR)/plugins
|
|
|
|
plugin_DATA = moopython/pymoo23.ini moopython/pymoo24.ini
|
|
|
|
|
|
|
|
pymoo23_la_SOURCES = moo.h
|
|
|
|
pymoo23_la_LDFLAGS = $(pymoo_la_ldflags) $(PYTHON23_EXTRA_LDFLAGS)
|
|
|
|
pymoo23_la_LIBADD = moopython/libpymoo23.la libmoo.la $(MOO_LIBS) $(PYTHON23_LIBS) $(PYTHON23_EXTRA_LIBS)
|
|
|
|
moo23_la_SOURCES = moo.h
|
|
|
|
moo23_la_LDFLAGS = $(moo_la_ldflags)
|
|
|
|
moo23_la_LIBADD = moopython/libmoomod23.la libmoo.la $(MOO_LIBS) $(PYTHON23_LIBS)
|
|
|
|
|
|
|
|
pymoo24_la_SOURCES = moo.h
|
|
|
|
pymoo24_la_LDFLAGS = $(pymoo_la_ldflags) $(PYTHON24_EXTRA_LDFLAGS)
|
|
|
|
pymoo24_la_LIBADD = moopython/libpymoo23.la libmoo.la $(MOO_LIBS) $(PYTHON24_LIBS) $(PYTHON24_EXTRA_LIBS)
|
|
|
|
moo24_la_SOURCES = moo.h
|
|
|
|
moo24_la_LDFLAGS = $(moo_la_ldflags)
|
|
|
|
moo24_la_LIBADD = moopython/libmoomod24.la libmoo.la $(MOO_LIBS) $(PYTHON24_LIBS)
|
|
|
|
|
|
|
|
endif MOO_USE_PYGTK
|
|
|
|
endif !MOO_OS_UNIX
|
2006-08-22 21:14:21 -07:00
|
|
|
|
|
|
|
|
|
|
|
if MOO_ENABLE_TESTS
|
|
|
|
noinst_LTLIBRARIES += libmoo-test.la
|
|
|
|
endif
|
|
|
|
|
|
|
|
libmoo_test_la_LIBADD = $(libmoo_la_LIBADD)
|
|
|
|
libmoo_test_la_LDFLAGS = $(PYTHON_EXTRA_LDFLAGS) -no-undefined -avoid-version
|
|
|
|
libmoo_test_la_SOURCES = $(moo_include_headers)
|