Merge branch 'master' into release_0_8_9
[gnash.git] / cygnal / Makefile.am
blobbc93059feca50d378c1cc013b29489f326b148b0
1
2 #   Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010,
3 #   2011 Free Software Foundation, Inc.
5 #   This program is free software; you can redistribute it and/or modify
6 #   it under the terms of the GNU General Public License as published by
7 #   the Free Software Foundation; either version 3 of the License, or
8 #   (at your option) any later version.
10 #   This program is distributed in the hope that it will be useful,
11 #   but WITHOUT ANY WARRANTY; without even the implied warranty of
12 #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 #   GNU General Public License for more details.
15 #   You should have received a copy of the GNU General Public License
16 #   along with this program; if not, write to the Free Software
17 #   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
20 ## Process this file with automake to generate Makefile.in
22 AUTOMAKE_OPTIONS = dejagnu
24 if TESTSUITE
25 TEST_DIR = #testsuite
26 endif
28 EXTRA_DIST = cygnalrc.in
29 CLEANFILES = cygnalrc
31 SUBDIRS = \
32         libamf \
33         libnet \
34         . \
35         cgi-bin
36         $(TEST_DIR)
38 # these need to be included in a distribution, even if not part
39 # of the top level configure options.
40 DIST_SUBDIRS  = testsuite cgi-bin libamf libnet
42 sysconf_DATA = cygnalrc
44 # this is where Cygnal plugins get installed
45 pluginsdir = $(libdir)/cygnal/plugins
47 AM_CPPFLAGS =   -DPLUGINSDIR=\"$(pluginsdir)\"
49 AM_LDFLAGS = \
50         libnet/libgnashnet.la \
51         libamf/libgnashamf.la \
52         $(top_builddir)/libbase/libgnashbase.la \
53         $(top_builddir)/libcore/libgnashcore.la \
54         $(top_builddir)/libmedia/libgnashmedia.la \
55         $(top_builddir)/libsound/libgnashsound.la \
56         $(GLIB_LIBS) \
57         $(LIBINTL) \
58         $(CURL_LIBS) \
59         $(BOOST_LIBS) \
60         $(BOOST_CYGNAL_LIBS) \
61         $(PTHREAD_LIBS) \
62         $(NULL)
64 localedir = $(datadir)/locale
66 INCLUDES = -I.. \
67         -I$(srcdir)/libamf \
68         -I$(srcdir)/libnet \
69         -I$(top_srcdir) \
70         -I$(top_srcdir)/libbase \
71         -I$(top_srcdir)/libltdl \
72         -I$(top_srcdir)/libmedia \
73         -I$(top_srcdir)/libsound \
74         -I$(top_srcdir)/librender \
75         -I$(top_srcdir)/libcore \
76         -I$(top_srcdir)/libcore/asobj \
77         -I$(top_srcdir)/libcore/swf \
78         -I$(top_srcdir)/libcore/parser \
79         -I$(top_srcdir)/libcore/vm \
80         -DLOCALEDIR=\"$(localedir)\" \
81         $(CURL_CFLAGS) \
82         $(BOOST_CFLAGS) \
83         $(PTHREAD_CFLAGS)
85 noinst_HEADERS = \
86         cygnal.h \
87         rtmp_server.h \
88         http_server.h \
89         handler.h \
90         proc.h \
91         crc.h \
92         serverSO.h
94 bin_PROGRAMS = cygnal
95 noinst_LTLIBRARIES = libcygnal.la
97 cygnal_SOURCES = cygnal.cpp
98 cygnal_LDADD = $(AM_LDFLAGS) libcygnal.la
100 libcygnal_la_SOURCES = \
101         crc.cpp \
102         rtmp_server.cpp \
103         http_server.cpp \
104         proc.cpp \
105         handler.cpp \
106         serverSO.cpp
108 libcygnal_la_LIBADD = 
110 cygnalrc: cygnalrc.in Makefile
111         cat $(srcdir)/$@.in >$@
113 # Rebuild with GCC 4.x Mudflap support
114 mudflap:
115         @echo "Rebuilding with GCC Mudflap support"
116         $(MAKE) CXXFLAGS="$(CXXFLAGS) $(MUDFLAP_OPT)" LIBS="$(LIBS) $(MUDFLAP_LIB)"