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