Compile the plugin for both GStreamer 0.10 and 1.0
[sipe-libnice.git] / gst / Makefile.am
blob0cf811d47498f79779891d7bb655f85d6d659edc
2 # Makefile.am for the Nice Glib ICE library
4 # (C) 2006, 2007 Collabora Ltd.
5 # (C) 2006, 2007 Nokia Corporation. All rights reserved.
7 # Licensed under MPL 1.1/LGPL 2.1. See file COPYING.
9 AM_CFLAGS = $(LIBNICE_CFLAGS) \
10         -I $(top_srcdir) \
11         -I $(top_srcdir)/socket \
12         -I $(top_srcdir)/agent \
13         -I $(top_srcdir)/random \
14         -I $(top_srcdir)/stun
16 COMMON_LIBADD = \
17         $(top_builddir)/nice/libnice.la
19 # libgstnice
21 if WITH_GSTREAMER
22 gstplugin_LTLIBRARIES = libgstnice.la
24 libgstnice_la_CFLAGS = $(AM_CFLAGS) $(GST_CFLAGS) -DGST_USE_UNSTABLE_API
26 libgstnice_la_SOURCES = \
27         gstnicesrc.h \
28         gstnicesrc.c \
29         gstnicesink.h \
30         gstnicesink.c \
31         gstnice.h \
32         gstnice.c
34 libgstnice_la_LIBADD =  $(COMMON_LIBADD) $(GST_LIBS)
36 libgstnice_la_LDFLAGS = -module -avoid-version
37 endif
40 if WITH_GSTREAMER010
41 gstplugin010_LTLIBRARIES = libgstnice010.la
43 libgstnice010_la_CFLAGS = $(AM_CFLAGS) $(GST010_CFLAGS)
45 libgstnice010_la_SOURCES = \
46         gstnicesrc.h \
47         gstnicesrc.c \
48         gstnicesink.h \
49         gstnicesink.c \
50         gstnice.h \
51         gstnice.c
53 libgstnice010_la_LIBADD = $(COMMON_LIBADD) $(GST010_LIBS)
55 libgstnice010_la_LDFLAGS = -module -avoid-version
56 endif