still compile with the older libpng 1.2, cause ltib still uses it, and upgrading...
[gnash.git] / cygnal / Makefile.am
blob6da96b00805db1455ff37789fb0ab812e12274b3
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 if LIBLTDL2
64 AM_LDFLAGS += $(top_builddir)/libltdl/libltdlc.la
65 endif
66 if LIBLTDL1
67 AM_LDFLAGS += $(top_builddir)/libbase/libltdlc.la
68 endif
70 localedir = $(datadir)/locale
72 INCLUDES = -I.. \
73         -I$(srcdir)/libamf \
74         -I$(srcdir)/libnet \
75         -I$(top_srcdir) \
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)\" \
87         $(CURL_CFLAGS) \
88         $(BOOST_CFLAGS) \
89         $(PTHREAD_CFLAGS)
91 noinst_HEADERS = \
92         cygnal.h \
93         rtmp_server.h \
94         http_server.h \
95         handler.h \
96         proc.h \
97         crc.h \
98         serverSO.h
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 = \
107         crc.cpp \
108         rtmp_server.cpp \
109         http_server.cpp \
110         proc.cpp \
111         handler.cpp \
112         serverSO.cpp
114 libcygnal_la_LIBADD = 
116 cygnalrc: cygnalrc.in Makefile
117         cat $(srcdir)/$@.in >$@
119 # Rebuild with GCC 4.x Mudflap support
120 mudflap:
121         @echo "Rebuilding with GCC Mudflap support"
122         $(MAKE) CXXFLAGS="$(CXXFLAGS) $(MUDFLAP_OPT)" LIBS="$(LIBS) $(MUDFLAP_LIB)"