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) $(CFLAGS) -c $< -o $@
27 %.debug.o %.release.o : %.cpp
28 $(CCC) $(CFLAGS) -c $< -o $@
29 %.debug.pic.o %.release.pic.o : %.c
30 $(CC) $(CFLAGS) -fPIC -DPIC -c $< -o $@
31 %.debug.pic.o %.release.pic.o : %.cc
32 $(CCC) $(CFLAGS) -fPIC -DPIC -c $< -o $@
33 %.debug.pic.o %.release.pic.o : %.cpp
34 $(CCC) $(CFLAGS) -fPIC -DPIC -c $< -o $@
35 %.debug.i %.release.i : %.c
36 $(CC) $(CFLAGS) -E $< -o $@
37 %.debug.i %.release.i : %.cc
38 $(CCC) $(CFLAGS) -E $< -o $@
39 %.debug.i %.release.i : %.cpp
40 $(CCC) $(CFLAGS) -E $< -o $@
42 %.debug.o %.release.o : %.s
44 #$(CC) -c -arch $(PROC) -Wall -force_cpusubtype_ALL $< -o $@
45 $(AS) -arch $(PROC) -force_cpusubtype_ALL $< -o $@
49 %.debug.pic.o %.release.pic.o : %.s
51 #$(CC) -c -arch $(PROC) -Wall -force_cpusubtype_ALL $< -o $@
52 $(AS) -arch $(PROC) -force_cpusubtype_ALL $< -o $@
58 $(NASM) -f elf -d OBJ_FORMAT_elf -i ia32/ -g $< -o $@
60 $(NASM) -f elf -d OBJ_FORMAT_elf -i ia32/ $< -o $@
61 %.debug.pic.o : %.nasm
62 $(NASM) -f elf -d OBJ_FORMAT_elf -i ia32/ -g $< -o $@
63 %.release.pic.o : %.nasm
64 $(NASM) -f elf -d OBJ_FORMAT_elf -i ia32/ $< -o $@