summaryrefslogtreecommitdiff
path: root/ext/arts/Makefile.am
blob: 0510ccf27ea080aab4216b4d92873e03a8287a85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
plugindir = $(libdir)/gst

plugin_LTLIBRARIES = libgstarts.la

gst_artsio_impl.lo: gst_artsio.cc

## we wrap parts of this Makefile.am in a USE_ so that we won't run 
## mcopidl during make distcheck when it isn't on the system

if USE_ARTS
SUFFIXES = .idl
.idl.cc:
	mcopidl -t $< $(ARTS_CXXFLAGS)

# mcopidl Extension Expansion Technology clean up
CLEANFILES = gst_artsio.h gst_artsio.cc gst_artsio.mcopclass gst_artsio.mcoptype

# FIXME automake 1.4 hack, 1.5 should let us put the .idl in
#       _SOURCES at which point the follow can be removed

libgstarts_la_SOURCES = gst_arts.c gst_artsio.cc gst_artsio_impl.cc
libgstarts_la_CFLAGS = $(GST_CFLAGS)
libgstarts_la_CXXFLAGS = $(ARTS_CXXFLAGS) $(GST_CFLAGS)
libgstarts_la_LIBADD = $(GST_LIBS) $(ARTS_LIBS) -lartsflow
libgstarts_la_LDFLAGS = @GST_PLUGIN_LDFLAGS@

EXTRA_DIST = gst_artsio.idl
else
EXTRA_DIST = gst_arts.c gst_artsio.idl gst_artsio_impl.cc
endif

noinst_HEADERS = gst_arts.h gst_artsio_impl.h

dist-hook:
	rm -f $(distdir)/gst_artsio.cc