diff options
Diffstat (limited to 'util/cbfstool/tools/Makefile')
-rw-r--r-- | util/cbfstool/tools/Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/util/cbfstool/tools/Makefile b/util/cbfstool/tools/Makefile new file mode 100644 index 0000000000..bcecf46636 --- /dev/null +++ b/util/cbfstool/tools/Makefile @@ -0,0 +1,24 @@ +tobj ?= $(shell pwd) +tsrc ?= $(shell pwd) + +TARGETS += $(tobj)/rom-mkstage $(tobj)/rom-mkpayload + +tools: $(tobj)/rom-mkstage $(tobj)/rom-mkpayload + +include $(tsrc)/lzma/Makefile + +COMMON = common.o compress.o $(LZMA_OBJ) + +$(tobj)/rom-mkstage: $(tobj)/rom-mkstage.o $(patsubst %,$(tobj)/%,$(COMMON)) + $(CXX) $(CFLAGS) -o $@ $^ + +$(tobj)/rom-mkpayload: $(tobj)/rom-mkpayload.o $(patsubst %,$(tobj)/%,$(COMMON)) + $(CXX) $(CFLAGS) -o $@ $^ + +$(tobj)/%.o: %.c + $(CC) $(CFLAGS) -c -o $@ $< + +tools-clean: + rm -f $(tobj)/rom-mkpayload.o $(tobj)/rom-mkstage.o $(patsubst %,$(tobj)/%,$(COMMON)) + rm -f $(tobj)/rom-mkpayload $(tobj)/rom-mkstage + |