Merged r6224:6268 from features/deb into trunk. Implements most of a Debian package...
[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 3, 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 pkgconfigdir = $(libdir)/pkgconfig
53 pkgconfig_DATA = gnuradio-omnithread.pc
54
55 # ... but this code also came with the package
56
57 EXTRA_DIST =                            \
58         gnuradio-omnithread.pc.in       \
59         mach.cc                         \
60         nt.cc                           \
61         posix.cc                        \
62         solaris.cc                      \
63         threaddata.cc                   \
64         vxWorks.cc                      \
65         dir.mk
66
67 grinclude_HEADERS =                     \
68         omnithread.h                    \
69         ot_mach.h                       \
70         ot_nt.h                         \
71         ot_posix.h                      \
72         ot_pthread_nt.h                 \
73         ot_solaris.h                    \
74         ot_VxThread.h