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 := $(obj)/util/lzma/LZMAEncoder.o $(obj)/util/lzma/LZInWindow.o
22 LZMA_OBJ += $(obj)/util/lzma/RangeCoderBit.o $(obj)/util/lzma/StreamUtils.o
23 LZMA_OBJ += $(obj)/util/lzma/OutBuffer.o $(obj)/util/lzma/Alloc.o
24 LZMA_OBJ += $(obj)/util/lzma/CRC.o
26 $(obj)/util/lzma/lzma: $(obj)/util/lzma/ $(LZMA_OBJ) $(obj)/util/lzma/minilzma.o
27 $(Q)$(HOSTCXX) $(HOSTCXXFLAGS) -o $@ $(LZMA_OBJ) $(obj)/util/lzma/minilzma.o
29 $(obj)/util/lzma/lzma-compress.o: $(src)/util/lzma/minilzma.cc
30 $(Q)$(HOSTCXX) $(HOSTCXXFLAGS) -o $@ -c -DCOMPACT $<
33 $(Q)printf " BUILD LZMA\n"
34 $(Q)mkdir -p $(obj)/util/lzma/
36 $(obj)/util/lzma/%.o: $(src)/util/lzma/C/7zip/Compress/LZMA/%.cpp
37 $(Q)printf " HOSTCXX $(subst $(shell pwd)/,,$(@))\n"
38 $(Q)$(HOSTCXX) $(HOSTCXXFLAGS) -o $@ -c $<
40 $(obj)/util/lzma/%.o: $(src)/util/lzma/C/7zip/Compress/LZ/%.cpp
41 $(Q)printf " HOSTCXX $(subst $(shell pwd)/,,$(@))\n"
42 $(Q)$(HOSTCXX) $(HOSTCXXFLAGS) -o $@ -c $<
44 $(obj)/util/lzma/%.o: $(src)/util/lzma/C/7zip/Compress/RangeCoder/%.cpp
45 $(Q)printf " HOSTCXX $(subst $(shell pwd)/,,$(@))\n"
46 $(Q)$(HOSTCXX) $(HOSTCXXFLAGS) -o $@ -c $<
48 $(obj)/util/lzma/%.o: $(src)/util/lzma/C/7zip/Decompress/%.cpp
49 $(Q)printf " HOSTCXX $(subst $(shell pwd)/,,$(@))\n"
50 $(Q)$(HOSTCXX) $(HOSTCXXFLAGS) -o $@ -c $<
52 $(obj)/util/lzma/%.o: $(src)/util/lzma/C/7zip/Common/%.cpp
53 $(Q)printf " HOSTCXX $(subst $(shell pwd)/,,$(@))\n"
54 $(Q)$(HOSTCXX) $(HOSTCXXFLAGS) -o $@ -c $<
56 $(obj)/util/lzma/%.o: $(src)/util/lzma/C/Common/%.cpp
57 $(Q)printf " HOSTCXX $(subst $(shell pwd)/,,$(@))\n"
58 $(Q)$(HOSTCXX) $(HOSTCXXFLAGS) -o $@ -c $<
60 $(obj)/util/lzma/%.o: $(src)/util/lzma/%.cc
61 $(Q)printf " HOSTCXX $(subst $(shell pwd)/,,$(@))\n"
62 $(Q)$(HOSTCXX) $(HOSTCXXFLAGS) -o $@ -c $<