Imported Upstream version 3.2.2
[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 SUBDIRS = gnuradio
25
26 # This is the omnithread package,
27 #   extracted from the omniORB-4.0.1 distribution
28
29 # we should do some configure hacking to determine these on the fly
30 OMNITHREAD_DEFINES = -DPthreadDraftVersion=10
31
32 AM_CPPFLAGS = $(DEFINES) $(OMNITHREAD_DEFINES) $(OMNITHREAD_INCLUDES) \
33          $(WITH_INCLUDES)
34
35 # we call it libgromnithread to avoid a collision with libomnithread on Debian
36 lib_LTLIBRARIES = libgromnithread.la
37
38 # At this point we only support the posix and nt pthreads i/f...
39
40 if OMNITHREAD_POSIX
41 libgromnithread_la_SOURCES =            \
42         omni_time.cc \
43         posix.cc
44 endif
45
46 if OMNITHREAD_NT
47 libgromnithread_la_SOURCES =            \
48         omni_time.cc \
49         nt.cc
50 endif
51
52 libgromnithread_la_LDFLAGS = $(NO_UNDEFINED) 
53
54 libgromnithread_la_LIBADD =             \
55         $(PTHREAD_LIBS)
56
57 pkgconfigdir = $(libdir)/pkgconfig
58 pkgconfig_DATA = gnuradio-omnithread.pc
59
60 # ... but this code also came with the package
61
62 EXTRA_DIST =                            \
63         gnuradio-omnithread.pc.in       \
64         mach.cc                         \
65         nt.cc                           \
66         posix.cc                        \
67         solaris.cc                      \
68         threaddata.cc                   \
69         vxWorks.cc                      \
70         dir.mk