2 ## This file is part of the coreboot project.
4 ## Copyright (C) 2007 coresystems GmbH
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.
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.
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
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
28 $(tobj)/lzma/lzma-compress.o: $(tsrc)/lzma/minilzma.cc
29 $(Q)printf " HOSTCXX $(subst $(obj)/,,$(@))\n"
30 $(Q)$(HOSTCXX) $(HOSTCXXFLAGS) -o $@ -c -DCOMPACT $<
32 $(tobj)/lzma/%.o: $(tsrc)/lzma/C/7zip/Compress/LZMA/%.cpp
33 $(Q)printf " HOSTCXX $(subst $(obj)/,,$(@))\n"
34 $(Q)$(HOSTCXX) $(HOSTCXXFLAGS) -o $@ -c $<
36 $(tobj)/lzma/%.o: $(tsrc)/lzma/C/7zip/Compress/LZ/%.cpp
37 $(Q)printf " HOSTCXX $(subst $(obj)/,,$(@))\n"
38 $(Q)$(HOSTCXX) $(HOSTCXXFLAGS) -o $@ -c $<
40 $(tobj)/lzma/%.o: $(tsrc)/lzma/C/7zip/Compress/RangeCoder/%.cpp
41 $(Q)printf " HOSTCXX $(subst $(obj)/,,$(@))\n"
42 $(Q)$(HOSTCXX) $(HOSTCXXFLAGS) -o $@ -c $<
44 $(tobj)/lzma/%.o: $(tsrc)/lzma/C/7zip/Decompress/%.cpp
45 $(Q)printf " HOSTCXX $(subst $(obj)/,,$(@))\n"
46 $(Q)$(HOSTCXX) $(HOSTCXXFLAGS) -o $@ -c $<
48 $(tobj)/lzma/%.o: $(tsrc)/lzma/C/7zip/Common/%.cpp
49 $(Q)printf " HOSTCXX $(subst $(obj)/,,$(@))\n"
50 $(Q)$(HOSTCXX) $(HOSTCXXFLAGS) -o $@ -c $<
52 $(tobj)/lzma/%.o: $(tsrc)/lzma/C/Common/%.cpp
53 $(Q)printf " HOSTCXX $(subst $(obj)/,,$(@))\n"
54 $(Q)$(HOSTCXX) $(HOSTCXXFLAGS) -o $@ -c $<
56 $(tobj)/lzma/%.o: $(tsrc)/lzma/%.cc
57 $(Q)printf " HOSTCXX $(subst $(obj)/,,$(@))\n"
58 $(Q)$(HOSTCXX) $(HOSTCXXFLAGS) -o $@ -c $<