1 ## Process this file with automake to produce Makefile.in
2 include $(top_srcdir)/glib.mk
6 -DG_LOG_DOMAIN=\"GModule\" \
10 AM_CFLAGS = $(GLIB_WARN_CFLAGS)
24 BUILT_SOURCES += gmoduleconf.h
25 gmoduleconf.h: gmoduleconf.h.in
27 glibincludedir=$(includedir)/glib-2.0
28 glibinclude_HEADERS = \
31 libglib = $(top_builddir)/glib/libglib-2.0.la
33 top_builddir_full=`cd \$(top_builddir); pwd`
35 lib_LTLIBRARIES = libgmodule-2.0.la
37 if OS_WIN32_AND_DLL_COMPILATION
39 noinst_DATA += gmodule-2.0.lib
41 install_ms_lib_cmd = $(INSTALL) gmodule-2.0.lib $(DESTDIR)$(libdir)
42 uninstall_ms_lib_cmd = -rm $(DESTDIR)$(libdir)/gmodule-2.0.lib
50 $(uninstall_ms_lib_cmd)
53 no_undefined = -no-undefined
56 if OS_WIN32_AND_DLL_COMPILATION
57 gmodule_win32_res = gmodule-win32-res.o
58 gmodule_win32_res_ldflag = -Wl,$(gmodule_win32_res)
61 libgmodule_2_0_la_CFLAGS = $(AM_CFLAGS) $(GLIB_HIDDEN_VISIBILITY_CFLAGS)
62 libgmodule_2_0_la_SOURCES = gmodule.c
63 libgmodule_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
64 $(gmodule_win32_res_ldflag) \
66 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
67 -export-dynamic $(no_undefined)
69 libgmodule_2_0_la_LIBADD = $(G_MODULE_LIBS_EXTRA) $(G_MODULE_LIBS) $(libglib)
71 libgmodule_2_0_la_DEPENDENCIES = $(gmodule_win32_res) $(gmodule_def)
73 gmodule-win32-res.o: gmodule.rc
74 $(AM_V_GEN) $(WINDRES) gmodule.rc $@
76 gmodule.def: libgmodule-2.0.la
77 $(AM_V_GEN) dumpbin.exe -exports .libs/libgmodule-2.0-0.dll | awk 'BEGIN { print "EXPORTS" } / +[[:digit:]]+ +[[:xdigit:]]+ +[[:xdigit:]]+/{ print $$4 }' > gmodule.def.tmp && mv gmodule.def.tmp gmodule.def
79 gmodule-2.0.lib: libgmodule-2.0.la gmodule.def
80 $(AM_V_GEN) lib.exe -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgmodule-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:$(builddir)/gmodule.def -out:$@
85 @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
90 $(MAKE) dist distdir=$(PACKAGE)`date +"%y%m%d"`
92 dist-hook: $(BUILT_EXTRA_DIST)
93 @files='$(BUILT_EXTRA_DIST)'; \
94 for f in $$files; do \
95 if test -f $$f; then d=.; else d=$(srcdir); fi; \
96 cp $$d/$$f $(distdir) || exit 1; done
99 install-data-local: install-ms-lib
101 uninstall-local: uninstall-ms-lib
103 if HAVE_GLIB_RUNTIME_LIBDIR
105 mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
106 mv $(DESTDIR)$(libdir)/libgmodule-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
107 mv $(DESTDIR)$(libdir)/libgmodule-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
108 rm -f $(DESTDIR)$(libdir)/libgmodule-2.0.so
109 ln -s $(GLIB_RUNTIME_LIBDIR)/libgmodule-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgmodule-2.0.so