~ubuntu-branches/ubuntu/feisty/flac/feisty

« back to all changes in this revision

Viewing changes to Makefile.lite

  • Committer: Bazaar Package Importer
  • Author(s): Matt Zimmerman
  • Date: 2004-04-16 15:14:31 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040416151431-eyloggqxpwbwpogz
Tags: 1.1.0-11
Ensure that libFLAC is linked with -lm on all architectures, and
regardless of whether nasm is present

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#  FLAC - Free Lossless Audio Codec
2
 
#  Copyright (C) 2001  Josh Coalson
 
2
#  Copyright (C) 2001,2002,2003  Josh Coalson
3
3
#
4
4
#  This program is part of FLAC; you can redistribute it and/or
5
5
#  modify it under the terms of the GNU General Public License
22
22
#
23
23
# all     : build all libraries and programs in the default configuration (currently 'release')
24
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
25
26
# release : build all libraries and programs in release mode
26
27
# test    : run the unit and stream tests
27
28
# clean   : remove all non-distro files
28
29
#
29
30
 
30
 
all: libFLAC flac metaflac test_streams test_unit
 
31
topdir = .
 
32
 
 
33
.PHONY: all doc src libFLAC libFLAC++ libOggFLAC libOggFLAC++ share plugin_common plugin_xmms flac metaflac test_grabbag test_libFLAC test_libFLAC++ test_libOggFLAC test_libOggFLAC++ test_streams
 
34
all: doc src
31
35
 
32
36
DEFAULT_CONFIG = release
33
37
 
34
38
CONFIG = $(DEFAULT_CONFIG)
35
39
 
36
40
debug   : CONFIG = debug
 
41
valgrind: CONFIG = valgrind
37
42
release : CONFIG = release
38
43
 
39
44
debug   : all
 
45
valgrind: all
40
46
release : all
41
47
 
 
48
doc:
 
49
        (cd $@ ; $(MAKE) -f Makefile.lite)
 
50
 
 
51
src:
 
52
        (cd $@ ; $(MAKE) -f Makefile.lite $(CONFIG))
 
53
 
42
54
libFLAC:
43
55
        (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
44
56
 
45
 
flac: libFLAC
46
 
        (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
47
 
 
48
 
metaflac:
49
 
        (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
50
 
 
51
 
plugin_xmms: libFLAC
 
57
libFLAC++: libFLAC
 
58
        (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
 
59
 
 
60
libOggFLAC: libFLAC
 
61
        (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
 
62
 
 
63
libOggFLAC++: libFLAC
 
64
        (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
 
65
 
 
66
share: libFLAC
 
67
        (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
 
68
 
 
69
flac: libFLAC libOggFLAC share
 
70
        (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
 
71
 
 
72
metaflac: libFLAC share
 
73
        (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
 
74
 
 
75
plugin_common: libFLAC
 
76
        (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
 
77
 
 
78
plugin_xmms: libFLAC plugin_common
52
79
        (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
53
80
 
54
81
test_streams: libFLAC
55
82
        (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
56
83
 
57
 
test_unit: libFLAC
 
84
test_grabbag: share
 
85
        (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
 
86
 
 
87
test_libFLAC: libFLAC
 
88
        (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
 
89
 
 
90
test_libFLAC++: libFLAC libFLAC++
 
91
        (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
 
92
 
 
93
test_libOggFLAC: libFLAC libOggFLAC
 
94
        (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
 
95
 
 
96
test_libOggFLAC++: libFLAC libOggFLAC libOggFLAC++
58
97
        (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
59
98
 
60
99
test: debug
61
 
        (cd test ; $(MAKE) -f Makefile.lite)
 
100
        (cd test ; $(MAKE) -f Makefile.lite debug)
 
101
 
 
102
testv: valgrind
 
103
        (cd test ; $(MAKE) -f Makefile.lite valgrind)
 
104
 
 
105
testr: release
 
106
        (cd test ; $(MAKE) -f Makefile.lite release)
62
107
 
63
108
clean:
64
 
        -(cd src/libFLAC ; $(MAKE) -f Makefile.lite clean)
65
 
        -(cd src/flac ; $(MAKE) -f Makefile.lite clean)
66
 
        -(cd src/metaflac ; $(MAKE) -f Makefile.lite clean)
67
 
        -(cd src/plugin_xmms ; $(MAKE) -f Makefile.lite clean)
68
 
        -(cd src/test_streams ; $(MAKE) -f Makefile.lite clean)
69
 
        -(cd src/test_unit ; $(MAKE) -f Makefile.lite clean)
 
109
        -(cd doc ; $(MAKE) -f Makefile.lite clean)
 
110
        -(cd src ; $(MAKE) -f Makefile.lite clean)
70
111
        -(cd test ; $(MAKE) -f Makefile.lite clean)