AUTOMAKE_OPTIONS = foreign 1.10 dist-bzip2 subdir-objects ACLOCAL_AMFLAGS = -I m4 INCLUDES = -I$(top_srcdir)/include -I. AM_CFLAGS = -ansi -pedantic -std=c99 -Wall -Wextra -Wno-long-long -O2 -Wno-unused SUBDIRS = docs EXTRA_DIST = \ AUTHORS README LICENSE \ cubeb-uninstalled.pc.in \ m4/as-ac-expand.m4 \ m4/pkg.m4 \ m4/ax_create_stdint_h.m4 pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = cubeb.pc cubebincludedir = $(includedir)/cubeb cubebinclude_HEADERS = include/cubeb/cubeb.h include/cubeb/cubeb-stdint.h lib_LTLIBRARIES = src/libcubeb.la if PULSE src_libcubeb_la_SOURCES = src/cubeb_pulse.c endif if ALSA src_libcubeb_la_SOURCES = src/cubeb_alsa.c endif if COREAUDIO src_libcubeb_la_SOURCES = src/cubeb_audiounit.c endif if WAVE src_libcubeb_la_SOURCES = src/cubeb_winmm.c endif if DSOUND src_libcubeb_la_SOURCES = src/cubeb_directsound.cpp endif if SNDIO src_libcubeb_la_SOURCES = src/cubeb_sndio.c endif if OPENSL src_libcubeb_la_SOURCES = src/cubeb_opensl.c endif EXTRA_src_libcubeb_la_SOURCES = \ src/cubeb_alsa.c src/cubeb_pulse.c \ src/cubeb_audiounit.c src/cubeb_audioqueue.c \ src/cubeb_sndio.c src/cubeb_directsound.cpp \ src/cubeb_winmm.c src/cubeb_opensl.c src_libcubeb_la_LDFLAGS = -pthread -export-symbols-regex '^cubeb_' $(platform_lib) -no-undefined noinst_PROGRAMS = test/test_sanity test/test_tone test_test_sanity_SOURCES = test/test_sanity.c test_test_sanity_LDADD = -lm src/libcubeb.la $(platform_lib) test_test_tone_SOURCES = test/test_tone.c test_test_tone_LDADD = -lm src/libcubeb.la $(platform_lib) TESTS = test/test_sanity DISTCLEANFILES = include/cubeb/cubeb-stdint.h dist-hook: find $(distdir) -type d -name '.git' | xargs rm -rf debug: $(MAKE) all CFLAGS="@DEBUG@" profile: $(MAKE) all CFLAGS="@PROFILE@"