summaryrefslogtreecommitdiff
path: root/mkfs.ubifs/Makefile
diff options
context:
space:
mode:
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}/