add boost cflags and libs
[gnash.git] / extensions / mysql / Makefile.am
blobec1a273bde78ba6258fc6e2bc8e1b7db17987147
1 ## Process this file with automake to generate Makefile.in
2
3 #   Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
4
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.
9
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.
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
18 AUTOMAKE_OPTIONS = 
20 # this is where Gnash plugins get installed
21 pluginsdir = $(libdir)/gnash/plugins
23 plugins_LTLIBRARIES = mysql.la
25 AM_CPPFLAGS = \
26             -I$(top_srcdir)/libbase \
27             -I$(top_srcdir)/libcore \
28             -I$(top_srcdir)/libcore/abc \
29             -I$(top_srcdir)/libcore/swf \
30             -I$(top_srcdir)/libcore/vm \
31             -I$(top_srcdir)/libcore/asobj \
32             -I$(top_srcdir)/libltdl \
33             $(BOOST_CFLAGS) \
34             $(MYSQL_CFLAGS) \
35             $(NULL)
37 AM_LDFLAGS =  \
38         $(MYSQL_LIBS) \
39         $(top_builddir)/libcore/libgnashcore.la \
40         $(BOOST_LIBS) \
41         $(PTHREAD_LIBS) \
42         $(NULL)
44 mysql_la_SOURCES = mysql_db.cpp mysql_db.h
45 mysql_la_LDFLAGS = -module -avoid-version -no-undefined
46 mysql_la_LIBDADD = $(AM_LDFLAGS)
48 CLEANFILES = \
49       gnash-dbg.log
51 # SharedTest_SOURCES = SharedTest.cpp
52 # SharedTest_CPPFLAGS = '-DINPUT="$(srcdir)/SharedTest.cpp"'
53 # SharedTest_LDFLAGS = -export-dynamic
55 install-pluginsLTLIBRARIES: $(plugins_LTLIBRARIES)
56         test -d "$(DESTDIR)$(pluginsdir)" || $(mkinstalldirs) "$(DESTDIR)$(pluginsdir)"
57         $(LIBTOOL) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $(plugins_LTLIBRARIES) "$(DESTDIR)$(pluginsdir)/$(plugins_LTLIBRARIES)"
58         $(RM) $(DESTDIR)$(pluginsdir)/*.*a 
60 uninstall-local:
61         $(RM) $(DESTDIR)$(pluginsdir)/mysql.so