1998-08-09 10:32:18 +02:00
|
|
|
## Process this file with automake to produce Makefile.in
|
initialize automake variables EXTRA_DIST and TEST_PROGS for unconditional
2007-11-21 21:06:47 Tim Janik <timj@imendio.com>
* Makefile.decl: initialize automake variables EXTRA_DIST and
TEST_PROGS for unconditional appending via += in other makefiles.
define recursive test targets: test, test-report, perf-report,
full-report, as described here:
http://mail.gnome.org/archives/gtk-devel-list/2007-November/msg00000.html
* Makefile.am:
* build/win32/vs8/Makefile.am, build/win32/dirent/Makefile.am:
* build/win32/Makefile.am, build/Makefile.am:
* docs/Makefile.am, docs/reference/Makefile.am:
* docs/reference/glib/Makefile.am, docs/reference/gobject/Makefile.am:
* gmodule/Makefile.am, tests/Makefile.am:
* tests/refcount/Makefile.am, tests/gobject/Makefile.am:
* glib/update-pcre/Makefile.am, glib/libcharset/Makefile.am:
* glib/tests/Makefile.am, glib/pcre/Makefile.am:
* glib/gnulib/Makefile.am, gobject/Makefile.am, m4macros/Makefile.am:
* gthread/Makefile.am, glib/Makefile.am:
include $(top_srcdir)/Makefile.decl, adapted EXTRA_DIST assignments.
* glib/tests/Makefile.am: removed example testing rules.
* glib/tests/testing.c: conditionalized performance and slow tests.
* glib/gtestutils.h:
* glib/gtestutils.c: work around g_test_config_vars not changing its
exported value after value assignments, aparently due to symbol aliases.
* glib/gtester.c: fixed off-by-one error which produced junk in logs.
* configure.in: check for python >= 2.4 and provide $PYTHON for scripts.
svn path=/trunk/; revision=5914
2007-11-21 21:09:46 +01:00
|
|
|
include $(top_srcdir)/Makefile.decl
|
1998-08-09 10:32:18 +02:00
|
|
|
|
2007-11-25 05:22:45 +01:00
|
|
|
AM_CPPFLAGS = \
|
|
|
|
-I$(top_srcdir) \
|
|
|
|
-I$(top_srcdir)/glib \
|
|
|
|
-I$(top_srcdir)/gmodule \
|
|
|
|
-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
|
|
|
|
2007-11-25 05:22:45 +01:00
|
|
|
EXTRA_DIST += \
|
|
|
|
makefile.msc.in \
|
|
|
|
gmoduleconf.h.in \
|
|
|
|
gmodule.def \
|
|
|
|
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
|
|
|
|
2000-10-16 03:02:19 +02:00
|
|
|
BUILT_EXTRA_DIST = \
|
|
|
|
makefile.msc \
|
|
|
|
gmodule.rc
|
|
|
|
|
1998-08-09 10:32:18 +02:00
|
|
|
BUILT_SOURCES = gmoduleconf.h
|
|
|
|
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
|
2002-03-05 06:18:23 +01: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
|
2003-08-13 02:24:21 +02:00
|
|
|
export_symbols = -export-symbols $(srcdir)/gmodule.def
|
2008-03-16 11:16:57 +01:00
|
|
|
gmodule_def = gmodule.def
|
2001-10-23 00:14:26 +02:00
|
|
|
|
2008-04-21 10:38:36 +02:00
|
|
|
gmodule_win32_res = gmodule-win32-res.o
|
|
|
|
gmodule_win32_res_ldflag = -Wl,$(gmodule_win32_res)
|
|
|
|
|
2005-06-26 20:07:13 +02:00
|
|
|
install-def-file:
|
2003-08-13 02:24:21 +02:00
|
|
|
$(INSTALL) $(srcdir)/gmodule.def $(DESTDIR)$(libdir)/gmodule-2.0.def
|
2003-01-04 07:47:14 +01:00
|
|
|
|
2005-06-26 20:07:13 +02:00
|
|
|
uninstall-def-file:
|
|
|
|
-rm $(DESTDIR)$(libdir)/gmodule-2.0.def
|
2001-10-23 00:14:26 +02:00
|
|
|
else
|
2005-06-26 20:07:13 +02:00
|
|
|
install-def-file:
|
|
|
|
uninstall-def-file:
|
2001-03-09 22:33:23 +01:00
|
|
|
endif
|
|
|
|
|
2002-03-05 06:18:23 +01:00
|
|
|
libgmodule_2_0_la_SOURCES = gmodule.c
|
|
|
|
libgmodule_2_0_la_LDFLAGS = \
|
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) \
|
2001-03-09 22:33:23 +01:00
|
|
|
-export-dynamic $(no_undefined) $(export_symbols)
|
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
|
|
|
|
$(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
|
2007-01-19 13:15:52 +01:00
|
|
|
lib -name:libgmodule-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:$(srcdir)/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
|
|
|
|
2005-06-26 20:07:13 +02:00
|
|
|
install-data-local: install-ms-lib install-def-file
|
2001-10-23 00:14:26 +02:00
|
|
|
|
2005-06-26 20:07:13 +02:00
|
|
|
uninstall-local: uninstall-ms-lib uninstall-def-file
|