* src/native/vm/sun_misc_Unsafe.c (atomic.hpp): Removed.
[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.hpp \
53         critical.c \
54         critical.h \
55         lock-common.h \
56         mutex.h \
57         threadlist.c \
58         threadlist.h \
59         thread.c \
60         thread.h
61 else
62 libthreads_la_SOURCES =
63 endif
64
65 libthreads_la_LIBADD = \
66         $(THREAD_LIB)
67
68
69 ## Local variables:
70 ## mode: Makefile
71 ## indent-tabs-mode: t
72 ## c-basic-offset: 4
73 ## tab-width: 8
74 ## compile-command: "automake --add-missing"
75 ## End: