aboutsummaryrefslogtreecommitdiff
path: root/mkfs.ubifs/Makefile
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-08-19 13:18:07 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-08-19 13:20:49 +0300
commit36ec51948e0ecbf8cb9c5e44fbba5214451ee81c (patch)
treee0f613c22d1b7a83512ad04b0b9b76dcb09199d9 /mkfs.ubifs/Makefile
parent71e18cc40c6a275e01c166ffeb68c5ed8759caf0 (diff)
Add mkfs.ubifs
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'mkfs.ubifs/Makefile')
-rw-r--r--mkfs.ubifs/Makefile23
1 files changed, 23 insertions, 0 deletions
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}/