2 # Copyright (C) 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.
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 AUTOMAKE_OPTIONS = foreign
21 pkglib_LTLIBRARIES = libgnashsound.la
23 libgnashsound_la_CPPFLAGS = \
24 -I$(top_srcdir)/libbase \
25 -I$(top_srcdir)/libmedia \
32 libgnashsound_la_LIBADD = \
33 $(top_builddir)/libmedia/libgnashmedia.la \
34 $(top_builddir)/libbase/libgnashbase.la \
40 libgnashsound_la_SOURCES = \
59 libgnashsound_la_SOURCES += sdl/sound_handler_sdl.cpp
60 noinst_HEADERS += sdl/sound_handler_sdl.h
63 libgnashsound_la_SOURCES += aos4/sound_handler_ahi.cpp
64 noinst_HEADERS += aos4/sound_handler_ahi.h
68 libgnashsound_la_SOURCES += mkit/sound_handler_mkit.cpp
69 libgnashsound_la_LIBADD += -lmedia
70 noinst_HEADERS += mkit/sound_handler_mkit.h
74 AM_CXXFLAGS = $(PCH_FLAGS)
77 libgnashsound_la_LDFLAGS = -release $(VERSION)
80 libgnashsound_la_LDFLAGS += -no-undefined
81 libgnashsound_la_LIBADD += \
85 # Rebuild with GCC 4.x Mudflap support
87 @echo "Rebuilding with GCC Mudflap support"
88 $(MAKE) CXXFLAGS="$(CXXFLAGS) -fmudflap" LDFLAGS="$(LDFLAGS) -lmudflap"