1 ## SXEmacs - Media Makefile.am
3 ## Copyright (C) 2010 Steve Youngs
5 ## This file is part of SXEmacs.
7 ## SXEmacs is free software: you can redistribute it and/or modify
8 ## it under the terms of the GNU General Public License as published by
9 ## the Free Software Foundation, either version 3 of the License, or
10 ## (at your option) any later version.
12 ## SXEmacs is distributed in the hope that it will be useful,
13 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ## GNU General Public License for more details.
17 ## You should have received a copy of the GNU General Public License
18 ## along with this program. If not, see <http://www.gnu.org/licenses/>.
20 ## Process this file with automake to produce Makefile.in
22 # Help the Developers and yourself. Just use the C locale and settings
23 # for the compilation. They can still be overriden by make LANG=<whatever>
24 # but that is general a not very good idea
30 top_builddir = @top_builddir@
31 top_build_prefix = $(top_builddir)/
32 top_srcdir = @top_srcdir@
33 abs_builddir = @abs_builddir@
34 abs_top_builddir = @abs_top_builddir@
35 abs_top_srcdir = @abs_top_srcdir@
37 AM_CFLAGS = -Demacs $(OPENSSL_CFLAGS) -DUSE_SXEMACS_CONFIG_H -DXTSTRINGDEFINES
38 AM_CPPFLAGS = -I$(srcdir) -I$(builddir) -I$(top_srcdir)/src -I$(top_builddir)/src -I$(top_builddir) $(c_switch_general) $(LTDLINCL)
40 headerdir = $(includedir)/$(instvarsepdir)
41 archlibdir = ${libdir}/${instvardir}/${configuration}
44 ETAGS = $(top_builddir)/lib-src/etags
45 TAGS_DEPENDENCIES = $(ETAGS)
49 libmm_a_headers = media.h sound.h \
50 media-ffmpeg.h media-internal.h media-mad.h media-sndfile.h \
51 media-sox.h media-magic.h \
52 sound-alsa.h sound-ao.h sound-esd.h sound-jack.h \
53 sound-nas.h sound-oss.h sound-pulse.h
54 ## what about these?: nativesound.h sound-sunplay.h libsst.h libst.h
57 libmm_a_SOURCES = $(libmm_a_headers) $(libmm_a_sources)
58 EXTRA_libmm_a_SOURCES = \
59 media-ffmpeg.c media-internal.c media-mad.c media-sndfile.c \
60 media-sox.c media-magic.c \
61 sound-alsa.c sound-ao.c sound-esd.c sound-jack.c \
62 sound-nas.c sound-oss.c sound-pulse.c \
64 libmm_a_CFLAGS = $(AM_CFLAGS) -Wall
65 libmm_a_CPPFLAGS = $(AM_CPPFLAGS) $(c_switch_general) $(MM_CPPFLAGS) $(X_CFLAGS)
66 libmm_a_LIBADD = $(libmm_objs)
67 libmm_a_DEPENDENCIES = $(libmm_a_LIBADD)
68 libmm_a_ldflags = $(MM_LIBS)
69 all_sources += $(libmm_a_sources) $(libmm_objs:.o=.c)
71 header_HEADERS= $(acgen_headers) $(libmm_a_headers)
73 noinst_LIBRARIES=libmm.a
77 # Help the SXEmacs developers get nice post-processed source files
79 ## Create preprocessor output (debugging purposes only)
81 $(COMPILE) -E -o $@ $<
83 ## Create assembler output (debugging purposes only)
85 $(COMPILE) -S -c $(cflags) $<