Imported Upstream version 3.0
[debian/gnuradio] / gnuradio-core / src / lib / omnithread / Makefile.am
1 #
2 # Copyright 2003 Free Software Foundation, Inc.
3
4 # This file is part of GNU Radio
5
6 # GNU Radio is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2, or (at your option)
9 # any later version.
10
11 # GNU Radio is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
15
16 # You should have received a copy of the GNU General Public License
17 # along with GNU Radio; see the file COPYING.  If not, write to
18 # the Free Software Foundation, Inc., 51 Franklin Street,
19 # Boston, MA 02110-1301, USA.
20
21
22 include $(top_srcdir)/Makefile.common
23
24 # This is the omnithread package,
25 #   extracted from the omniORB-4.0.1 distribution
26
27 # we should do some configure hacking to determine these on the fly
28 OMNITHREAD_DEFINES = -DPthreadDraftVersion=10
29
30 INCLUDES = $(STD_DEFINES_AND_INCLUDES) $(OMNITHREAD_DEFINES)
31
32 noinst_LTLIBRARIES = libomnithread.la
33
34 # At this point we only support the posix and nt pthreads i/f...
35
36 if OMNITHREAD_POSIX
37 libomnithread_la_SOURCES =              \
38         posix.cc
39 endif
40
41 if OMNITHREAD_NT
42 libomnithread_la_SOURCES =              \
43         nt.cc
44 endif
45
46 libomnithread_la_LIBADD =               \
47         $(PTHREAD_LIBS)
48
49 # ... but this code also came with the package
50
51 EXTRA_DIST =                            \
52         mach.cc                         \
53         nt.cc                           \
54         posix.cc                        \
55         solaris.cc                      \
56         threaddata.cc                   \
57         vxWorks.cc                      \
58         dir.mk
59
60 grinclude_HEADERS =                     \
61         omnithread.h                    \
62         ot_mach.h                       \
63         ot_nt.h                         \
64         ot_posix.h                      \
65         ot_pthread_nt.h                 \
66         ot_solaris.h                    \
67         ot_VxThread.h