105 lines
2.8 KiB
Makefile
105 lines
2.8 KiB
Makefile
EXTRA_DIST = mingw-configure cygwin-configure
|
|
|
|
DIST_SUBDIRS = tests m4
|
|
SUBDIRS = .
|
|
|
|
if !MOO_OS_CYGWIN
|
|
SUBDIRS += tests
|
|
endif
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
pkgconfig_DATA = moo.pc
|
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
|
|
|
|
|
DEFAULT_INCLUDES =
|
|
AM_CFLAGS = \
|
|
-I$(top_builddir) \
|
|
-I$(top_srcdir)/$(MOO_SRC_PREFIX) \
|
|
-I$(top_builddir)/$(MOO_SRC_PREFIX) \
|
|
$(MOO_CFLAGS) \
|
|
$(PYTHON_INCLUDES) \
|
|
$(PYGTK_CFLAGS) \
|
|
$(MOO_DEBUG_CFLAGS) \
|
|
$(CFLAGS)
|
|
|
|
if !MOO_OS_CYGWIN
|
|
noinst_LTLIBRARIES = libmoo-1.0.la
|
|
endif
|
|
|
|
###########################################################################
|
|
|
|
EXTRA_PROGRAMS =
|
|
moo_prefix = moo
|
|
XML2H = $(srcdir)/moo/mooutils/xml2h.sh
|
|
PY2H = $(srcdir)/moo/mooutils/py2h.sh
|
|
include moo/Makefile.incl
|
|
include moo/mooutils/Makefile.incl
|
|
include moo/mooedit/Makefile.incl
|
|
include moo/mooterm/Makefile.incl
|
|
include moo/mooapp/Makefile.incl
|
|
include moo/moopython/Makefile.incl
|
|
|
|
moo_libincludedir = $(libdir)/moo-1.0/include
|
|
moo_libinclude_HEADERS = $(moo_libinclude_headers)
|
|
moo_includedir = $(includedir)/moo-1.0
|
|
moo_include_HEADERS = $(moo_include_headers)
|
|
mooedit_includedir = $(moo_includedir)/mooedit
|
|
mooedit_include_HEADERS = $(mooedit_include_headers)
|
|
mooterm_includedir = $(moo_includedir)/mooterm
|
|
mooterm_include_HEADERS = $(mooterm_include_headers)
|
|
mooapp_includedir = $(moo_includedir)/mooapp
|
|
mooapp_include_HEADERS = $(mooapp_include_headers)
|
|
mooutils_includedir = $(moo_includedir)/mooutils
|
|
mooutils_include_HEADERS = $(mooutils_include_headers)
|
|
|
|
###########################################################################
|
|
|
|
CLEANFILES = $(moo_cleanfiles)
|
|
|
|
if !MOO_OS_CYGWIN
|
|
libmoo_1_0_la_LDFLAGS = -version-info $(LTVERSION) -export-symbols-regex "^[^_].*" -no-undefined
|
|
libmoo_1_0_la_SOURCES = $(moo_sources)
|
|
BUILT_SOURCES = $(moo_built_sources)
|
|
nodist_libmoo_1_0_la_SOURCES = $(moo_nodist_sources)
|
|
if MOO_OS_MINGW
|
|
libmoo_1_0_la_SOURCES += $(moo_win32_sources)
|
|
endif
|
|
if MOO_OS_UNIX
|
|
libmoo_1_0_la_SOURCES += $(moo_unix_sources)
|
|
endif
|
|
endif
|
|
|
|
EXTRA_DIST += \
|
|
$(moo_sources) \
|
|
$(moo_win32_sources) \
|
|
$(moo_unix_sources) \
|
|
$(moo_built_sources) \
|
|
$(moo_extra_dist)
|
|
|
|
|
|
##############################################################################
|
|
# moo module
|
|
#
|
|
if BUILD_PYMOO
|
|
|
|
pyexec_LTLIBRARIES = moo.la
|
|
|
|
moo_la_SOURCES = $(libmoo_1_0_la_SOURCES)
|
|
nodist_moo_la_SOURCES = $(nodist_libmoo_1_0_la_SOURCES)
|
|
|
|
if MOO_OS_MINGW
|
|
mingw_flags = -no-undefined
|
|
endif MOO_OS_MINGW
|
|
|
|
moo_la_LDFLAGS = -module -avoid-version -no-undefined -export-symbols-regex "initmoo"
|
|
|
|
moo_la_LIBADD = \
|
|
$(GTK_LIBS) \
|
|
$(XML_LIBS) \
|
|
$(PYTHON_LDFLAGS) \
|
|
$(PYTHON_EXTRA_LIBS)
|
|
|
|
endif BUILD_PYMOO
|