2009-08-12 17:00:51 +02:00
|
|
|
cbfsobj :=
|
2012-10-30 22:02:45 +01:00
|
|
|
cbfsobj += cbfstool.o
|
2009-09-14 15:29:27 +02:00
|
|
|
cbfsobj += common.o
|
|
|
|
cbfsobj += compress.o
|
2013-01-28 18:56:17 +01:00
|
|
|
cbfsobj += cbfs_image.o
|
2009-09-14 15:29:27 +02:00
|
|
|
cbfsobj += cbfs-mkstage.o
|
|
|
|
cbfsobj += cbfs-mkpayload.o
|
2012-12-15 00:16:21 +01:00
|
|
|
cbfsobj += fit.o
|
2012-10-30 22:02:45 +01:00
|
|
|
# LZMA
|
|
|
|
cbfsobj += lzma.o
|
|
|
|
cbfsobj += LzFind.o
|
|
|
|
cbfsobj += LzmaDec.o
|
|
|
|
cbfsobj += LzmaEnc.o
|
2009-08-12 17:00:51 +02:00
|
|
|
|
2012-10-30 22:02:45 +01:00
|
|
|
CBFSTOOLFLAGS=-D_7ZIP_ST -g
|
2009-08-12 17:00:51 +02:00
|
|
|
|
2012-10-22 10:39:24 +02:00
|
|
|
ifeq ($(shell uname -s | cut -c-7 2>/dev/null), MINGW32)
|
|
|
|
CBFSTOOLFLAGS+=-mno-ms-bitfields
|
|
|
|
endif
|
|
|
|
|
2010-04-17 00:48:57 +02:00
|
|
|
$(objutil)/cbfstool:
|
2009-08-25 21:38:46 +02:00
|
|
|
mkdir -p $@
|
2009-08-12 17:00:51 +02:00
|
|
|
|
2010-04-17 00:48:57 +02:00
|
|
|
$(objutil)/cbfstool/%.o: $(top)/util/cbfstool/%.c
|
|
|
|
printf " HOSTCC $(subst $(objutil)/,,$(@))\n"
|
2009-09-14 15:29:27 +02:00
|
|
|
$(HOSTCC) $(CBFSTOOLFLAGS) $(HOSTCFLAGS) -c -o $@ $<
|
2009-08-12 17:00:51 +02:00
|
|
|
|
2010-04-17 00:48:57 +02:00
|
|
|
$(objutil)/cbfstool/%.o: $(top)/util/cbfstool/lzma/%.cc
|
|
|
|
printf " HOSTCXX $(subst $(objutil)/,,$(@))\n"
|
2009-09-14 15:29:27 +02:00
|
|
|
$(HOSTCXX) $(CBFSTOOLFLAGS) $(HOSTCXXFLAGS) -c -o $@ $<
|
2009-08-12 17:00:51 +02:00
|
|
|
|
2012-10-30 22:02:45 +01:00
|
|
|
$(objutil)/cbfstool/%.o: $(top)/util/cbfstool/lzma/C/%.c
|
2012-12-14 08:44:59 +01:00
|
|
|
printf " HOSTCC $(subst $(objutil)/,,$(@))\n"
|
2012-10-30 22:02:45 +01:00
|
|
|
$(HOSTCC) $(CBFSTOOLFLAGS) $(HOSTCFLAGS) -c -o $@ $<
|
2009-09-14 15:29:27 +02:00
|
|
|
|
2010-04-17 00:48:57 +02:00
|
|
|
$(objutil)/cbfstool/cbfstool: $(objutil)/cbfstool $(addprefix $(objutil)/cbfstool/,$(cbfsobj))
|
|
|
|
printf " HOSTCXX $(subst $(objutil)/,,$(@)) (link)\n"
|
|
|
|
$(HOSTCXX) $(CBFSTOOLFLAGS) -o $@ $(addprefix $(objutil)/cbfstool/,$(cbfsobj))
|
2009-09-14 15:29:27 +02:00
|
|
|
|