1 ## Copyright (c) 2005, Eric Crahen
2 ## Modified for MaNGOS project <http://getmangos.com>
4 ## Permission is hereby granted, free of charge, to any person obtaining a copy
5 ## of this software and associated documentation files (the "Software"), to deal
6 ## in the Software without restriction, including without limitation the rights
7 ## to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 ## copies of the Software, and to permit persons to whom the Software is furnished
9 ## to do so, subject to the following conditions:
11 ## The above copyright notice and this permission notice shall be included in all
12 ## copies or substantial portions of the Software.
14 ## THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 ## IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 ## FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 ## AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 ## WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19 ## CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 ## Process this file with automake to produce Makefile.in
23 ## CPP flags for includes, defines, etc.
24 AM_CPPFLAGS = -I$(srcdir)/../../include -I$(srcdir)/../../include/zthread
26 ## Build ZThread as shared library.
27 # libZThread shared library will later be reused by realm list daemon
28 # and world server daemon.
29 lib_LTLIBRARIES = libZThread.la
30 libZThread_la_SOURCES = \
33 ConcurrentExecutor.cxx \
34 CountingSemaphore.cxx \
36 FastRecursiveMutex.cxx \
38 RecursiveMutexImpl.cxx \
42 PriorityCondition.cxx \
43 PriorityInheritanceMutex.cxx \
45 PrioritySemaphore.cxx \
47 SynchronousExecutor.cxx \
49 ThreadedExecutor.cxx \
58 # Link against dependencies
59 # How to increase version info:
60 # - only bug fixes implemented:
61 # bump the version to LTZTHREAD_CURRENT:LTZTHREAD_REVISION+1:LTZTHREAD_AGE
62 # - augmented the interface:
63 # bump the version to LTZTHREAD_CURRENT+1:0:LTZTHREAD_AGE+1
64 # - broken old interface:
65 # bump the version to LTZTHREAD_CURRENT+1:0:0
67 LTZTHREAD_REVISION = 3
69 libZThread_la_LDFLAGS = -version-info $(LTZTHREAD_CURRENT):$(LTZTHREAD_REVISION):$(LTZTHREAD_AGE)
71 ## Additional files to include when running 'make dist'
76 DeferredInterruptionScope.h \
82 RecursiveMutexImpl.h \
94 # Implementation specific files.
96 linux/AtomicCount.cxx \
97 linux/AtomicFastLock.h \
98 linux/FastRecursiveLock.h \
103 macos/ThreadOps.cxx \
105 macos/UpTimeStrategy.h \
106 posix/ConditionRecursiveLock.h \
108 posix/FtimeStrategy.h \
109 posix/GetTimeOfDayStrategy.h \
112 posix/PriorityOps.h \
114 posix/ThreadOps.cxx \
116 solaris/FastRecursiveLock.h \
117 vanilla/DualMutexRecursiveLock.h \
118 vanilla/SimpleAtomicCount.cxx \
119 vanilla/SimpleRecursiveLock.h \
120 win32/AtomicCount.cxx \
121 win32/AtomicFastLock.h \
122 win32/AtomicFastRecursiveLock.h \
124 win32/FastRecursiveLock.h \
127 win32/PerformanceCounterStrategy.h \
129 win32/ThreadOps.cxx \
131 win9x/AtomicCount.cxx \
132 win9x/AtomicFastLock.h