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 19topdir = .. 20 21include $(topdir)/build/config.mk 22 23ifeq ($(OS),Darwin) 24 EXTRA_TARGETS = 25else 26ifeq ($(PROC),x86_64) 27 EXTRA_TARGETS = 28else 29 # Can add plugin_xmms here if desired. 30 EXTRA_TARGETS = 31endif 32endif 33 34ifeq ($(findstring Windows,$(OS)),Windows) 35 EXTRA_TARGETS += share/win_utf8_io 36endif 37 38.PHONY: all flac libFLAC libFLAC++ metaflac plugin_common plugin_xmms share/win_utf8_io share test_grabbag test_libs_common test_libFLAC test_libFLAC++ test_seeking test_streams flacdiff flactimer 39all: flac libFLAC libFLAC++ metaflac plugin_common $(EXTRA_TARGETS) share test_grabbag test_libs_common test_libFLAC test_libFLAC++ test_seeking test_streams 40 41DEFAULT_CONFIG = release 42 43CONFIG = $(DEFAULT_CONFIG) 44 45debug : CONFIG = debug 46valgrind: CONFIG = valgrind 47release : CONFIG = release 48 49debug : all 50valgrind: all 51release : all 52 53flac libFLAC libFLAC++ metaflac plugin_common plugin_xmms share/win_utf8_io share test_grabbag test_libs_common test_libFLAC test_libFLAC++ test_seeking test_streams: 54 (cd $@ ; $(MAKE) -f Makefile.lite $(CONFIG)) 55 56flacdiff flactimer: 57 (cd utils/$@ ; $(MAKE) -f Makefile.lite $(CONFIG)) 58 59clean: 60 -(cd flac ; $(MAKE) -f Makefile.lite clean) 61 -(cd libFLAC ; $(MAKE) -f Makefile.lite clean) 62 -(cd libFLAC++ ; $(MAKE) -f Makefile.lite clean) 63 -(cd metaflac ; $(MAKE) -f Makefile.lite clean) 64 -(cd plugin_common ; $(MAKE) -f Makefile.lite clean) 65 -(cd plugin_xmms ; $(MAKE) -f Makefile.lite clean) 66 -(cd share ; $(MAKE) -f Makefile.lite clean) 67 -(cd test_grabbag ; $(MAKE) -f Makefile.lite clean) 68 -(cd test_libs_common ; $(MAKE) -f Makefile.lite clean) 69 -(cd test_libFLAC ; $(MAKE) -f Makefile.lite clean) 70 -(cd test_libFLAC++ ; $(MAKE) -f Makefile.lite clean) 71 -(cd test_seeking ; $(MAKE) -f Makefile.lite clean) 72 -(cd test_streams ; $(MAKE) -f Makefile.lite clean) 73 -(cd utils/flacdiff ; $(MAKE) -f Makefile.lite clean) 74 -(cd utils/flactimer ; $(MAKE) -f Makefile.lite clean) 75 76include $(topdir)/Makefile.deps 77