make it compile again
[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 PLATFORM_WIN32
29 no_undefined = -no-undefined
30 endif
31 if OS_WIN32
32 export_symbols = -export-symbols gthread.def
33 endif
34
35 libgthread_1_3_la_SOURCES = gthread-impl.c
36 libgthread_1_3_la_LDFLAGS = \
37         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
38         -export-dynamic $(no_undefined) $(export_symbols)
39
40 libgthread_1_3_la_LIBADD = @G_THREAD_LIBS_EXTRA@ @G_THREAD_LIBS@ $(libglib)
41
42 gthread.rc: $(top_builddir)/config.status $(top_srcdir)/gthread/gthread.rc.in
43         cd $(top_builddir) && CONFIG_FILES=gthread/$@ CONFIG_HEADERS= $(SHELL) ./config.status
44
45 makefile.mingw: $(top_builddir)/config.status $(top_srcdir)/gthread/makefile.mingw.in
46         cd $(top_builddir) && CONFIG_FILES=gthread/$@ CONFIG_HEADERS= $(SHELL) ./config.status
47
48 makefile.msc: $(top_builddir)/config.status $(top_srcdir)/gthread/makefile.msc.in
49         cd $(top_builddir) && CONFIG_FILES=gthread/$@ CONFIG_HEADERS= $(SHELL) ./config.status
50
51 dist-hook: $(BUILT_EXTRA_DIST)
52         files='$(BUILT_EXTRA_DIST)'; \
53         for f in $$files; do \
54           if test -f $$f; then d=.; else d=$(srcdir); fi; \
55           cp $$d/$$f $(distdir) || exit 1; done
56