Moved mb_time to omni_time and left mb_time.h with typedef to maintain
[debian/gnuradio] / omnithread / Makefile.am
1 #
2 # Copyright 2003,2008 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 AM_CPPFLAGS = $(DEFINES) $(OMNITHREAD_DEFINES) $(OMNITHREAD_INCLUDES) \
31          $(WITH_INCLUDES)
32
33 # we call it libgromnithread to avoid a collision with libomnithread on Debian
34 lib_LTLIBRARIES = libgromnithread.la
35
36 # At this point we only support the posix and nt pthreads i/f...
37
38 if OMNITHREAD_POSIX
39 libgromnithread_la_SOURCES =            \
40         omni_time.cc \
41         posix.cc
42 endif
43
44 if OMNITHREAD_NT
45 libgromnithread_la_SOURCES =            \
46         omni_time.cc \
47         nt.cc
48 endif
49
50 libgromnithread_la_LDFLAGS = $(NO_UNDEFINED) 
51
52 libgromnithread_la_LIBADD =             \
53         $(PTHREAD_LIBS)
54
55 pkgconfigdir = $(libdir)/pkgconfig
56 pkgconfig_DATA = gnuradio-omnithread.pc
57
58 # ... but this code also came with the package
59
60 EXTRA_DIST =                            \
61         gnuradio-omnithread.pc.in       \
62         mach.cc                         \
63         nt.cc                           \
64         posix.cc                        \
65         solaris.cc                      \
66         threaddata.cc                   \
67         vxWorks.cc                      \
68         dir.mk
69
70 grinclude_HEADERS =                     \
71         omnithread.h                    \
72         omni_time.h                     \
73         ot_mach.h                       \
74         ot_nt.h                         \
75         ot_posix.h                      \
76         ot_pthread_nt.h                 \
77         ot_solaris.h                    \
78         ot_VxThread.h