Josh Coalson | c10f978 | 2008-09-14 19:59:52 +0000 | [diff] [blame] | 1 | # FLAC - Free Lossless Audio Codec |
Erik de Castro Lopo | b1982fb | 2013-05-25 17:11:19 +1000 | [diff] [blame] | 2 | # Copyright (C) 2001-2009 Josh Coalson |
Erik de Castro Lopo | 1437391 | 2014-11-24 22:07:15 +1100 | [diff] [blame] | 3 | # Copyright (C) 2011-2014 Xiph.Org Foundation |
Josh Coalson | c10f978 | 2008-09-14 19:59:52 +0000 | [diff] [blame] | 4 | # |
| 5 | # This file is part the FLAC project. FLAC is comprised of several |
Ulrich Klauer | cd4ddab | 2013-05-26 22:53:43 +0200 | [diff] [blame] | 6 | # components distributed under different licenses. The codec libraries |
Josh Coalson | c10f978 | 2008-09-14 19:59:52 +0000 | [diff] [blame] | 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 | |
| 19 | # |
| 20 | # GNU makefile fragment for building a library |
| 21 | # |
| 22 | |
| 23 | %.debug.o %.release.o : %.c |
| 24 | $(CC) $(CFLAGS) -c $< -o $@ |
| 25 | %.debug.o %.release.o : %.cc |
Evan Ramos | 9df6736 | 2014-06-23 16:24:49 -0500 | [diff] [blame] | 26 | $(CCC) $(CXXFLAGS) -c $< -o $@ |
Josh Coalson | c10f978 | 2008-09-14 19:59:52 +0000 | [diff] [blame] | 27 | %.debug.o %.release.o : %.cpp |
Evan Ramos | 9df6736 | 2014-06-23 16:24:49 -0500 | [diff] [blame] | 28 | $(CCC) $(CXXFLAGS) -c $< -o $@ |
Josh Coalson | c10f978 | 2008-09-14 19:59:52 +0000 | [diff] [blame] | 29 | %.debug.pic.o %.release.pic.o : %.c |
Evan Ramos | f658ea5 | 2014-06-26 17:25:48 -0500 | [diff] [blame] | 30 | $(CC) $(CFLAGS) $(F_PIC) -DPIC -c $< -o $@ |
Josh Coalson | c10f978 | 2008-09-14 19:59:52 +0000 | [diff] [blame] | 31 | %.debug.pic.o %.release.pic.o : %.cc |
Evan Ramos | f658ea5 | 2014-06-26 17:25:48 -0500 | [diff] [blame] | 32 | $(CCC) $(CXXFLAGS) $(F_PIC) -DPIC -c $< -o $@ |
Josh Coalson | c10f978 | 2008-09-14 19:59:52 +0000 | [diff] [blame] | 33 | %.debug.pic.o %.release.pic.o : %.cpp |
Evan Ramos | f658ea5 | 2014-06-26 17:25:48 -0500 | [diff] [blame] | 34 | $(CCC) $(CXXFLAGS) $(F_PIC) -DPIC -c $< -o $@ |
Josh Coalson | c10f978 | 2008-09-14 19:59:52 +0000 | [diff] [blame] | 35 | %.debug.i %.release.i : %.c |
| 36 | $(CC) $(CFLAGS) -E $< -o $@ |
| 37 | %.debug.i %.release.i : %.cc |
Evan Ramos | 9df6736 | 2014-06-23 16:24:49 -0500 | [diff] [blame] | 38 | $(CCC) $(CXXFLAGS) -E $< -o $@ |
Josh Coalson | c10f978 | 2008-09-14 19:59:52 +0000 | [diff] [blame] | 39 | %.debug.i %.release.i : %.cpp |
Evan Ramos | 9df6736 | 2014-06-23 16:24:49 -0500 | [diff] [blame] | 40 | $(CCC) $(CXXFLAGS) -E $< -o $@ |
Josh Coalson | c10f978 | 2008-09-14 19:59:52 +0000 | [diff] [blame] | 41 | |
Josh Coalson | c10f978 | 2008-09-14 19:59:52 +0000 | [diff] [blame] | 42 | %.debug.o : %.nasm |
| 43 | $(NASM) -f elf -d OBJ_FORMAT_elf -i ia32/ -g $< -o $@ |
| 44 | %.release.o : %.nasm |
| 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 $@ |