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
28 EXTRA_DIST = cygnalrc.in
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)\"
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 \
60 $(BOOST_CYGNAL_LIBS) \
65 AM_LDFLAGS += $(top_builddir)/libltdl/libltdlc.la
68 AM_LDFLAGS += $(top_builddir)/libbase/libltdlc.la
71 localedir = $(datadir)/locale
77 -I$(top_srcdir)/libbase \
78 -I$(top_srcdir)/libltdl \
79 -I$(top_srcdir)/libmedia \
80 -I$(top_srcdir)/libsound \
81 -I$(top_srcdir)/librender \
82 -I$(top_srcdir)/libcore \
83 -I$(top_srcdir)/libcore/asobj \
84 -I$(top_srcdir)/libcore/swf \
85 -I$(top_srcdir)/libcore/parser \
86 -I$(top_srcdir)/libcore/vm \
87 -DLOCALEDIR=\"$(localedir)\" \
101 bin_PROGRAMS = cygnal
102 noinst_LTLIBRARIES = libcygnal.la
104 cygnal_SOURCES = cygnal.cpp
105 cygnal_LDADD = $(AM_LDFLAGS) libcygnal.la
107 libcygnal_la_SOURCES = \
115 libcygnal_la_LIBADD =
117 cygnalrc: cygnalrc.in Makefile
118 cat $(srcdir)/$@.in >$@
120 # Rebuild with GCC 4.x Mudflap support
122 @echo "Rebuilding with GCC Mudflap support"
123 $(MAKE) CXXFLAGS="$(CXXFLAGS) $(MUDFLAP_OPT)" LIBS="$(LIBS) $(MUDFLAP_LIB)"