Makefile.am 1.0 KB

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