summaryrefslogtreecommitdiff
path: root/payloads/bayou/util/pbuilder/lzma/Makefile
blob: 5004fd8f98e36b674e5e04ce5428f33be70484bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
##
## This file is part of the coreboot project.
##
## Copyright (C) 2007 coresystems GmbH
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.
##

LZMA_OBJ := $(obj)/util/lzma/LZMAEncoder.o $(obj)/util/lzma/LZInWindow.o
LZMA_OBJ += $(obj)/util/lzma/RangeCoderBit.o $(obj)/util/lzma/StreamUtils.o
LZMA_OBJ += $(obj)/util/lzma/OutBuffer.o $(obj)/util/lzma/Alloc.o
LZMA_OBJ += $(obj)/util/lzma/CRC.o

$(obj)/util/lzma/lzma: $(obj)/util/lzma/ $(LZMA_OBJ) $(obj)/util/lzma/minilzma.o
	$(Q)$(HOSTCXX) $(HOSTCXXFLAGS) -o $@ $(LZMA_OBJ) $(obj)/util/lzma/minilzma.o

$(obj)/util/lzma/lzma-compress.o: $(src)/util/lzma/minilzma.cc
	$(Q)$(HOSTCXX) $(HOSTCXXFLAGS) -o $@ -c -DCOMPACT $<

$(obj)/util/lzma/:
	$(Q)printf "  BUILD   LZMA\n"
	$(Q)mkdir -p $(obj)/util/lzma/

$(obj)/util/lzma/%.o: $(src)/util/lzma/C/7zip/Compress/LZMA/%.cpp
	$(Q)printf "  HOSTCXX $(subst $(shell pwd)/,,$(@))\n"
	$(Q)$(HOSTCXX) $(HOSTCXXFLAGS) -o $@ -c $<

$(obj)/util/lzma/%.o: $(src)/util/lzma/C/7zip/Compress/LZ/%.cpp
	$(Q)printf "  HOSTCXX $(subst $(shell pwd)/,,$(@))\n"
	$(Q)$(HOSTCXX) $(HOSTCXXFLAGS) -o $@ -c $<

$(obj)/util/lzma/%.o: $(src)/util/lzma/C/7zip/Compress/RangeCoder/%.cpp
	$(Q)printf "  HOSTCXX $(subst $(shell pwd)/,,$(@))\n"
	$(Q)$(HOSTCXX) $(HOSTCXXFLAGS) -o $@ -c $<

$(obj)/util/lzma/%.o: $(src)/util/lzma/C/7zip/Decompress/%.cpp
	$(Q)printf "  HOSTCXX $(subst $(shell pwd)/,,$(@))\n"
	$(Q)$(HOSTCXX) $(HOSTCXXFLAGS) -o $@ -c $<

$(obj)/util/lzma/%.o: $(src)/util/lzma/C/7zip/Common/%.cpp
	$(Q)printf "  HOSTCXX $(subst $(shell pwd)/,,$(@))\n"
	$(Q)$(HOSTCXX) $(HOSTCXXFLAGS) -o $@ -c $<

$(obj)/util/lzma/%.o: $(src)/util/lzma/C/Common/%.cpp
	$(Q)printf "  HOSTCXX $(subst $(shell pwd)/,,$(@))\n"
	$(Q)$(HOSTCXX) $(HOSTCXXFLAGS) -o $@ -c $<

$(obj)/util/lzma/%.o: $(src)/util/lzma/%.cc
	$(Q)printf "  HOSTCXX $(subst $(shell pwd)/,,$(@))\n"
	$(Q)$(HOSTCXX) $(HOSTCXXFLAGS) -o $@ -c $<