coreboot-v3/util/lzma/Makefile
<<
>>
Prefs
   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
  21LZMA_OBJ := $(obj)/util/lzma/LZMAEncoder.o $(obj)/util/lzma/LZInWindow.o
  22LZMA_OBJ += $(obj)/util/lzma/RangeCoderBit.o $(obj)/util/lzma/StreamUtils.o
  23LZMA_OBJ += $(obj)/util/lzma/OutBuffer.o $(obj)/util/lzma/Alloc.o
  24LZMA_OBJ += $(obj)/util/lzma/CRC.o
  25
  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
  28
  29$(obj)/util/lzma/lzma-compress.o: $(src)/util/lzma/minilzma.cc
  30        $(Q)$(HOSTCXX) $(HOSTCXXFLAGS) -o $@ -c -DCOMPACT $<
  31
  32$(obj)/util/lzma/:
  33        $(Q)printf "  BUILD   LZMA\n"
  34        $(Q)mkdir -p $(obj)/util/lzma/
  35
  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 $<
  39
  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 $<
  43
  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 $<
  47
  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 $<
  51
  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 $<
  55
  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 $<
  59
  60$(obj)/util/lzma/%.o: $(src)/util/lzma/%.cc
  61        $(Q)printf "  HOSTCXX $(subst $(shell pwd)/,,$(@))\n"
  62        $(Q)$(HOSTCXX) $(HOSTCXXFLAGS) -o $@ -c $<
  63
  64
lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and operations services since 1995.