• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1## Process this file with automake to produce Makefile.in
2include $(top_srcdir)/Makefile.decl
3
4AM_CPPFLAGS = 				\
5	-I$(top_srcdir) 		\
6	-I$(top_srcdir)/glib 		\
7	-I$(top_srcdir)/gthread 	\
8	-DG_LOG_DOMAIN=\"GThread\" 	\
9	@GTHREAD_COMPILE_IMPL_DEFINES@ 	\
10	@GLIB_DEBUG_FLAGS@ 		\
11	-DG_DISABLE_DEPRECATED
12
13EXTRA_DIST +=				\
14		makefile.msc.in		\
15		gthread-posix.c		\
16		gthread-win32.c		\
17		gthread-none.c		\
18		gthread.def		\
19		gthread.rc.in
20
21BUILT_EXTRA_DIST = 			\
22		makefile.msc		\
23		gthread.rc
24
25libglib = $(top_builddir)/glib/libglib-2.0.la
26
27top_builddir_full=`cd \$(top_builddir); pwd`
28
29lib_LTLIBRARIES = libgthread-2.0.la
30
31if OS_WIN32_AND_DLL_COMPILATION
32if MS_LIB_AVAILABLE
33noinst_DATA = gthread-2.0.lib
34
35install_ms_lib_cmd = $(INSTALL) gthread-2.0.lib $(DESTDIR)$(libdir)
36uninstall_ms_lib_cmd = -rm $(DESTDIR)$(libdir)/gthread-2.0.lib
37endif
38endif
39
40install-ms-lib:
41	$(install_ms_lib_cmd)
42
43uninstall-ms-lib:
44	$(uninstall_ms_lib_cmd)
45
46if PLATFORM_WIN32
47no_undefined = -no-undefined
48endif
49
50if OS_WIN32_AND_DLL_COMPILATION
51export_symbols = -export-symbols $(srcdir)/gthread.def
52gthread_def = gthread.def
53
54install-def-file:
55	$(INSTALL) $(srcdir)/gthread.def $(DESTDIR)$(libdir)/gthread-2.0.def
56
57uninstall-def-file:
58	-rm $(DESTDIR)$(libdir)/gthread-2.0.def
59else
60install-def-file:
61uninstall-def-file:
62endif
63
64if OS_WIN32_AND_DLL_COMPILATION
65gthread_win32_res = gthread-win32-res.o
66gthread_win32_res_ldflag = -Wl,$(gthread_win32_res)
67endif
68
69libgthread_2_0_la_SOURCES = gthread-impl.c
70libgthread_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)
74
75libgthread_2_0_la_LIBADD = $(G_THREAD_LIBS_EXTRA) $(G_THREAD_LIBS_FOR_GTHREAD) $(libglib)
76
77libgthread_2_0_la_DEPENDENCIES = $(gthread_win32_res) $(gthread_def)
78
79gthread-win32-res.o: gthread.rc
80	$(WINDRES) gthread.rc $@
81
82gthread-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:$@
84
85dist-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
90
91install-data-local: install-ms-lib install-def-file
92
93uninstall-local: uninstall-ms-lib uninstall-def-file
94
95