blob: 729167b447b2f37e1a8b0dcd80f825a9f840c8a7 [file] [log] [blame]
Josh Coalson6b05bc52001-06-08 00:13:21 +00001# FLAC - Free Lossless Audio Codec
Josh Coalson1152f9f2002-01-26 18:05:12 +00002# Copyright (C) 2001,2002 Josh Coalson
Josh Coalson6b05bc52001-06-08 00:13:21 +00003#
4# This program is part of FLAC; you can redistribute it and/or
5# modify it under the terms of the GNU General Public License
6# as published by the Free Software Foundation; either version 2
7# of the License, or (at your option) any later version.
8#
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
15# along with this program; if not, write to the Free Software
16# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17
Josh Coalsonbb7f6b92000-12-10 04:09:52 +000018#
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# release : build all libraries and programs in release mode
26# test : run the unit and stream tests
27# clean : remove all non-distro files
28#
29
Josh Coalson57ba6f42002-06-07 05:27:37 +000030all: libFLAC libFLAC++ share flac metaflac test_libFLAC test_libFLAC++ test_streams
Josh Coalsonbb7f6b92000-12-10 04:09:52 +000031
32DEFAULT_CONFIG = release
33
34CONFIG = $(DEFAULT_CONFIG)
35
36debug : CONFIG = debug
37release : CONFIG = release
38
39debug : all
40release : all
41
42libFLAC:
Josh Coalson0cf199f2001-01-19 22:34:26 +000043 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
Josh Coalsonbb7f6b92000-12-10 04:09:52 +000044
Josh Coalson57ba6f42002-06-07 05:27:37 +000045libFLAC++:
Josh Coalsonaae225a2002-05-17 06:07:26 +000046 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
47
48share:
49 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
50
Josh Coalsonbb7f6b92000-12-10 04:09:52 +000051flac: libFLAC
Josh Coalson0cf199f2001-01-19 22:34:26 +000052 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
Josh Coalsonbb7f6b92000-12-10 04:09:52 +000053
Josh Coalson57ba6f42002-06-07 05:27:37 +000054metaflac: libFLAC share
Josh Coalson74766922001-02-23 23:15:00 +000055 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
56
Josh Coalson614ba672000-12-22 22:49:09 +000057plugin_xmms: libFLAC
Josh Coalson0cf199f2001-01-19 22:34:26 +000058 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
Josh Coalson614ba672000-12-22 22:49:09 +000059
Josh Coalsonbb7f6b92000-12-10 04:09:52 +000060test_streams: libFLAC
Josh Coalson0cf199f2001-01-19 22:34:26 +000061 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
Josh Coalsonbb7f6b92000-12-10 04:09:52 +000062
Josh Coalson57ba6f42002-06-07 05:27:37 +000063test_libFLAC: libFLAC
64 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
65
66test_libFLAC++: libFLAC libFLAC++
Josh Coalson0cf199f2001-01-19 22:34:26 +000067 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
Josh Coalsonbb7f6b92000-12-10 04:09:52 +000068
69test: debug
Josh Coalson0cf199f2001-01-19 22:34:26 +000070 (cd test ; $(MAKE) -f Makefile.lite)
Josh Coalsonbb7f6b92000-12-10 04:09:52 +000071
72clean:
Josh Coalson0cf199f2001-01-19 22:34:26 +000073 -(cd src/libFLAC ; $(MAKE) -f Makefile.lite clean)
Josh Coalsonaae225a2002-05-17 06:07:26 +000074 -(cd src/libFLAC++ ; $(MAKE) -f Makefile.lite clean)
75 -(cd src/share ; $(MAKE) -f Makefile.lite clean)
Josh Coalson0cf199f2001-01-19 22:34:26 +000076 -(cd src/flac ; $(MAKE) -f Makefile.lite clean)
Josh Coalson74766922001-02-23 23:15:00 +000077 -(cd src/metaflac ; $(MAKE) -f Makefile.lite clean)
Josh Coalson0cf199f2001-01-19 22:34:26 +000078 -(cd src/plugin_xmms ; $(MAKE) -f Makefile.lite clean)
Josh Coalson57ba6f42002-06-07 05:27:37 +000079 -(cd src/test_libFLAC ; $(MAKE) -f Makefile.lite clean)
80 -(cd src/test_libFLAC++ ; $(MAKE) -f Makefile.lite clean)
Josh Coalson0cf199f2001-01-19 22:34:26 +000081 -(cd src/test_streams ; $(MAKE) -f Makefile.lite clean)
Josh Coalson0cf199f2001-01-19 22:34:26 +000082 -(cd test ; $(MAKE) -f Makefile.lite clean)