big merge from master, fix rpm creation, drop fetching swfdec
[gnash.git] / libsound / Makefile.am
blobd14e27199a4fd0cf0a18b859b8cc4e0e3a55eeff
1
2 #   Copyright (C) 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
3
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.
8
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
19 EXTRA_DIST = 
21 pkglib_LTLIBRARIES =  libgnashsound.la
23 libgnashsound_la_CPPFLAGS = \
24         -I$(top_srcdir)/libbase \
25         -I$(top_srcdir)/libmedia \
26         $(PTHREAD_CFLAGS) \
27         $(DMALLOC_CFLAGS) \
28         $(BOOST_CFLAGS) \
29         $(SDL_CFLAGS) \
30         $(NULL)
32 libgnashsound_la_LIBADD = \
33         $(top_builddir)/libmedia/libgnashmedia.la \
34         $(top_builddir)/libbase/libgnashbase.la \
35         $(BOOST_LIBS) \
36         $(PTHREAD_LIBS) \
37         $(SDL_LIBS) \
38         $(NULL)
40 libgnashsound_la_SOURCES = \
41         sound_handler.cpp \
42         EmbedSound.cpp \
43         EmbedSoundInst.cpp \
44         WAVWriter.cpp \
45         $(NULL)
47 noinst_HEADERS = \
48         NullSoundHandler.h \
49         sound_handler.h \
50         SoundEnvelope.h \
51         InputStream.h \
52         EmbedSound.h \
53         EmbedSoundInst.h \
54         AuxStream.h \
55         WAVWriter.h \
56         $(NULL)
58 if USE_SOUND_SDL
59  libgnashsound_la_SOURCES += sdl/sound_handler_sdl.cpp 
60  noinst_HEADERS += sdl/sound_handler_sdl.h
61 endif
62 if USE_SOUND_AHI
63  libgnashsound_la_SOURCES += aos4/sound_handler_ahi.cpp 
64  noinst_HEADERS += aos4/sound_handler_ahi.h
65 endif
67 if USE_SOUND_MKIT
68  libgnashsound_la_SOURCES += mkit/sound_handler_mkit.cpp
69  libgnashsound_la_LIBADD += -lmedia
70  noinst_HEADERS += mkit/sound_handler_mkit.h
71 endif
73 if ENABLE_PCH
74 AM_CXXFLAGS = $(PCH_FLAGS)
75 endif
77 libgnashsound_la_LDFLAGS = -release $(VERSION)
79 if WIN32
80   libgnashsound_la_LDFLAGS += -no-undefined
81   libgnashsound_la_LIBADD += \
82         -lintl
83 endif
85 # Rebuild with GCC 4.x Mudflap support
86 mudflap:
87         @echo "Rebuilding with GCC Mudflap support"
88         $(MAKE) CXXFLAGS="$(CXXFLAGS) -fmudflap" LDFLAGS="$(LDFLAGS) -lmudflap"
90 clean-hook:
91         -rm -f core.* *.obj
93 # Remove libtool .la files
94 install-exec-hook:
95         $(RM) $(DESTDIR)$(libdir)/gnash/libgnashsound.la
97 uninstall-local:
98         $(RM) $(DESTDIR)$(libdir)/gnash/libgnashsound-*.so