2009-08-12 17:00:51 +02:00
|
|
|
|
|
|
|
ifdef POST_EVALUATION
|
|
|
|
|
|
|
|
cbfsobj :=
|
|
|
|
# commands
|
|
|
|
cbfsobj += create.o
|
|
|
|
cbfsobj += bootblock.o
|
|
|
|
cbfsobj += delete.o
|
|
|
|
cbfsobj += extract.o
|
|
|
|
cbfsobj += add.o
|
|
|
|
cbfsobj += print.o
|
|
|
|
cbfsobj += resize.o
|
|
|
|
# main tool
|
|
|
|
cbfsobj += cbfstool.o
|
|
|
|
cbfsobj += util.o
|
|
|
|
cbfsobj += fs.o
|
|
|
|
|
|
|
|
cbfsinc := cbfstool.h cbfs.h
|
|
|
|
|
|
|
|
$(obj)/util/cbfstool:
|
2009-08-25 21:38:46 +02:00
|
|
|
mkdir -p $@
|
|
|
|
mkdir -p $@/tools/lzma
|
2009-08-12 17:00:51 +02:00
|
|
|
|
|
|
|
$(obj)/util/cbfstool/%.o: $(top)/util/cbfstool/%.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
|
|
|
|
|
|
|
$(obj)/util/cbfstool/cbfstool: $(obj)/util/cbfstool $(obj)/util/cbfstool/tools/cbfs-mkpayload $(obj)/util/cbfstool/tools/cbfs-mkstage $(addprefix $(obj)/util/cbfstool/,$(cbfsobj))
|
2009-08-25 21:38:46 +02:00
|
|
|
printf " HOSTCC $(subst $(obj)/,,$(@)) (link)\n"
|
|
|
|
$(HOSTCC) -o $@ $(addprefix $(obj)/util/cbfstool/,$(cbfsobj))
|
2009-08-12 17:00:51 +02:00
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
include $(top)/util/cbfstool/tools/Makefile.inc
|
|
|
|
|