1 # FLAC - Free Lossless Audio Codec
2 # Copyright (C) 2001-2009 Josh Coalson
3 # Copyright (C) 2011-2013 Xiph.Org Foundation
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
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
20 # GNU makefile fragment for building a library
23 %.debug.o
%.release.o
: %.c
24 $(CC
) $(CFLAGS
) -c
$< -o
$@
25 %.debug.o
%.release.o
: %.
cc
26 $(CCC
) $(CXXFLAGS
) -c
$< -o
$@
27 %.debug.o
%.release.o
: %.
cpp
28 $(CCC
) $(CXXFLAGS
) -c
$< -o
$@
29 %.debug.pic.o
%.release.pic.o
: %.c
30 $(CC
) $(CFLAGS
) $(F_PIC
) -DPIC
-c
$< -o
$@
31 %.debug.pic.o
%.release.pic.o
: %.
cc
32 $(CCC
) $(CXXFLAGS
) $(F_PIC
) -DPIC
-c
$< -o
$@
33 %.debug.pic.o
%.release.pic.o
: %.
cpp
34 $(CCC
) $(CXXFLAGS
) $(F_PIC
) -DPIC
-c
$< -o
$@
35 %.debug.i
%.release.i
: %.c
36 $(CC
) $(CFLAGS
) -E
$< -o
$@
37 %.debug.i
%.release.i
: %.
cc
38 $(CCC
) $(CXXFLAGS
) -E
$< -o
$@
39 %.debug.i
%.release.i
: %.
cpp
40 $(CCC
) $(CXXFLAGS
) -E
$< -o
$@
43 $(NASM
) -f elf
-d OBJ_FORMAT_elf
-i ia32
/ -g
$< -o
$@
45 $(NASM
) -f elf
-d OBJ_FORMAT_elf
-i ia32
/ $< -o
$@
46 %.debug.pic.o
: %.nasm
47 $(NASM
) -f elf
-d OBJ_FORMAT_elf
-i ia32
/ -g
$< -o
$@
48 %.release.pic.o
: %.nasm
49 $(NASM
) -f elf
-d OBJ_FORMAT_elf
-i ia32
/ $< -o
$@