coreboot-kgpe-d16/util/cbfstool/tools/Makefile.inc
Patrick Georgi 0588d19abe Kconfig!
Works on Kontron, qemu, and serengeti. 

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>

tested on abuild only. 

Acked-by: Ronald G. Minnich <rminnich@gmail.com>




git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4534 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2009-08-12 15:00:51 +00:00

23 lines
665 B
Makefile

tobj ?= $(obj)/util/cbfstool/tools
tsrc ?= $(top)/util/cbfstool/tools
include $(tsrc)/lzma/Makefile.inc
COMMON = common.o compress.o $(LZMA_OBJ)
ifdef POST_EVALUATION
$(tobj)/cbfs-mkstage: $(tobj)/cbfs-mkstage.o $(patsubst %,$(tobj)/%,$(COMMON))
$(Q)printf " HOSTCXX $(subst $(obj)/,,$(@)) (link)\n"
$(Q)$(HOSTCXX) $(HOSTCXXFLAGS) -o $@ $^
$(tobj)/cbfs-mkpayload: $(tobj)/cbfs-mkpayload.o $(patsubst %,$(tobj)/%,$(COMMON))
$(Q)printf " HOSTCXX $(subst $(obj)/,,$(@)) (link)\n"
$(Q)$(HOSTCXX) $(HOSTCFLAGS) -o $@ $^
$(tobj)/%.o: $(tsrc)/%.c
$(Q)printf " HOSTCC $(subst $(obj)/,,$(@))\n"
$(Q)$(HOSTCC) $(HOSTCFLAGS) -c -o $@ $<
endif