1998-08-09 10:32:18 +02:00
|
|
|
## Process this file with automake to produce Makefile.in
|
Rework the build system for a new tests approach
Perform a substantial cleanup of the build system with respect to
building and installing testcases.
First, Makefile.decl has been renamed glib.mk and substantially
expanded. We intend to add more stuff here in the future, like canned
rules for mkenums, marshallers, resources, etc.
By default, tests are no longer compiled as part of 'make'. They will
be built when 'make check' is run. The old behaviour can be obtained
with --enable-always-build-tests.
--disable-modular-tests is gone (because tests are no longer built by
default). There is no longer any way to cause 'make check' to be a
no-op, but that's not very useful anyway.
A new glibtests.m4 file is introduced. Along with glib.mk, this
provides for consistent handling of --enable-installed-tests and
--enable-always-build-tests (mentioned above).
Port our various test-installing Makefiles to the new framework.
This patch substantially improves the situation in the toplevel tests/
directory. Things are now somewhat under control there. There were
some tests being built that weren't even being run and we run those now.
The long-running GObject performance tests in this directory have been
removed from 'make check' because they take too long.
As an experiment, 'make check' now runs the testcases on win32 builds,
by default. We can't run them under gtester (since it uses a pipe to
communicate with the subprocess) so just toss them in TESTS. Most of
them are passing on win32.
Things are not quite done here, but this patch is already a substantial
improvement. More to come.
2013-05-30 06:07:32 +02:00
|
|
|
include $(top_srcdir)/glib.mk
|
1998-08-09 10:32:18 +02:00
|
|
|
|
2007-11-25 05:22:45 +01:00
|
|
|
AM_CPPFLAGS = \
|
2010-08-06 19:09:26 +02:00
|
|
|
$(glib_INCLUDES) \
|
2007-11-25 05:22:45 +01:00
|
|
|
-DG_LOG_DOMAIN=\"GModule\" \
|
|
|
|
@GLIB_DEBUG_FLAGS@ \
|
2008-05-28 18:17:13 +02:00
|
|
|
-DG_DISABLE_DEPRECATED
|
1998-08-09 10:32:18 +02:00
|
|
|
|
2013-02-26 17:19:51 +01:00
|
|
|
AM_CFLAGS = $(GLIB_WARN_CFLAGS)
|
|
|
|
|
2007-11-25 05:22:45 +01:00
|
|
|
EXTRA_DIST += \
|
|
|
|
makefile.msc.in \
|
|
|
|
gmoduleconf.h.in \
|
|
|
|
gmodule-dl.c \
|
|
|
|
gmodule-dld.c \
|
|
|
|
gmodule-dyld.c \
|
|
|
|
gmodule-os2.c \
|
|
|
|
gmodule-win32.c \
|
|
|
|
gmodule-beos.c \
|
|
|
|
gmodule-ar.c \
|
|
|
|
gmoduleconf.h.win32 \
|
2000-03-24 13:56:56 +01:00
|
|
|
gmodule.rc.in
|
1998-08-09 10:32:18 +02:00
|
|
|
|
Rework the build system for a new tests approach
Perform a substantial cleanup of the build system with respect to
building and installing testcases.
First, Makefile.decl has been renamed glib.mk and substantially
expanded. We intend to add more stuff here in the future, like canned
rules for mkenums, marshallers, resources, etc.
By default, tests are no longer compiled as part of 'make'. They will
be built when 'make check' is run. The old behaviour can be obtained
with --enable-always-build-tests.
--disable-modular-tests is gone (because tests are no longer built by
default). There is no longer any way to cause 'make check' to be a
no-op, but that's not very useful anyway.
A new glibtests.m4 file is introduced. Along with glib.mk, this
provides for consistent handling of --enable-installed-tests and
--enable-always-build-tests (mentioned above).
Port our various test-installing Makefiles to the new framework.
This patch substantially improves the situation in the toplevel tests/
directory. Things are now somewhat under control there. There were
some tests being built that weren't even being run and we run those now.
The long-running GObject performance tests in this directory have been
removed from 'make check' because they take too long.
As an experiment, 'make check' now runs the testcases on win32 builds,
by default. We can't run them under gtester (since it uses a pipe to
communicate with the subprocess) so just toss them in TESTS. Most of
them are passing on win32.
Things are not quite done here, but this patch is already a substantial
improvement. More to come.
2013-05-30 06:07:32 +02:00
|
|
|
BUILT_EXTRA_DIST += \
|
2000-10-16 03:02:19 +02:00
|
|
|
makefile.msc \
|
|
|
|
gmodule.rc
|
|
|
|
|
Rework the build system for a new tests approach
Perform a substantial cleanup of the build system with respect to
building and installing testcases.
First, Makefile.decl has been renamed glib.mk and substantially
expanded. We intend to add more stuff here in the future, like canned
rules for mkenums, marshallers, resources, etc.
By default, tests are no longer compiled as part of 'make'. They will
be built when 'make check' is run. The old behaviour can be obtained
with --enable-always-build-tests.
--disable-modular-tests is gone (because tests are no longer built by
default). There is no longer any way to cause 'make check' to be a
no-op, but that's not very useful anyway.
A new glibtests.m4 file is introduced. Along with glib.mk, this
provides for consistent handling of --enable-installed-tests and
--enable-always-build-tests (mentioned above).
Port our various test-installing Makefiles to the new framework.
This patch substantially improves the situation in the toplevel tests/
directory. Things are now somewhat under control there. There were
some tests being built that weren't even being run and we run those now.
The long-running GObject performance tests in this directory have been
removed from 'make check' because they take too long.
As an experiment, 'make check' now runs the testcases on win32 builds,
by default. We can't run them under gtester (since it uses a pipe to
communicate with the subprocess) so just toss them in TESTS. Most of
them are passing on win32.
Things are not quite done here, but this patch is already a substantial
improvement. More to come.
2013-05-30 06:07:32 +02:00
|
|
|
BUILT_SOURCES += gmoduleconf.h
|
1998-08-09 10:32:18 +02:00
|
|
|
gmoduleconf.h: gmoduleconf.h.in
|
|
|
|
|
2000-07-14 21:22:54 +02:00
|
|
|
glibincludedir=$(includedir)/glib-2.0
|
|
|
|
glibinclude_HEADERS = \
|
1998-08-09 10:32:18 +02:00
|
|
|
gmodule.h
|
|
|
|
|
2002-03-05 06:18:23 +01:00
|
|
|
libglib = $(top_builddir)/glib/libglib-2.0.la
|
1998-08-10 02:26:44 +02:00
|
|
|
|
1999-05-08 09:40:44 +02:00
|
|
|
top_builddir_full=`cd \$(top_builddir); pwd`
|
|
|
|
|
2002-03-05 06:18:23 +01:00
|
|
|
lib_LTLIBRARIES = libgmodule-2.0.la
|
1998-08-09 10:32:18 +02:00
|
|
|
|
2008-04-21 10:38:36 +02:00
|
|
|
if OS_WIN32_AND_DLL_COMPILATION
|
More Win32 automake macros. For .def files: GLIB_DEF, GMODULE_DEF,
2001-09-25 Tor Lillqvist <tml@iki.fi>
* configure.in: More Win32 automake macros. For .def files:
GLIB_DEF, GMODULE_DEF, GOBJECT_DEF and GTHREAD_DEF. For .exp
files: TESTGMODULE_EXP (for programs that need to export symbols,
just testgmodule here). A new conditional, MS_LIB_AVAILABLE to
test whether the Microsoft librarian ("ar") is available to build
MS import libraries.
* glib/Makefile.am
* gmodule/Makefile.am: Use above. New rule to build MS import
library.
* glib/makefile.msc.in
* tests/makefile.msc.in
* tests/makefile.mingw.in: Use same DLL and import library names as
libtool.
gmodule:
2001-09-25 Tor Lillqvist <tml@iki.fi>
* makefile.mingw.in: Fix missing end @ in @LT_CURRENT@.
* makefile.msc.in: Use same DLL and import library names as
libtool.
gobject:
2001-09-25 Tor Lillqvist <tml@iki.fi>
* Makefile.am: Use new macros for .def file, and check for
MS_LIB_AVAILABLE, new rule to build MS import library.
* makefile.msc.in: Use same DLL and import library names as
libtool.
gthread:
2001-09-25 Tor Lillqvist <tml@iki.fi>
* Makefile.am: Use new macros for .def file, and check for
MS_LIB_AVAILABLE, new rule to build MS import library.
* makefile.msc.in: Use same DLL and import library names as
libtool.
2001-09-25 08:03:23 +02:00
|
|
|
if MS_LIB_AVAILABLE
|
Rework the build system for a new tests approach
Perform a substantial cleanup of the build system with respect to
building and installing testcases.
First, Makefile.decl has been renamed glib.mk and substantially
expanded. We intend to add more stuff here in the future, like canned
rules for mkenums, marshallers, resources, etc.
By default, tests are no longer compiled as part of 'make'. They will
be built when 'make check' is run. The old behaviour can be obtained
with --enable-always-build-tests.
--disable-modular-tests is gone (because tests are no longer built by
default). There is no longer any way to cause 'make check' to be a
no-op, but that's not very useful anyway.
A new glibtests.m4 file is introduced. Along with glib.mk, this
provides for consistent handling of --enable-installed-tests and
--enable-always-build-tests (mentioned above).
Port our various test-installing Makefiles to the new framework.
This patch substantially improves the situation in the toplevel tests/
directory. Things are now somewhat under control there. There were
some tests being built that weren't even being run and we run those now.
The long-running GObject performance tests in this directory have been
removed from 'make check' because they take too long.
As an experiment, 'make check' now runs the testcases on win32 builds,
by default. We can't run them under gtester (since it uses a pipe to
communicate with the subprocess) so just toss them in TESTS. Most of
them are passing on win32.
Things are not quite done here, but this patch is already a substantial
improvement. More to come.
2013-05-30 06:07:32 +02:00
|
|
|
noinst_DATA += gmodule-2.0.lib
|
2001-10-23 00:14:26 +02:00
|
|
|
|
2008-04-21 10:38:36 +02:00
|
|
|
install_ms_lib_cmd = $(INSTALL) gmodule-2.0.lib $(DESTDIR)$(libdir)
|
|
|
|
uninstall_ms_lib_cmd = -rm $(DESTDIR)$(libdir)/gmodule-2.0.lib
|
|
|
|
endif
|
|
|
|
endif
|
2001-10-23 00:14:26 +02:00
|
|
|
|
|
|
|
install-ms-lib:
|
2008-04-21 10:38:36 +02:00
|
|
|
$(install_ms_lib_cmd)
|
|
|
|
|
2001-10-23 00:14:26 +02:00
|
|
|
uninstall-ms-lib:
|
2008-04-21 10:38:36 +02:00
|
|
|
$(uninstall_ms_lib_cmd)
|
More Win32 automake macros. For .def files: GLIB_DEF, GMODULE_DEF,
2001-09-25 Tor Lillqvist <tml@iki.fi>
* configure.in: More Win32 automake macros. For .def files:
GLIB_DEF, GMODULE_DEF, GOBJECT_DEF and GTHREAD_DEF. For .exp
files: TESTGMODULE_EXP (for programs that need to export symbols,
just testgmodule here). A new conditional, MS_LIB_AVAILABLE to
test whether the Microsoft librarian ("ar") is available to build
MS import libraries.
* glib/Makefile.am
* gmodule/Makefile.am: Use above. New rule to build MS import
library.
* glib/makefile.msc.in
* tests/makefile.msc.in
* tests/makefile.mingw.in: Use same DLL and import library names as
libtool.
gmodule:
2001-09-25 Tor Lillqvist <tml@iki.fi>
* makefile.mingw.in: Fix missing end @ in @LT_CURRENT@.
* makefile.msc.in: Use same DLL and import library names as
libtool.
gobject:
2001-09-25 Tor Lillqvist <tml@iki.fi>
* Makefile.am: Use new macros for .def file, and check for
MS_LIB_AVAILABLE, new rule to build MS import library.
* makefile.msc.in: Use same DLL and import library names as
libtool.
gthread:
2001-09-25 Tor Lillqvist <tml@iki.fi>
* Makefile.am: Use new macros for .def file, and check for
MS_LIB_AVAILABLE, new rule to build MS import library.
* makefile.msc.in: Use same DLL and import library names as
libtool.
2001-09-25 08:03:23 +02:00
|
|
|
|
2001-03-09 22:33:23 +01:00
|
|
|
if PLATFORM_WIN32
|
|
|
|
no_undefined = -no-undefined
|
|
|
|
endif
|
2001-10-23 00:14:26 +02:00
|
|
|
|
2008-04-21 10:38:36 +02:00
|
|
|
if OS_WIN32_AND_DLL_COMPILATION
|
|
|
|
gmodule_win32_res = gmodule-win32-res.o
|
|
|
|
gmodule_win32_res_ldflag = -Wl,$(gmodule_win32_res)
|
2001-03-09 22:33:23 +01:00
|
|
|
endif
|
|
|
|
|
2013-01-15 05:24:53 +01:00
|
|
|
libgmodule_2_0_la_CFLAGS = $(AM_CFLAGS) $(GLIB_HIDDEN_VISIBILITY_CFLAGS)
|
2002-03-05 06:18:23 +01:00
|
|
|
libgmodule_2_0_la_SOURCES = gmodule.c
|
2010-06-21 19:55:28 +02:00
|
|
|
libgmodule_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
|
2005-07-09 01:04:06 +02:00
|
|
|
$(gmodule_win32_res_ldflag) \
|
2003-03-04 11:10:48 +01:00
|
|
|
$(G_MODULE_LDFLAGS) \
|
1998-09-15 21:08:11 +02:00
|
|
|
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
|
2013-01-14 05:12:23 +01:00
|
|
|
-export-dynamic $(no_undefined)
|
1998-09-15 21:08:11 +02:00
|
|
|
|
2005-07-09 01:04:06 +02:00
|
|
|
libgmodule_2_0_la_LIBADD = $(G_MODULE_LIBS_EXTRA) $(G_MODULE_LIBS) $(libglib)
|
2001-09-17 02:41:39 +02:00
|
|
|
|
2008-03-16 11:16:57 +01:00
|
|
|
libgmodule_2_0_la_DEPENDENCIES = $(gmodule_win32_res) $(gmodule_def)
|
1998-08-09 10:32:18 +02:00
|
|
|
|
2005-07-09 01:04:06 +02:00
|
|
|
gmodule-win32-res.o: gmodule.rc
|
2010-06-16 04:01:02 +02:00
|
|
|
$(AM_V_GEN) $(WINDRES) gmodule.rc $@
|
2001-09-17 02:41:39 +02:00
|
|
|
|
2002-03-05 06:18:23 +01:00
|
|
|
gmodule-2.0.lib: libgmodule-2.0.la gmodule.def
|
2012-03-18 04:10:01 +01:00
|
|
|
lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgmodule-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:$(builddir)/gmodule.def -out:$@
|
2000-10-06 23:32:59 +02:00
|
|
|
|
1998-08-09 10:32:18 +02:00
|
|
|
.PHONY: files release
|
|
|
|
|
|
|
|
files:
|
|
|
|
@files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
|
|
|
|
echo $$p; \
|
|
|
|
done
|
|
|
|
|
|
|
|
release:
|
|
|
|
$(MAKE) dist distdir=$(PACKAGE)`date +"%y%m%d"`
|
2000-10-16 03:02:19 +02:00
|
|
|
|
|
|
|
dist-hook: $(BUILT_EXTRA_DIST)
|
|
|
|
@files='$(BUILT_EXTRA_DIST)'; \
|
|
|
|
for f in $$files; do \
|
|
|
|
if test -f $$f; then d=.; else d=$(srcdir); fi; \
|
|
|
|
cp $$d/$$f $(distdir) || exit 1; done
|
|
|
|
|
2001-10-23 00:14:26 +02:00
|
|
|
|
2013-01-13 21:41:03 +01:00
|
|
|
install-data-local: install-ms-lib
|
2001-10-23 00:14:26 +02:00
|
|
|
|
2013-01-13 21:41:03 +01:00
|
|
|
uninstall-local: uninstall-ms-lib
|
2009-06-22 21:33:41 +02:00
|
|
|
|
|
|
|
if HAVE_GLIB_RUNTIME_LIBDIR
|
|
|
|
install-data-hook:
|
|
|
|
mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
|
|
|
|
mv $(DESTDIR)$(libdir)/libgmodule-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
|
2009-09-30 05:06:45 +02:00
|
|
|
mv $(DESTDIR)$(libdir)/libgmodule-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
|
2009-06-22 21:33:41 +02:00
|
|
|
rm -f $(DESTDIR)$(libdir)/libgmodule-2.0.so
|
2009-09-30 05:06:45 +02:00
|
|
|
ln -s $(GLIB_RUNTIME_LIBDIR)/libgmodule-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgmodule-2.0.so
|
2009-06-22 21:33:41 +02:00
|
|
|
endif
|