Merge branch 'master' into release_0_8_9
[gnash.git] / cygnal / libamf / Makefile.am
blobf68f97882e5121db21fa5b47dd4c60a6d5a5618e
1 ## Process this file with automake to generate Makefile.in
2
3 #   Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010,
4 #   2011 Free Software Foundation, Inc.
5
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
9 # (at your option) any later version.
10
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # 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 AUTOMAKE_OPTIONS = 
22 pkglib_LTLIBRARIES = libgnashamf.la
23 libgnashamf_la_SOURCES = \
24         amf.cpp \
25         amf_msg.cpp \
26         buffer.cpp \
27         element.cpp \
28         sol.cpp \
29         lcshm.cpp \
30         flv.cpp
32 libgnashamf_la_LIBADD = \
33         $(top_builddir)/libbase/libgnashbase.la
35 libgnashamf_la_LDFLAGS =  -release $(VERSION) ${AM_LDFLAGS} 
37 if WIN32
38   libgnashamf_la_LDFLAGS += -no-undefined
39   libgnashamf_la_LIBADD += -lws2_32 -lintl
40 endif
42 # noinst_HEADERS = amf.h amfutf8.h
44 AM_CPPFLAGS = \
45         -I$(top_srcdir)/cygnal/libamf \
46         -I$(top_srcdir)/cygnal/libnet \
47         -I$(top_srcdir)/libcore \
48         -I$(top_srcdir)/libbase \
49         $(BOOST_CFLAGS) \
50         $(PTHREAD_CFLAGS)
52 AM_LDFLAGS = $(BOOST_LIBS)
54 noinst_HEADERS = \
55         amfutf8.h \
56         amf.h \
57         amf_msg.h \
58         lcshm.h \
59         buffer.h \
60         element.h \
61         flv.h \
62         protocol.h \
63         sol.h
65 if ENABLE_PCH
66 AM_CXXFLAGS = $(PCH_FLAGS)
67 endif
69 # Rebuild with GCC 4.x Mudflap support
70 mudflap:
71         @echo "Rebuilding with GCC Mudflap support"
72         $(MAKE) CXXFLAGS="$(CXXFLAGS) -fmudflap" LDFLAGS="$(LDFLAGS) -lmudflap"
74 clean-hook:
75         -rm -f core.*
77 # Remove libtool .la files
78 install-exec-hook:
79         $(RM) $(DESTDIR)$(libdir)/gnash/libgnashamf.la