Blame examples/Makefile.lite

Packit 8f7830
#  FLAC - Free Lossless Audio Codec
Packit 8f7830
#  Copyright (C) 2001-2009  Josh Coalson
Packit 8f7830
#  Copyright (C) 2011-2016  Xiph.Org Foundation
Packit 8f7830
#
Packit 8f7830
#  This file is part the FLAC project.  FLAC is comprised of several
Packit 8f7830
#  components distributed under different licenses.  The codec libraries
Packit 8f7830
#  are distributed under Xiph.Org's BSD-like license (see the file
Packit 8f7830
#  COPYING.Xiph in this distribution).  All other programs, libraries, and
Packit 8f7830
#  plugins are distributed under the GPL (see COPYING.GPL).  The documentation
Packit 8f7830
#  is distributed under the Gnu FDL (see COPYING.FDL).  Each file in the
Packit 8f7830
#  FLAC distribution contains at the top the terms under which it may be
Packit 8f7830
#  distributed.
Packit 8f7830
#
Packit 8f7830
#  Since this particular file is relevant to all components of FLAC,
Packit 8f7830
#  it may be distributed under the Xiph.Org license, which is the least
Packit 8f7830
#  restrictive of those mentioned above.  See the file COPYING.Xiph in this
Packit 8f7830
#  distribution.
Packit 8f7830
Packit 8f7830
.PHONY: all example_c_decode_file example_c_encode_file example_cpp_decode_file example_cpp_encode_file
Packit 8f7830
all: example_c_decode_file example_c_encode_file example_cpp_decode_file example_cpp_encode_file
Packit 8f7830
Packit 8f7830
DEFAULT_CONFIG = release
Packit 8f7830
Packit 8f7830
CONFIG = $(DEFAULT_CONFIG)
Packit 8f7830
Packit 8f7830
debug   : CONFIG = debug
Packit 8f7830
valgrind: CONFIG = valgrind
Packit 8f7830
release : CONFIG = release
Packit 8f7830
Packit 8f7830
debug   : all
Packit 8f7830
valgrind: all
Packit 8f7830
release : all
Packit 8f7830
Packit 8f7830
example_c_decode_file:
Packit 8f7830
	(cd c/decode/file && $(MAKE) -f Makefile.lite $(CONFIG))
Packit 8f7830
Packit 8f7830
example_c_encode_file:
Packit 8f7830
	(cd c/encode/file && $(MAKE) -f Makefile.lite $(CONFIG))
Packit 8f7830
Packit 8f7830
example_cpp_decode_file:
Packit 8f7830
	(cd cpp/decode/file && $(MAKE) -f Makefile.lite $(CONFIG))
Packit 8f7830
Packit 8f7830
example_cpp_encode_file:
Packit 8f7830
	(cd cpp/encode/file && $(MAKE) -f Makefile.lite $(CONFIG))
Packit 8f7830
Packit 8f7830
clean:
Packit 8f7830
	-(cd c/decode/file && $(MAKE) -f Makefile.lite clean)
Packit 8f7830
	-(cd c/encode/file && $(MAKE) -f Makefile.lite clean)
Packit 8f7830
	-(cd cpp/decode/file && $(MAKE) -f Makefile.lite clean)
Packit 8f7830
	-(cd cpp/encode/file && $(MAKE) -f Makefile.lite clean)