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
27 EXTRA_DIST = cygnalrc.in
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)\"
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 \
59 $(BOOST_CYGNAL_LIBS) \
64 AM_LDFLAGS += $(top_builddir)/libltdl/libltdlc.la
67 AM_LDFLAGS += $(top_builddir)/libbase/libltdlc.la
70 localedir = $(datadir)/locale
76 -I$(top_srcdir)/libbase \
77 -I$(top_srcdir)/libltdl \
78 -I$(top_srcdir)/libmedia \
79 -I$(top_srcdir)/libsound \
80 -I$(top_srcdir)/librender \
81 -I$(top_srcdir)/libcore \
82 -I$(top_srcdir)/libcore/asobj \
83 -I$(top_srcdir)/libcore/swf \
84 -I$(top_srcdir)/libcore/parser \
85 -I$(top_srcdir)/libcore/vm \
86 -DLOCALEDIR=\"$(localedir)\" \
100 bin_PROGRAMS = cygnal
101 noinst_LTLIBRARIES = libcygnal.la
103 cygnal_SOURCES = cygnal.cpp
104 cygnal_LDADD = $(AM_LDFLAGS) libcygnal.la
106 libcygnal_la_SOURCES = \
114 libcygnal_la_LIBADD =
116 cygnalrc: cygnalrc.in Makefile
117 cat $(srcdir)/$@.in >$@
119 # Rebuild with GCC 4.x Mudflap support
121 @echo "Rebuilding with GCC Mudflap support"
122 $(MAKE) CXXFLAGS="$(CXXFLAGS) $(MUDFLAP_OPT)" LIBS="$(LIBS) $(MUDFLAP_LIB)"