Makefile.lite 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. #
  19. # GNU Makefile
  20. #
  21. # Useful targets
  22. #
  23. # all : build all libraries and programs in the default configuration (currently 'release')
  24. # debug : build all libraries and programs in debug mode
  25. # valgrind: build all libraries and programs in debug mode, dynamically linked and ready for valgrind
  26. # release : build all libraries and programs in release mode
  27. # test : run the unit and stream tests
  28. # clean : remove all non-distro files
  29. #
  30. topdir = .
  31. .PHONY: all doc src examples libFLAC libFLAC++ share plugin_common flac metaflac test_grabbag test_libFLAC test_libFLAC++ test_seeking test_streams flacdiff flactimer
  32. all: src examples
  33. DEFAULT_CONFIG = release
  34. CONFIG = $(DEFAULT_CONFIG)
  35. debug : CONFIG = debug
  36. valgrind: CONFIG = valgrind
  37. release : CONFIG = release
  38. debug : all
  39. valgrind: all
  40. release : all
  41. doc:
  42. (cd $@ && $(MAKE) -f Makefile.lite)
  43. src examples:
  44. (cd $@ && $(MAKE) -f Makefile.lite $(CONFIG))
  45. libFLAC libFLAC++ share flac metaflac plugin_common plugin_xmms test_libs_common test_seeking test_streams test_grabbag test_libFLAC test_libFLAC++:
  46. (cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
  47. flacdiff flactimer:
  48. (cd src/utils/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
  49. test: debug
  50. (cd test && $(MAKE) -f Makefile.lite debug)
  51. testv: valgrind
  52. (cd test && $(MAKE) -f Makefile.lite valgrind)
  53. testr: release
  54. (cd test && $(MAKE) -f Makefile.lite release)
  55. clean:
  56. -(cd doc && $(MAKE) -f Makefile.lite clean)
  57. -(cd src && $(MAKE) -f Makefile.lite clean)
  58. -(cd examples && $(MAKE) -f Makefile.lite clean)
  59. -(cd test && $(MAKE) -f Makefile.lite clean)
  60. examples: libFLAC libFLAC++ share
  61. include $(topdir)/Makefile.deps