Makefile.am 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. ACLOCAL_AMFLAGS = -I m4
  2. AM_CFLAGS = -I$(top_srcdir)/include $(DEPS_CFLAGS)
  3. dist_doc_DATA = COPYING AUTHORS README.txt
  4. opusincludedir = ${includedir}/opus
  5. opusinclude_HEADERS = include/opusfile.h
  6. lib_LTLIBRARIES = libopusfile.la
  7. libopusfile_la_SOURCES = \
  8. src/http.c src/info.c \
  9. src/internal.c src/internal.h \
  10. src/opusfile.c src/stream.c
  11. libopusfile_la_LIBADD = $(DEPS_LIBS)
  12. libopusfile_la_LDFLAGS = -no-undefined \
  13. -version-info @OP_LT_CURRENT@:@OP_LT_REVISION@:@OP_LT_AGE@
  14. noinst_PROGRAMS = examples/opusfile_example examples/seeking_example
  15. examples_opusfile_example_LDADD = libopusfile.la
  16. examples_seeking_example_LDADD = libopusfile.la
  17. debug:
  18. $(MAKE) CFLAGS="${CFLAGS} -O0 -ggdb -DOP_ENABLE_ASSERTIONS" all
  19. pkgconfigdir = $(libdir)/pkgconfig
  20. pkgconfig_DATA = opusfile.pc
  21. EXTRA_DIST = \
  22. opusfile.pc.in \
  23. opusfile-uninstalled.pc.in
  24. #API Documentation
  25. if HAVE_DOXYGEN
  26. EXTRA_DIST += \
  27. doc/Doxyfile.in \
  28. doc/git-version.sh \
  29. doc/opus_logo.svg
  30. all-local: doc/doxygen-build.stamp
  31. doc/doxygen-build.stamp: doc/Doxyfile $(top_srcdir)/doc/opus_logo.svg \
  32. $(top_srcdir)/include/*.h
  33. cd doc && doxygen
  34. touch "$@"
  35. install-data-local:
  36. cd doc && for f in `find html -type f \! -name "installdox"` ; do \
  37. $(INSTALL) -d $(DESTDIR)$(docdir)/html/search; \
  38. $(INSTALL_DATA) $$f $(DESTDIR)$(docdir)/$$f; \
  39. done
  40. clean-local:
  41. $(RM) -r doc/html
  42. $(RM) -r doc/latex
  43. $(RM) doc/doxygen-build.stamp
  44. uninstall-local:
  45. $(RM) -r $(DESTDIR)$(docdir)/html
  46. endif