shithub: opusfile

ref: 1f2f0bc451eb1e915797ee9b753062f3325b1858
dir: /Makefile.am/

View raw version
ACLOCAL_AMFLAGS = -I m4

AM_CFLAGS = -I$(top_srcdir)/include $(DEPS_CFLAGS)

dist_doc_DATA = COPYING AUTHORS README.txt

include_HEADERS = include/opusfile.h

lib_LTLIBRARIES = libopusfile.la
libopusfile_la_SOURCES = \
	src/http.c src/info.c \
	src/internal.c src/internal.h \
	src/opusfile.c src/stream.c
libopusfile_la_LIBADD = $(DEPS_LIBS)
libopusfile_la_LDFLAGS = -no-undefined \
 -version-info @OP_LT_CURRENT@:@OP_LT_REVISION@:@OP_LT_AGE@

noinst_PROGRAMS = examples/opusfile_example examples/seeking_example

examples_opusfile_example_LDADD = libopusfile.la
examples_seeking_example_LDADD = libopusfile.la

debug:
	$(MAKE) CFLAGS="${CFLAGS} -O0 -ggdb -DOP_ENABLE_ASSERTIONS" all

#API Documentation

if HAVE_DOXYGEN

EXTRA_DIST = doc/Doxyfile.in doc/git-version.sh

all-local: doc/doxygen-build.stamp

doc/doxygen-build.stamp: doc/Doxyfile $(top_srcdir)/include/*.h
	cd doc && doxygen
	touch "$@"

install-data-local:
	cd doc && for f in `find html -type f \! -name "installdox"` ; do \
	  $(INSTALL_DATA) -D $$f $(DESTDIR)$(docdir)/$$f ; \
	done

clean-local:
	$(RM) -r doc/html
	$(RM) -r doc/latex
	$(RM) doc/doxygen-build.stamp

uninstall-local:
	$(RM) -r $(DESTDIR)$(docdir)/html

endif