From 36ec51948e0ecbf8cb9c5e44fbba5214451ee81c Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Tue, 19 Aug 2008 13:18:07 +0300 Subject: Add mkfs.ubifs Signed-off-by: Artem Bityutskiy --- mkfs.ubifs/Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 mkfs.ubifs/Makefile (limited to 'mkfs.ubifs/Makefile') diff --git a/mkfs.ubifs/Makefile b/mkfs.ubifs/Makefile new file mode 100644 index 0000000..9487c14 --- /dev/null +++ b/mkfs.ubifs/Makefile @@ -0,0 +1,23 @@ +DESTDIR := /usr/local +SBINDIR=/usr/sbin +ALL_SOURCES=*.[ch] hashtable/*.[ch] +CFLAGS := $(CFLAGS) -Wall -O0 -ggdb +LDFLAGS := $(LDFLAGS) -lz -llzo2 -lm -luuid +TARGETS = mkfs.ubifs + +all: $(TARGETS) + +mkfs.ubifs: crc16.o crc32.o lpt.o compr.o hashtable/hashtable.o \ + hashtable/hashtable_itr.o devtable.o + +clean: + rm -f *.o $(TARGETS) cscope.* + +cscope: + @echo $(ALL_SOURCES) > cscope.files + @cscope -bR + @rm cscope.files + +install: ${TARGETS} + mkdir -p ${DESTDIR}/${SBINDIR} + install -m0755 ${TARGETS} ${DESTDIR}/${SBINDIR}/ -- cgit v1.2.3