* src/threads/posix/thread-posix.cpp, src/threads/thread.cpp,
[cacao.git] / src / threads / Makefile.am
1 ## src/threads/Makefile.am
2 ##
3 ## Copyright (C) 1996-2005, 2006, 2007, 2008
4 ## CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
5 ##
6 ## This file is part of CACAO.
7 ##
8 ## This program is free software; you can redistribute it and/or
9 ## modify it under the terms of the GNU General Public License as
10 ## published by the Free Software Foundation; either version 2, or (at
11 ## your option) any later version.
12 ##
13 ## This program is distributed in the hope that it will be useful, but
14 ## WITHOUT ANY WARRANTY; without even the implied warranty of
15 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16 ## General Public License for more details.
17 ##
18 ## You should have received a copy of the GNU General Public License
19 ## along with this program; if not, write to the Free Software
20 ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 ## 02110-1301, USA.
22
23
24 AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/src/vm/jit/$(ARCH_DIR) -I$(top_srcdir)/src/vm/jit/$(ARCH_DIR)/$(OS_DIR) -I$(top_builddir)/src
25
26 LIB =
27
28 DIST_SUBDIRS = \
29         none \
30         posix
31
32 if ENABLE_THREADS
33 SUBDIRS = \
34         posix
35
36 THREAD_LIB = \
37         posix/libthreadsposix.la
38 else
39 SUBDIRS = \
40         none
41
42 THREAD_LIB = \
43         none/libthreadsnone.la
44 endif
45
46
47 noinst_LTLIBRARIES = \
48         libthreads.la
49
50 if ENABLE_THREADS
51 libthreads_la_SOURCES = \
52         atomic.cpp \
53         atomic.hpp \
54         condition.hpp \
55         lock.cpp \
56         lock.hpp \
57         lockword.cpp \
58         lockword.hpp \
59         removeme.cpp \
60         mutex.hpp \
61         threadlist.cpp \
62         threadlist.hpp \
63         thread-classpath.cpp \
64         thread-classpath.hpp \
65         thread-cldc11.cpp \
66         thread-cldc11.hpp \
67         thread-openjdk.cpp \
68         thread-openjdk.hpp \
69         thread.cpp \
70         thread.hpp
71 else
72 libthreads_la_SOURCES =
73 endif
74
75 libthreads_la_LIBADD = \
76         $(THREAD_LIB)
77
78
79 ## Local variables:
80 ## mode: Makefile
81 ## indent-tabs-mode: t
82 ## c-basic-offset: 4
83 ## tab-width: 8
84 ## compile-command: "automake --add-missing"
85 ## End: