blob: 121080a25550c5531625b509991ba958f67af07f [file] [log] [blame]
Josh Coalsonc10f9782008-09-14 19:59:52 +00001# FLAC - Free Lossless Audio Codec
Erik de Castro Lopob1982fb2013-05-25 17:11:19 +10002# Copyright (C) 2001-2009 Josh Coalson
Erik de Castro Lopo6a5fe432016-12-05 06:35:39 +11003# Copyright (C) 2011-2016 Xiph.Org Foundation
Josh Coalsonc10f9782008-09-14 19:59:52 +00004#
5# This file is part the FLAC project. FLAC is comprised of several
Ulrich Klauercd4ddab2013-05-26 22:53:43 +02006# components distributed under different licenses. The codec libraries
Josh Coalsonc10f9782008-09-14 19:59:52 +00007# 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 Ramos9df67362014-06-23 16:24:49 -050026 $(CCC) $(CXXFLAGS) -c $< -o $@
Josh Coalsonc10f9782008-09-14 19:59:52 +000027%.debug.o %.release.o : %.cpp
Evan Ramos9df67362014-06-23 16:24:49 -050028 $(CCC) $(CXXFLAGS) -c $< -o $@
Josh Coalsonc10f9782008-09-14 19:59:52 +000029%.debug.pic.o %.release.pic.o : %.c
Evan Ramosf658ea52014-06-26 17:25:48 -050030 $(CC) $(CFLAGS) $(F_PIC) -DPIC -c $< -o $@
Josh Coalsonc10f9782008-09-14 19:59:52 +000031%.debug.pic.o %.release.pic.o : %.cc
Evan Ramosf658ea52014-06-26 17:25:48 -050032 $(CCC) $(CXXFLAGS) $(F_PIC) -DPIC -c $< -o $@
Josh Coalsonc10f9782008-09-14 19:59:52 +000033%.debug.pic.o %.release.pic.o : %.cpp
Evan Ramosf658ea52014-06-26 17:25:48 -050034 $(CCC) $(CXXFLAGS) $(F_PIC) -DPIC -c $< -o $@
Josh Coalsonc10f9782008-09-14 19:59:52 +000035%.debug.i %.release.i : %.c
36 $(CC) $(CFLAGS) -E $< -o $@
37%.debug.i %.release.i : %.cc
Evan Ramos9df67362014-06-23 16:24:49 -050038 $(CCC) $(CXXFLAGS) -E $< -o $@
Josh Coalsonc10f9782008-09-14 19:59:52 +000039%.debug.i %.release.i : %.cpp
Evan Ramos9df67362014-06-23 16:24:49 -050040 $(CCC) $(CXXFLAGS) -E $< -o $@
Josh Coalsonc10f9782008-09-14 19:59:52 +000041
Josh Coalsonc10f9782008-09-14 19:59:52 +000042%.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 $@