1 | ## Process this file with automake to produce Makefile.in
|
---|
2 |
|
---|
3 |
|
---|
4 | #AUTOMAKE_OPTIONS = foreign 1.6 dist-zip
|
---|
5 | AUTOMAKE_OPTIONS = foreign 1.11 dist-zip dist-xz
|
---|
6 | ACLOCAL_AMFLAGS = -I m4
|
---|
7 |
|
---|
8 | SUBDIRS = src include doc
|
---|
9 |
|
---|
10 | m4datadir = $(datadir)/aclocal
|
---|
11 | m4data_DATA = ogg.m4
|
---|
12 |
|
---|
13 | pkgconfigdir = $(libdir)/pkgconfig
|
---|
14 | pkgconfig_DATA = ogg.pc
|
---|
15 |
|
---|
16 | EXTRA_DIST = README.md AUTHORS CHANGES COPYING \
|
---|
17 | libogg.spec libogg.spec.in \
|
---|
18 | ogg.m4 ogg.pc.in ogg-uninstalled.pc.in \
|
---|
19 | win32 CMakeLists.txt cmake
|
---|
20 |
|
---|
21 | dist-hook:
|
---|
22 | for item in $(EXTRA_DIST); do \
|
---|
23 | if test -d $$item; then \
|
---|
24 | echo -n "cleaning dir $$item for distribution..."; \
|
---|
25 | rm -rf `find $(distdir)/$$item -name .svn`; \
|
---|
26 | echo "OK"; \
|
---|
27 | fi; \
|
---|
28 | done
|
---|
29 |
|
---|
30 | # Verify cmake works with the dist tarball.
|
---|
31 | cmake_builddir = _build.cmake
|
---|
32 | distcheck-hook:
|
---|
33 | $(RM) -rf $(cmake_builddir)
|
---|
34 | mkdir $(cmake_builddir)
|
---|
35 | cd $(cmake_builddir) && cmake ../$(top_distdir)
|
---|
36 | cd $(cmake_builddir) && cmake --build .
|
---|
37 | cd $(cmake_builddir) && ctest
|
---|
38 | $(RM) -rf $(cmake_builddir)
|
---|
39 |
|
---|
40 | debug:
|
---|
41 | $(MAKE) all CFLAGS="@DEBUG@"
|
---|
42 |
|
---|
43 | profile:
|
---|
44 | $(MAKE) all CFLAGS="@PROFILE@"
|
---|