1 ACLOCAL_AMFLAGS = -I m4
3 AM_CFLAGS = -I$(top_srcdir)/include $(DEPS_CFLAGS)
5 dist_doc_DATA = COPYING AUTHORS README.txt
7 opusincludedir = ${includedir}/opus
8 opusinclude_HEADERS = include/opusfile.h
10 lib_LTLIBRARIES = libopusfile.la
11 libopusfile_la_SOURCES = \
12 src/http.c src/info.c \
13 src/internal.c src/internal.h \
14 src/opusfile.c src/stream.c
15 libopusfile_la_LIBADD = $(DEPS_LIBS)
16 libopusfile_la_LDFLAGS = -no-undefined \
17 -version-info @OP_LT_CURRENT@:@OP_LT_REVISION@:@OP_LT_AGE@
20 libopusfile_la_LIBADD += -lws2_32
24 noinst_PROGRAMS = examples/opusfile_example examples/seeking_example
26 examples_opusfile_example_LDADD = libopusfile.la
27 examples_seeking_example_LDADD = libopusfile.la
30 $(MAKE) CFLAGS="${CFLAGS} -O0 -ggdb -DOP_ENABLE_ASSERTIONS" all
32 pkgconfigdir = $(libdir)/pkgconfig
33 pkgconfig_DATA = opusfile.pc
37 opusfile-uninstalled.pc.in \
44 # Targets to build and install just the library without the docs
45 opusfile install-opusfile: NO_DOXYGEN = 1
48 install-opusfile: install
51 docs: doc/doxygen-build.stamp
54 @if [ -z "$(NO_DOXYGEN)" ]; then \
56 echo "Installing documentation in $(DESTDIR)$(docdir)"; \
57 for f in `find html -type f \! -name "installdox"` ; do \
58 $(INSTALL) -d $(DESTDIR)$(docdir)/html/search; \
59 $(INSTALL_DATA) $$f $(DESTDIR)$(docdir)/$$f; \
63 doc/doxygen-build.stamp: doc/Doxyfile $(top_srcdir)/doc/opus_logo.svg \
64 $(top_srcdir)/include/*.h
65 @[ -n "$(NO_DOXYGEN)" ] || ( cd doc && doxygen && touch $(@F) )
70 # Or everything (by default)
73 install-data-local: install-docs
78 $(RM) doc/doxygen-build.stamp
81 $(RM) -r $(DESTDIR)$(docdir)/html
85 .PHONY: opusfile install-opusfile docs install-docs