~ubuntu-branches/ubuntu/utopic/glib2.0/utopic

« back to all changes in this revision

Viewing changes to gthread/Makefile.am

Tags: upstream-2.12.12
ImportĀ upstreamĀ versionĀ 2.12.12

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
## Process this file with automake to produce Makefile.in
 
2
 
 
3
INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/glib -I$(top_srcdir)/gthread \
 
4
        -DG_LOG_DOMAIN=\"GThread\" @GTHREAD_COMPILE_IMPL_DEFINES@ \
 
5
        @GLIB_DEBUG_FLAGS@ -DG_DISABLE_DEPRECATED
 
6
 
 
7
EXTRA_DIST =                            \
 
8
                makefile.msc.in         \
 
9
                gthread-posix.c         \
 
10
                gthread-win32.c         \
 
11
                gthread-none.c          \
 
12
                gthread.def             \
 
13
                gthread.rc.in
 
14
 
 
15
BUILT_EXTRA_DIST = \
 
16
                makefile.msc            \
 
17
                gthread.rc
 
18
 
 
19
libglib = $(top_builddir)/glib/libglib-2.0.la
 
20
 
 
21
top_builddir_full=`cd \$(top_builddir); pwd`
 
22
 
 
23
lib_LTLIBRARIES = libgthread-2.0.la
 
24
 
 
25
if MS_LIB_AVAILABLE
 
26
noinst_DATA = gthread-2.0.lib
 
27
 
 
28
install-ms-lib:
 
29
        $(INSTALL) gthread-2.0.lib $(DESTDIR)$(libdir)
 
30
 
 
31
uninstall-ms-lib:
 
32
        -rm $(DESTDIR)$(libdir)/gthread-2.0.lib
 
33
else
 
34
install-ms-lib:
 
35
uninstall-ms-lib:
 
36
endif
 
37
 
 
38
if PLATFORM_WIN32
 
39
no_undefined = -no-undefined
 
40
endif
 
41
 
 
42
if OS_WIN32
 
43
export_symbols = -export-symbols $(srcdir)/gthread.def
 
44
 
 
45
install-def-file:
 
46
        $(INSTALL) $(srcdir)/gthread.def $(DESTDIR)$(libdir)/gthread-2.0.def
 
47
 
 
48
uninstall-def-file:
 
49
        -rm $(DESTDIR)$(libdir)/gthread-2.0.def
 
50
else
 
51
install-def-file:
 
52
uninstall-def-file:
 
53
endif
 
54
 
 
55
if OS_WIN32
 
56
gthread_win32_res = gthread-win32-res.o
 
57
gthread_win32_res_ldflag = -Wl,$(gthread_win32_res)
 
58
endif
 
59
 
 
60
libgthread_2_0_la_SOURCES = gthread-impl.c
 
61
libgthread_2_0_la_LDFLAGS = \
 
62
        $(gthread_win32_res_ldflag) \
 
63
        -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
 
64
        -export-dynamic $(no_undefined) $(export_symbols)
 
65
 
 
66
libgthread_2_0_la_LIBADD = $(G_THREAD_LIBS_EXTRA) $(G_THREAD_LIBS_FOR_GTHREAD) $(libglib)
 
67
 
 
68
libgthread_2_0_la_DEPENDENCIES = $(gthread_win32_res) $(GTHREAD_DEF)
 
69
 
 
70
if OS_WIN32
 
71
gthread-win32-res.o: gthread.rc
 
72
        $(WINDRES) gthread.rc $@
 
73
endif
 
74
 
 
75
gthread-2.0.lib: libgthread-2.0.la gthread.def
 
76
        lib -name:libgthread-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:$(srcdir)/gthread.def -out:$@
 
77
 
 
78
dist-hook: $(BUILT_EXTRA_DIST)
 
79
        files='$(BUILT_EXTRA_DIST)'; \
 
80
        for f in $$files; do \
 
81
          if test -f $$f; then d=.; else d=$(srcdir); fi; \
 
82
          cp $$d/$$f $(distdir) || exit 1; done
 
83
 
 
84
install-data-local: install-ms-lib install-def-file
 
85
 
 
86
uninstall-local: uninstall-ms-lib uninstall-def-file
 
87