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-11-19 01:27:04 -08:00
|
|
|
EXTRA_DIST = \
|
|
|
|
TODO \
|
|
|
|
libmoo.rc.in
|
2006-08-01 02:57:26 -07:00
|
|
|
|
|
|
|
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-11-19 01:27:04 -08:00
|
|
|
if MOO_OS_MINGW
|
|
|
|
CLEANFILES = libmoo.res
|
2006-11-19 22:56:24 -08:00
|
|
|
libmoo_res_ldflag = -Wl,libmoo.res
|
|
|
|
libmoo_la_DEPENDENCIES = libmoo.res
|
2006-11-19 01:27:04 -08:00
|
|
|
libmoo.res: libmoo.rc
|
|
|
|
$(WINDRES) -i libmoo.rc --input-format=rc -o libmoo.res -O coff
|
|
|
|
endif
|
|
|
|
|
2006-11-19 22:56:24 -08:00
|
|
|
libmoo_la_LIBADD = $(libs) $(MOO_LIBS)
|
|
|
|
# libmoo_la_LDFLAGS = $(PYTHON_EXTRA_LDFLAGS) $(libmoo_res_ldflag) -no-undefined -avoid-version -export-symbols-regex "^(moo_|ms_).*"
|
|
|
|
libmoo_la_LDFLAGS = $(PYTHON_EXTRA_LDFLAGS) $(libmoo_res_ldflag) -no-undefined -avoid-version -export-symbols-regex ".*"
|
|
|
|
libmoo_la_SOURCES = $(moo_include_headers)
|
|
|
|
|
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
|
|
|
|
|
2006-11-11 01:01:50 -08:00
|
|
|
lib_LTLIBRARIES += pymoo25.la moo25.la pymoo24.la moo24.la
|
2006-08-04 04:57:15 -07:00
|
|
|
plugindir = $(MOO_LIB_DIR)/plugins
|
2006-11-11 01:01:50 -08:00
|
|
|
plugin_DATA = moopython/pymoo25.ini moopython/pymoo24.ini
|
2006-08-04 04:57:15 -07:00
|
|
|
|
2006-11-11 01:01:50 -08:00
|
|
|
pymoo25_la_SOURCES = moo.h
|
|
|
|
pymoo25_la_LDFLAGS = $(pymoo_la_ldflags) $(PYTHON25_EXTRA_LDFLAGS)
|
|
|
|
pymoo25_la_LIBADD = moopython/libpymoo25.la libmoo.la $(MOO_LIBS) $(PYTHON25_LIBS) $(PYTHON25_EXTRA_LIBS)
|
|
|
|
moo25_la_SOURCES = moo.h
|
|
|
|
moo25_la_LDFLAGS = $(moo_la_ldflags)
|
|
|
|
moo25_la_LIBADD = moopython/libmoomod25.la libmoo.la $(MOO_LIBS) $(PYTHON25_LIBS)
|
2006-08-04 04:57:15 -07:00
|
|
|
|
|
|
|
pymoo24_la_SOURCES = moo.h
|
|
|
|
pymoo24_la_LDFLAGS = $(pymoo_la_ldflags) $(PYTHON24_EXTRA_LDFLAGS)
|
2006-11-11 01:01:50 -08:00
|
|
|
pymoo24_la_LIBADD = moopython/libpymoo24.la libmoo.la $(MOO_LIBS) $(PYTHON24_LIBS) $(PYTHON24_EXTRA_LIBS)
|
2006-08-04 04:57:15 -07:00
|
|
|
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)
|