Merged r4456:4483 from jcorgan/ticket-138 into trunk. Fixes ticket:138.
[debian/gnuradio] / 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 = $(DEFINES) $(OMNITHREAD_DEFINES) $(OMNITHREAD_INCLUDES)
31
32 # we call it libgromnithread to avoid a collision with libomnithread on Debian
33 lib_LTLIBRARIES = libgromnithread.la
34
35 # At this point we only support the posix and nt pthreads i/f...
36
37 if OMNITHREAD_POSIX
38 libgromnithread_la_SOURCES =            \
39         posix.cc
40 endif
41
42 if OMNITHREAD_NT
43 libgromnithread_la_SOURCES =            \
44         nt.cc
45 endif
46
47 libgromnithread_la_LDFLAGS = $(NO_UNDEFINED) -avoid-version 
48
49 libgromnithread_la_LIBADD =             \
50         $(PTHREAD_LIBS)
51
52 # ... but this code also came with the package
53
54 EXTRA_DIST =                            \
55         mach.cc                         \
56         nt.cc                           \
57         posix.cc                        \
58         solaris.cc                      \
59         threaddata.cc                   \
60         vxWorks.cc                      \
61         dir.mk
62
63 grinclude_HEADERS =                     \
64         omnithread.h                    \
65         ot_mach.h                       \
66         ot_nt.h                         \
67         ot_posix.h                      \
68         ot_pthread_nt.h                 \
69         ot_solaris.h                    \
70         ot_VxThread.h