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