Enable -Werror for romcc
[coreboot.git] / util / cbfstool / lzma / Makefile.inc
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 ifdef POST_EVALUATION
28 $(tobj)/lzma/lzma-compress.o: $(tsrc)/lzma/minilzma.cc
29         printf "    HOSTCXX    $(subst $(obj)/,,$(@))\n"
30         $(HOSTCXX) $(HOSTCXXFLAGS) -o $@ -c -DCOMPACT $<
31
32 $(tobj)/lzma/%.o: $(tsrc)/lzma/C/7zip/Compress/LZMA/%.cpp
33         printf "    HOSTCXX    $(subst $(obj)/,,$(@))\n"
34         $(HOSTCXX) $(HOSTCXXFLAGS) -o $@ -c $<
35
36 $(tobj)/lzma/%.o: $(tsrc)/lzma/C/7zip/Compress/LZ/%.cpp
37         printf "    HOSTCXX    $(subst $(obj)/,,$(@))\n"
38         $(HOSTCXX) $(HOSTCXXFLAGS) -o $@ -c $<
39
40 $(tobj)/lzma/%.o: $(tsrc)/lzma/C/7zip/Compress/RangeCoder/%.cpp
41         printf "    HOSTCXX    $(subst $(obj)/,,$(@))\n"
42         $(HOSTCXX) $(HOSTCXXFLAGS) -o $@ -c $<
43
44 $(tobj)/lzma/%.o: $(tsrc)/lzma/C/7zip/Decompress/%.cpp
45         printf "    HOSTCXX    $(subst $(obj)/,,$(@))\n"
46         $(HOSTCXX) $(HOSTCXXFLAGS) -o $@ -c $<
47
48 $(tobj)/lzma/%.o: $(tsrc)/lzma/C/7zip/Common/%.cpp
49         printf "    HOSTCXX    $(subst $(obj)/,,$(@))\n"
50         $(HOSTCXX) $(HOSTCXXFLAGS) -o $@ -c $<
51
52 $(tobj)/lzma/%.o: $(tsrc)/lzma/C/Common/%.cpp
53         printf "    HOSTCXX    $(subst $(obj)/,,$(@))\n"
54         $(HOSTCXX) $(HOSTCXXFLAGS) -o $@ -c $<
55
56 $(tobj)/lzma/%.o: $(tsrc)/lzma/%.cc
57         printf "    HOSTCXX    $(subst $(obj)/,,$(@))\n"
58         $(HOSTCXX) $(HOSTCXXFLAGS) -o $@ -c $<
59
60 endif