Makefile.lite 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # FLAC - Free Lossless Audio Codec
  2. # Copyright (C) 2001-2009 Josh Coalson
  3. # Copyright (C) 2011-2016 Xiph.Org Foundation
  4. #
  5. # This file is part the FLAC project. FLAC is comprised of several
  6. # components distributed under different licenses. The codec libraries
  7. # are distributed under Xiph.Org's BSD-like license (see the file
  8. # COPYING.Xiph in this distribution). All other programs, libraries, and
  9. # plugins are distributed under the GPL (see COPYING.GPL). The documentation
  10. # is distributed under the Gnu FDL (see COPYING.FDL). Each file in the
  11. # FLAC distribution contains at the top the terms under which it may be
  12. # distributed.
  13. #
  14. # Since this particular file is relevant to all components of FLAC,
  15. # it may be distributed under the Xiph.Org license, which is the least
  16. # restrictive of those mentioned above. See the file COPYING.Xiph in this
  17. # distribution.
  18. .PHONY: all example_c_decode_file example_c_encode_file example_cpp_decode_file example_cpp_encode_file
  19. all: example_c_decode_file example_c_encode_file example_cpp_decode_file example_cpp_encode_file
  20. DEFAULT_CONFIG = release
  21. CONFIG = $(DEFAULT_CONFIG)
  22. debug : CONFIG = debug
  23. valgrind: CONFIG = valgrind
  24. release : CONFIG = release
  25. debug : all
  26. valgrind: all
  27. release : all
  28. example_c_decode_file:
  29. (cd c/decode/file && $(MAKE) -f Makefile.lite $(CONFIG))
  30. example_c_encode_file:
  31. (cd c/encode/file && $(MAKE) -f Makefile.lite $(CONFIG))
  32. example_cpp_decode_file:
  33. (cd cpp/decode/file && $(MAKE) -f Makefile.lite $(CONFIG))
  34. example_cpp_encode_file:
  35. (cd cpp/encode/file && $(MAKE) -f Makefile.lite $(CONFIG))
  36. clean:
  37. -(cd c/decode/file && $(MAKE) -f Makefile.lite clean)
  38. -(cd c/encode/file && $(MAKE) -f Makefile.lite clean)
  39. -(cd cpp/decode/file && $(MAKE) -f Makefile.lite clean)
  40. -(cd cpp/encode/file && $(MAKE) -f Makefile.lite clean)