Fixed typo in G_THREADS_ENABLED.
[platform/upstream/glib.git] / gthread / Makefile.am
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@
6
7 EXTRA_DIST =                            \
8                 makefile.mingw.in       \
9                 makefile.msc.in         \
10                 gthread-posix.c         \
11                 gthread-solaris.c       \
12                 gthread-win32.c         \
13                 gthread-none.c          \
14                 gthread.def             \
15                 gthread.rc.in
16
17 BUILT_EXTRA_DIST = \
18                 makefile.mingw          \
19                 makefile.msc            \
20                 gthread.rc
21
22 libglib = $(top_builddir)/glib/libglib-1.3.la
23
24 top_builddir_full=`cd \$(top_builddir); pwd`
25
26 lib_LTLIBRARIES = libgthread-1.3.la
27
28 if MS_LIB_AVAILABLE
29 noinst_DATA = gthread-1.3.lib
30
31 install-ms-lib:
32         $(INSTALL) gthread-1.3.lib $(DESTDIR)$(libdir)
33
34 uninstall-ms-lib:
35         -rm $(DESTDIR)$(libdir)/gthread-1.3.lib
36 else
37 install-ms-lib:
38 uninstall-ms-lib:
39 endif
40
41 if PLATFORM_WIN32
42 no_undefined = -no-undefined
43 endif
44
45 if OS_WIN32
46 export_symbols = -export-symbols gthread.def
47
48 install-libtool-import-lib:
49         $(INSTALL) .libs/libgthread-1.3.dll.a $(DESTDIR)$(libdir)
50 uninstall-libtool-import-lib:
51         -rm $(DESTDIR)$(libdir)/libgthread-1.3.dll.a
52 else
53 install-libtool-import-lib:
54 uninstall-libtool-import-lib:
55 endif
56
57 libgthread_1_3_la_SOURCES = gthread-impl.c
58 libgthread_1_3_la_LDFLAGS = \
59         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
60         -export-dynamic $(no_undefined) $(export_symbols)
61
62 libgthread_1_3_la_LIBADD = @G_THREAD_WIN32_RESOURCE@ @G_THREAD_LIBS_EXTRA@ @G_THREAD_LIBS@ $(libglib)
63
64 libgthread_1_3_la_DEPENDENCIES = @G_THREAD_WIN32_RESOURCE@ @GTHREAD_DEF@
65
66 if OS_WIN32
67 @G_THREAD_WIN32_RESOURCE@ : gthread.rc
68         $(top_srcdir)/build/win32/lt-compile-resource gthread.rc @G_THREAD_WIN32_RESOURCE@
69 endif
70
71 gthread-1.3.lib: libgthread-1.3.la gthread.def
72         lib -name:libgthread-1.3-@LT_CURRENT_MINUS_AGE@.dll -def:gthread.def -out:$@
73
74 gthread.rc: $(top_builddir)/config.status $(top_srcdir)/gthread/gthread.rc.in
75         cd $(top_builddir) && CONFIG_FILES=gthread/$@ CONFIG_HEADERS= $(SHELL) ./config.status
76
77 makefile.mingw: $(top_builddir)/config.status $(top_srcdir)/gthread/makefile.mingw.in
78         cd $(top_builddir) && CONFIG_FILES=gthread/$@ CONFIG_HEADERS= $(SHELL) ./config.status
79
80 makefile.msc: $(top_builddir)/config.status $(top_srcdir)/gthread/makefile.msc.in
81         cd $(top_builddir) && CONFIG_FILES=gthread/$@ CONFIG_HEADERS= $(SHELL) ./config.status
82
83 dist-hook: $(BUILT_EXTRA_DIST)
84         files='$(BUILT_EXTRA_DIST)'; \
85         for f in $$files; do \
86           if test -f $$f; then d=.; else d=$(srcdir); fi; \
87           cp $$d/$$f $(distdir) || exit 1; done
88
89 install-data-local: install-ms-lib install-libtool-import-lib
90
91 uninstall-local: uninstall-ms-lib uninstall-libtool-import-lib