1 ## Process this file with automake to produce Makefile.in
2 include $(top_srcdir)/Makefile.decl
7 -I$(top_srcdir)/gthread \
8 -DG_LOG_DOMAIN=\"GThread\" \
9 @GTHREAD_COMPILE_IMPL_DEFINES@ \
11 -DG_DISABLE_DEPRECATED
25 libglib = $(top_builddir)/glib/libglib-2.0.la
27 top_builddir_full=`cd \$(top_builddir); pwd`
29 lib_LTLIBRARIES = libgthread-2.0.la
31 if OS_WIN32_AND_DLL_COMPILATION
33 noinst_DATA = gthread-2.0.lib
35 install_ms_lib_cmd = $(INSTALL) gthread-2.0.lib $(DESTDIR)$(libdir)
36 uninstall_ms_lib_cmd = -rm $(DESTDIR)$(libdir)/gthread-2.0.lib
44 $(uninstall_ms_lib_cmd)
47 no_undefined = -no-undefined
50 if OS_WIN32_AND_DLL_COMPILATION
51 export_symbols = -export-symbols $(srcdir)/gthread.def
52 gthread_def = gthread.def
55 $(INSTALL) $(srcdir)/gthread.def $(DESTDIR)$(libdir)/gthread-2.0.def
58 -rm $(DESTDIR)$(libdir)/gthread-2.0.def
64 if OS_WIN32_AND_DLL_COMPILATION
65 gthread_win32_res = gthread-win32-res.o
66 gthread_win32_res_ldflag = -Wl,$(gthread_win32_res)
69 libgthread_2_0_la_SOURCES = gthread-impl.c
70 libgthread_2_0_la_LDFLAGS = \
71 $(gthread_win32_res_ldflag) \
72 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
73 -export-dynamic $(no_undefined) $(export_symbols)
75 libgthread_2_0_la_LIBADD = $(G_THREAD_LIBS_EXTRA) $(G_THREAD_LIBS_FOR_GTHREAD) $(libglib)
77 libgthread_2_0_la_DEPENDENCIES = $(gthread_win32_res) $(gthread_def)
79 gthread-win32-res.o: gthread.rc
80 $(WINDRES) gthread.rc $@
82 gthread-2.0.lib: libgthread-2.0.la gthread.def
83 lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgthread-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:$(srcdir)/gthread.def -out:$@
85 dist-hook: $(BUILT_EXTRA_DIST)
86 files='$(BUILT_EXTRA_DIST)'; \
87 for f in $$files; do \
88 if test -f $$f; then d=.; else d=$(srcdir); fi; \
89 cp $$d/$$f $(distdir) || exit 1; done
91 install-data-local: install-ms-lib install-def-file
93 uninstall-local: uninstall-ms-lib uninstall-def-file