buildgcc: Add option to use ccache
[coreboot.git] / util / cbfstool / lzma / Makefile
1 ##
2 ## This file is part of the coreboot project.
3 ##
4 ## Copyright (C) 2007 coresystems GmbH
5 ##
6 ## This program is free software; you can redistribute it and/or modify
7 ## it under the terms of the GNU General Public License as published by
8 ## the Free Software Foundation; either version 2 of the License, or
9 ## (at your option) any later version.
10 ##
11 ## This program is distributed in the hope that it will be useful,
12 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 ## GNU General Public License for more details.
15 ##
16 ## You should have received a copy of the GNU General Public License
17 ## along with this program; if not, write to the Free Software
18 ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
19 ##
20
21 LZMA_OBJ := lzma/LZMAEncoder.o lzma/LZInWindow.o
22 LZMA_OBJ += lzma/RangeCoderBit.o lzma/StreamUtils.o
23 LZMA_OBJ += lzma/OutBuffer.o lzma/Alloc.o
24 LZMA_OBJ += lzma/CRC.o
25 LZMA_OBJ += lzma/lzma-compress.o
26
27 $(tobj)/lzma/lzma-compress.o: $(tsrc)/lzma/minilzma.cc
28         $(CXX) $(CFLAGS) -o $@ -c -DCOMPACT $<
29
30 $(tobj)/lzma/%.o: $(tsrc)/lzma/C/7zip/Compress/LZMA/%.cpp
31         $(CXX) $(CFLAGS) -o $@ -c $<
32
33 $(tobj)/lzma/%.o: $(tsrc)/lzma/C/7zip/Compress/LZ/%.cpp
34         $(CXX) $(CFLAGS) -o $@ -c $<
35
36 $(tobj)/lzma/%.o: $(tsrc)/lzma/C/7zip/Compress/RangeCoder/%.cpp
37         $(CXX) $(CFLAGS) -o $@ -c $<
38
39 $(tobj)/lzma/%.o: $(tsrc)/lzma/C/7zip/Decompress/%.cpp
40         $(CXX) $(CFLAGS) -o $@ -c $<
41
42 $(tobj)/lzma/%.o: $(tsrc)/lzma/C/7zip/Common/%.cpp
43         $(CXX) $(CFLAGS) -o $@ -c $<
44
45 $(tobj)/lzma/%.o: $(tsrc)/lzma/C/Common/%.cpp
46         $(CXX) $(CFLAGS) -o $@ -c $<
47
48 $(tobj)/lzma/%.o: $(tsrc)/lzma/%.cc
49         $(CXX) $(CFLAGS) -o $@ -c $<
50