1 ## Process this file with automake to produce Makefile.in
2 include $(top_srcdir)/Makefile.decl
7 -I$(top_srcdir)/gmodule \
8 -DG_LOG_DOMAIN=\"GModule\" \
10 -DG_DISABLE_DEPRECATED \
11 -DG_DISABLE_SINGLE_INCLUDES
31 BUILT_SOURCES = gmoduleconf.h
32 gmoduleconf.h: gmoduleconf.h.in
34 glibincludedir=$(includedir)/glib-2.0
35 glibinclude_HEADERS = \
38 libglib = $(top_builddir)/glib/libglib-2.0.la
40 top_builddir_full=`cd \$(top_builddir); pwd`
42 lib_LTLIBRARIES = libgmodule-2.0.la
44 if OS_WIN32_AND_DLL_COMPILATION
46 noinst_DATA = gmodule-2.0.lib
48 install_ms_lib_cmd = $(INSTALL) gmodule-2.0.lib $(DESTDIR)$(libdir)
49 uninstall_ms_lib_cmd = -rm $(DESTDIR)$(libdir)/gmodule-2.0.lib
57 $(uninstall_ms_lib_cmd)
60 no_undefined = -no-undefined
63 if OS_WIN32_AND_DLL_COMPILATION
64 export_symbols = -export-symbols $(srcdir)/gmodule.def
65 gmodule_def = gmodule.def
67 gmodule_win32_res = gmodule-win32-res.o
68 gmodule_win32_res_ldflag = -Wl,$(gmodule_win32_res)
71 $(INSTALL) $(srcdir)/gmodule.def $(DESTDIR)$(libdir)/gmodule-2.0.def
74 -rm $(DESTDIR)$(libdir)/gmodule-2.0.def
80 libgmodule_2_0_la_SOURCES = gmodule.c
81 libgmodule_2_0_la_LDFLAGS = \
82 $(gmodule_win32_res_ldflag) \
84 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
85 -export-dynamic $(no_undefined) $(export_symbols)
87 libgmodule_2_0_la_LIBADD = $(G_MODULE_LIBS_EXTRA) $(G_MODULE_LIBS) $(libglib)
89 libgmodule_2_0_la_DEPENDENCIES = $(gmodule_win32_res) $(gmodule_def)
91 gmodule-win32-res.o: gmodule.rc
92 $(WINDRES) gmodule.rc $@
94 gmodule-2.0.lib: libgmodule-2.0.la gmodule.def
95 lib -name:libgmodule-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:$(srcdir)/gmodule.def -out:$@
100 @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
105 $(MAKE) dist distdir=$(PACKAGE)`date +"%y%m%d"`
107 dist-hook: $(BUILT_EXTRA_DIST)
108 @files='$(BUILT_EXTRA_DIST)'; \
109 for f in $$files; do \
110 if test -f $$f; then d=.; else d=$(srcdir); fi; \
111 cp $$d/$$f $(distdir) || exit 1; done
114 install-data-local: install-ms-lib install-def-file
116 uninstall-local: uninstall-ms-lib uninstall-def-file