From 1d862ded11d4a2ca42d3d0aff4ea947dd28bcb68 Mon Sep 17 00:00:00 2001 From: Peter Stuge Date: Tue, 14 Apr 2009 00:08:34 +0000 Subject: v2/util: romfs -> cbfs rename It's all sed here. romfs->cbfs, ROMFS->CBFS, romtool->cbfstool Signed-off-by: Peter Stuge Acked-by: Ronald G. Minnich git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4110 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/cbfstool/Makefile | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 util/cbfstool/Makefile (limited to 'util/cbfstool/Makefile') diff --git a/util/cbfstool/Makefile b/util/cbfstool/Makefile new file mode 100644 index 0000000000..71e0d3b7d7 --- /dev/null +++ b/util/cbfstool/Makefile @@ -0,0 +1,40 @@ +# +# +# + +obj ?= $(shell pwd) + +COMMANDS=create.o bootblock.o delete.o add.o print.o resize.o +OBJ=$(COMMANDS) cbfstool.o util.o fs.o +INC=cbfstool.h cbfs.h + +CC=gcc +CFLAGS=-g -Wall # -W -Werror + +DESTDIR ?= /usr/local/bin + +all: $(obj)/cbfstool $(obj)/tools/rom-mkpayload $(obj)/tools/rom-mkstage + +$(obj)/cbfstool: $(patsubst %,$(obj)/%,$(OBJ)) + $(CC) -o $@ $(patsubst %,$(obj)/%,$(OBJ)) + +tobj = $(obj)/tools +tsrc = $(shell pwd)/tools + +include $(tsrc)/Makefile + +$(obj)/%.o: %.c $(INC) + $(CC) $(CFLAGS) -c -o $@ $< + +install: $(obj)/cbfstool $(obj)/tools/rom-mkpayload $(obj)/tools/rom-mkstage + @ install -d $(DESTDIR) + @ install -m 0755 $(obj)/cbfstool $(DESTDIR)/cbfstool + @ install -m 0755 $(obj)/tools/rom-mkstage $(DESTDIR)/rom-mkstage + @ install -m 0755 $(obj)/tools/rom-mkpayload $(DESTDIR)/rom-mkpayload + +tags: + ctags *.[ch] */*.[ch] + +clean: tools-clean + rm -f $(patsubst %,$(obj)/%,$(OBJ)) $(obj)/cbfstool + -- cgit v1.2.3