2009-08-12 17:00:51 +02:00
|
|
|
|
|
|
|
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))
|
2009-08-25 21:38:46 +02:00
|
|
|
printf " HOSTCXX $(subst $(obj)/,,$(@)) (link)\n"
|
|
|
|
$(HOSTCXX) $(HOSTCXXFLAGS) -o $@ $^
|
2009-08-12 17:00:51 +02:00
|
|
|
|
|
|
|
$(tobj)/cbfs-mkpayload: $(tobj)/cbfs-mkpayload.o $(patsubst %,$(tobj)/%,$(COMMON))
|
2009-08-25 21:38:46 +02:00
|
|
|
printf " HOSTCXX $(subst $(obj)/,,$(@)) (link)\n"
|
|
|
|
$(HOSTCXX) $(HOSTCFLAGS) -o $@ $^
|
2009-08-12 17:00:51 +02:00
|
|
|
|
|
|
|
$(tobj)/%.o: $(tsrc)/%.c
|
2009-08-25 21:38:46 +02:00
|
|
|
printf " HOSTCC $(subst $(obj)/,,$(@))\n"
|
|
|
|
$(HOSTCC) $(HOSTCFLAGS) -c -o $@ $<
|
2009-08-12 17:00:51 +02:00
|
|
|
|
|
|
|
endif
|