|
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 |
#
|
|
Packit |
8f7830 |
# GNU Makefile
|
|
Packit |
8f7830 |
#
|
|
Packit |
8f7830 |
# Useful targets
|
|
Packit |
8f7830 |
#
|
|
Packit |
8f7830 |
# all : build all libraries and programs in the default configuration (currently 'release')
|
|
Packit |
8f7830 |
# debug : build all libraries and programs in debug mode
|
|
Packit |
8f7830 |
# valgrind: build all libraries and programs in debug mode, dynamically linked and ready for valgrind
|
|
Packit |
8f7830 |
# release : build all libraries and programs in release mode
|
|
Packit |
8f7830 |
# test : run the unit and stream tests
|
|
Packit |
8f7830 |
# clean : remove all non-distro files
|
|
Packit |
8f7830 |
#
|
|
Packit |
8f7830 |
|
|
Packit |
8f7830 |
topdir = .
|
|
Packit |
8f7830 |
|
|
Packit |
8f7830 |
.PHONY: all doc src examples libFLAC libFLAC++ share plugin_common flac metaflac test_grabbag test_libFLAC test_libFLAC++ test_seeking test_streams flacdiff flactimer
|
|
Packit |
8f7830 |
all: src examples
|
|
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 |
doc:
|
|
Packit |
8f7830 |
(cd $@ && $(MAKE) -f Makefile.lite)
|
|
Packit |
8f7830 |
|
|
Packit |
8f7830 |
src examples:
|
|
Packit |
8f7830 |
(cd $@ && $(MAKE) -f Makefile.lite $(CONFIG))
|
|
Packit |
8f7830 |
|
|
Packit |
8f7830 |
libFLAC libFLAC++ share flac metaflac plugin_common plugin_xmms test_libs_common test_seeking test_streams test_grabbag test_libFLAC test_libFLAC++:
|
|
Packit |
8f7830 |
(cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
|
|
Packit |
8f7830 |
|
|
Packit |
8f7830 |
flacdiff flactimer:
|
|
Packit |
8f7830 |
(cd src/utils/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
|
|
Packit |
8f7830 |
|
|
Packit |
8f7830 |
test: debug
|
|
Packit |
8f7830 |
(cd test && $(MAKE) -f Makefile.lite debug)
|
|
Packit |
8f7830 |
|
|
Packit |
8f7830 |
testv: valgrind
|
|
Packit |
8f7830 |
(cd test && $(MAKE) -f Makefile.lite valgrind)
|
|
Packit |
8f7830 |
|
|
Packit |
8f7830 |
testr: release
|
|
Packit |
8f7830 |
(cd test && $(MAKE) -f Makefile.lite release)
|
|
Packit |
8f7830 |
|
|
Packit |
8f7830 |
clean:
|
|
Packit |
8f7830 |
-(cd doc && $(MAKE) -f Makefile.lite clean)
|
|
Packit |
8f7830 |
-(cd src && $(MAKE) -f Makefile.lite clean)
|
|
Packit |
8f7830 |
-(cd examples && $(MAKE) -f Makefile.lite clean)
|
|
Packit |
8f7830 |
-(cd test && $(MAKE) -f Makefile.lite clean)
|
|
Packit |
8f7830 |
|
|
Packit |
8f7830 |
examples: libFLAC libFLAC++ share
|
|
Packit |
8f7830 |
include $(topdir)/Makefile.deps
|