Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 1 | cbfsobj := |
Patrick Georgi | b7b56dd8 | 2009-09-14 13:29:27 +0000 | [diff] [blame] | 2 | cbfsobj += common.o |
| 3 | cbfsobj += compress.o |
| 4 | cbfsobj += minilzma.o |
| 5 | cbfsobj += LZMAEncoder.o |
| 6 | cbfsobj += LZInWindow.o |
| 7 | cbfsobj += RangeCoderBit.o |
| 8 | cbfsobj += StreamUtils.o |
| 9 | cbfsobj += OutBuffer.o |
| 10 | cbfsobj += Alloc.o |
| 11 | cbfsobj += CRC.o |
| 12 | cbfsobj += cbfs-mkstage.o |
| 13 | cbfsobj += cbfs-mkpayload.o |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 14 | cbfsobj += cbfstool.o |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 15 | |
Patrick Georgi | ab13458 | 2009-09-16 08:19:07 +0000 | [diff] [blame] | 16 | CBFSTOOLFLAGS=-DCOMPACT -g |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 17 | |
Patrick Georgi | a2acbc7 | 2010-04-16 22:48:57 +0000 | [diff] [blame] | 18 | $(objutil)/cbfstool: |
Patrick Georgi | 2b7418e | 2009-08-25 19:38:46 +0000 | [diff] [blame] | 19 | mkdir -p $@ |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 20 | |
Patrick Georgi | a2acbc7 | 2010-04-16 22:48:57 +0000 | [diff] [blame] | 21 | $(objutil)/cbfstool/%.o: $(top)/util/cbfstool/%.c |
| 22 | printf " HOSTCC $(subst $(objutil)/,,$(@))\n" |
Patrick Georgi | b7b56dd8 | 2009-09-14 13:29:27 +0000 | [diff] [blame] | 23 | $(HOSTCC) $(CBFSTOOLFLAGS) $(HOSTCFLAGS) -c -o $@ $< |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 24 | |
Patrick Georgi | a2acbc7 | 2010-04-16 22:48:57 +0000 | [diff] [blame] | 25 | $(objutil)/cbfstool/%.o: $(top)/util/cbfstool/lzma/%.cc |
| 26 | printf " HOSTCXX $(subst $(objutil)/,,$(@))\n" |
Patrick Georgi | b7b56dd8 | 2009-09-14 13:29:27 +0000 | [diff] [blame] | 27 | $(HOSTCXX) $(CBFSTOOLFLAGS) $(HOSTCXXFLAGS) -c -o $@ $< |
| 28 | |
Patrick Georgi | a2acbc7 | 2010-04-16 22:48:57 +0000 | [diff] [blame] | 29 | $(objutil)/cbfstool/%.o: $(top)/util/cbfstool/lzma/C/7zip/Compress/LZMA/%.cpp |
| 30 | printf " HOSTCXX $(subst $(objutil)/,,$(@))\n" |
Patrick Georgi | b7b56dd8 | 2009-09-14 13:29:27 +0000 | [diff] [blame] | 31 | $(HOSTCXX) $(CBFSTOOLFLAGS) $(HOSTCXXFLAGS) -c -o $@ $< |
| 32 | |
Patrick Georgi | a2acbc7 | 2010-04-16 22:48:57 +0000 | [diff] [blame] | 33 | $(objutil)/cbfstool/%.o: $(top)/util/cbfstool/lzma/C/7zip/Compress/LZ/%.cpp |
| 34 | printf " HOSTCXX $(subst $(objutil)/,,$(@))\n" |
Patrick Georgi | b7b56dd8 | 2009-09-14 13:29:27 +0000 | [diff] [blame] | 35 | $(HOSTCXX) $(CBFSTOOLFLAGS) $(HOSTCXXFLAGS) -c -o $@ $< |
| 36 | |
Patrick Georgi | a2acbc7 | 2010-04-16 22:48:57 +0000 | [diff] [blame] | 37 | $(objutil)/cbfstool/%.o: $(top)/util/cbfstool/lzma/C/7zip/Compress/RangeCoder/%.cpp |
| 38 | printf " HOSTCXX $(subst $(objutil)/,,$(@))\n" |
Patrick Georgi | b7b56dd8 | 2009-09-14 13:29:27 +0000 | [diff] [blame] | 39 | $(HOSTCXX) $(CBFSTOOLFLAGS) $(HOSTCXXFLAGS) -c -o $@ $< |
| 40 | |
Patrick Georgi | a2acbc7 | 2010-04-16 22:48:57 +0000 | [diff] [blame] | 41 | $(objutil)/cbfstool/%.o: $(top)/util/cbfstool/lzma/C/7zip/Common/%.cpp |
| 42 | printf " HOSTCXX $(subst $(objutil)/,,$(@))\n" |
Patrick Georgi | b7b56dd8 | 2009-09-14 13:29:27 +0000 | [diff] [blame] | 43 | $(HOSTCXX) $(CBFSTOOLFLAGS) $(HOSTCXXFLAGS) -c -o $@ $< |
| 44 | |
Patrick Georgi | a2acbc7 | 2010-04-16 22:48:57 +0000 | [diff] [blame] | 45 | $(objutil)/cbfstool/%.o: $(top)/util/cbfstool/lzma/C/Common/%.cpp |
| 46 | printf " HOSTCXX $(subst $(objutil)/,,$(@))\n" |
Patrick Georgi | b7b56dd8 | 2009-09-14 13:29:27 +0000 | [diff] [blame] | 47 | $(HOSTCXX) $(CBFSTOOLFLAGS) $(HOSTCXXFLAGS) -c -o $@ $< |
| 48 | |
Patrick Georgi | a2acbc7 | 2010-04-16 22:48:57 +0000 | [diff] [blame] | 49 | $(objutil)/cbfstool/cbfstool: $(objutil)/cbfstool $(addprefix $(objutil)/cbfstool/,$(cbfsobj)) |
| 50 | printf " HOSTCXX $(subst $(objutil)/,,$(@)) (link)\n" |
| 51 | $(HOSTCXX) $(CBFSTOOLFLAGS) -o $@ $(addprefix $(objutil)/cbfstool/,$(cbfsobj)) |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 52 | |