* src/threads/posix/mutex-posix.hpp (Mutex): Added a forward typedef.
[cacao.git] / src / threads / Makefile.am
index 6ba1d51d8d0d3ed009def30961c466f31d5beb46..68cdfd9ec4d5c5c5b8373aa33cc3a9fa55949196 100644 (file)
@@ -29,23 +29,39 @@ DIST_SUBDIRS = \
        none \
        posix
 
+if ENABLE_THREADS
 SUBDIRS = \
        posix
 
 THREAD_LIB = \
-       posix/libposix.la
+       posix/libthreadsposix.la
+else
+SUBDIRS = \
+       none
+
+THREAD_LIB = \
+       none/libthreadsnone.la
+endif
+
 
 noinst_LTLIBRARIES = \
        libthreads.la
 
+if ENABLE_THREADS
 libthreads_la_SOURCES = \
-       critical.c \
-       critical.h \
+       atomic.cpp \
+       atomic.hpp \
+       condition.hpp \
        lock-common.h \
+       removeme.cpp \
+       mutex.hpp \
        threadlist.c \
        threadlist.h \
-       threads-common.c \
-       threads-common.h
+       thread.cpp \
+       thread.hpp
+else
+libthreads_la_SOURCES =
+endif
 
 libthreads_la_LIBADD = \
        $(THREAD_LIB)