Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 1 | |
| 2 | ifdef POST_EVALUATION |
| 3 | |
| 4 | cbfsobj := |
| 5 | # commands |
| 6 | cbfsobj += create.o |
| 7 | cbfsobj += bootblock.o |
| 8 | cbfsobj += delete.o |
| 9 | cbfsobj += extract.o |
| 10 | cbfsobj += add.o |
| 11 | cbfsobj += print.o |
| 12 | cbfsobj += resize.o |
| 13 | # main tool |
| 14 | cbfsobj += cbfstool.o |
| 15 | cbfsobj += util.o |
| 16 | cbfsobj += fs.o |
| 17 | |
| 18 | cbfsinc := cbfstool.h cbfs.h |
| 19 | |
| 20 | $(obj)/util/cbfstool: |
Patrick Georgi | 2b7418e | 2009-08-25 19:38:46 +0000 | [diff] [blame^] | 21 | mkdir -p $@ |
| 22 | mkdir -p $@/tools/lzma |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 23 | |
| 24 | $(obj)/util/cbfstool/%.o: $(top)/util/cbfstool/%.c |
Patrick Georgi | 2b7418e | 2009-08-25 19:38:46 +0000 | [diff] [blame^] | 25 | printf " HOSTCC $(subst $(obj)/,,$(@))\n" |
| 26 | $(HOSTCC) $(HOSTCFLAGS) -c -o $@ $< |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 27 | |
| 28 | $(obj)/util/cbfstool/cbfstool: $(obj)/util/cbfstool $(obj)/util/cbfstool/tools/cbfs-mkpayload $(obj)/util/cbfstool/tools/cbfs-mkstage $(addprefix $(obj)/util/cbfstool/,$(cbfsobj)) |
Patrick Georgi | 2b7418e | 2009-08-25 19:38:46 +0000 | [diff] [blame^] | 29 | printf " HOSTCC $(subst $(obj)/,,$(@)) (link)\n" |
| 30 | $(HOSTCC) -o $@ $(addprefix $(obj)/util/cbfstool/,$(cbfsobj)) |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 31 | |
| 32 | endif |
| 33 | |
| 34 | include $(top)/util/cbfstool/tools/Makefile.inc |
| 35 | |