[kdbus] Do not set body message if signature field is empty
[platform/upstream/glib.git] / gthread / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 include $(top_srcdir)/glib.mk
3
4 AM_CPPFLAGS =                           \
5         $(glib_INCLUDES)                \
6         -DG_LOG_DOMAIN=\"GThread\"      \
7         @GTHREAD_COMPILE_IMPL_DEFINES@  \
8         @GLIB_DEBUG_FLAGS@
9
10 AM_CFLAGS = $(GLIB_WARN_CFLAGS)
11
12 EXTRA_DIST +=                           \
13                 makefile.msc.in         \
14                 gthread.def             \
15                 gthread.rc.in
16
17 BUILT_EXTRA_DIST +=                     \
18                 makefile.msc            \
19                 gthread.rc
20
21 libglib = $(top_builddir)/glib/libglib-2.0.la
22
23 top_builddir_full=`cd \$(top_builddir); pwd`
24
25 lib_LTLIBRARIES = libgthread-2.0.la
26
27 if OS_WIN32_AND_DLL_COMPILATION
28 if MS_LIB_AVAILABLE
29 noinst_DATA += gthread-2.0.lib
30
31 install_ms_lib_cmd = $(INSTALL) gthread-2.0.lib $(DESTDIR)$(libdir)
32 uninstall_ms_lib_cmd = -rm $(DESTDIR)$(libdir)/gthread-2.0.lib
33 endif
34 endif
35
36 install-ms-lib:
37         $(install_ms_lib_cmd)
38
39 uninstall-ms-lib:
40         $(uninstall_ms_lib_cmd)
41
42 if PLATFORM_WIN32
43 no_undefined = -no-undefined
44 endif
45
46 if OS_WIN32_AND_DLL_COMPILATION
47 export_symbols = -export-symbols $(srcdir)/gthread.def
48 gthread_def = gthread.def
49
50 install-def-file:
51         $(INSTALL) $(srcdir)/gthread.def $(DESTDIR)$(libdir)/gthread-2.0.def
52
53 uninstall-def-file:
54         -rm $(DESTDIR)$(libdir)/gthread-2.0.def
55 else
56 install-def-file:
57 uninstall-def-file:
58 endif
59
60 if OS_WIN32_AND_DLL_COMPILATION
61 gthread_win32_res = gthread-win32-res.o
62 gthread_win32_res_ldflag = -Wl,$(gthread_win32_res)
63 endif
64
65 libgthread_2_0_la_CFLAGS = $(AM_CFLAGS) $(GLIB_HIDDEN_VISIBILITY_CFLAGS)
66 libgthread_2_0_la_SOURCES = gthread-impl.c
67 libgthread_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
68         $(gthread_win32_res_ldflag) \
69         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
70         -export-dynamic $(no_undefined) $(export_symbols)
71
72 libgthread_2_0_la_LIBADD = $(G_THREAD_LIBS_EXTRA) $(G_THREAD_LIBS_FOR_GTHREAD) $(libglib)
73
74 libgthread_2_0_la_DEPENDENCIES = $(gthread_win32_res) $(gthread_def)
75
76 gthread-win32-res.o: gthread.rc
77         $(AM_V_GEN) $(WINDRES) gthread.rc $@
78
79 gthread-2.0.lib: libgthread-2.0.la gthread.def
80         $(AM_V_GEN) lib.exe -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgthread-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:$(srcdir)/gthread.def -out:$@
81
82 dist-hook: $(BUILT_EXTRA_DIST)
83         files='$(BUILT_EXTRA_DIST)'; \
84         for f in $$files; do \
85           if test -f $$f; then d=.; else d=$(srcdir); fi; \
86           cp $$d/$$f $(distdir) || exit 1; done
87
88 install-data-local: install-ms-lib install-def-file
89
90 uninstall-local: uninstall-ms-lib uninstall-def-file
91
92 if HAVE_GLIB_RUNTIME_LIBDIR
93 install-data-hook:
94         mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
95         mv $(DESTDIR)$(libdir)/libgthread-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
96         mv $(DESTDIR)$(libdir)/libgthread-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
97         rm -f $(DESTDIR)$(libdir)/libgthread-2.0.so
98         ln -s $(GLIB_RUNTIME_LIBDIR)/libgthread-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgthread-2.0.so
99 endif