aboutsummaryrefslogtreecommitdiff
path: root/ubi-utils/new-utils/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'ubi-utils/new-utils/Makefile')
-rw-r--r--ubi-utils/new-utils/Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/ubi-utils/new-utils/Makefile b/ubi-utils/new-utils/Makefile
index 175187e..ba4c20f 100644
--- a/ubi-utils/new-utils/Makefile
+++ b/ubi-utils/new-utils/Makefile
@@ -12,9 +12,9 @@ INCLUDEDIR=/usr/include
CC := $(CROSS)gcc
CFLAGS := -Iinclude -Isrc -I$(KERNELHDR) $(OPTFLAGS) -Werror -Wall
-LIBS = libubi libubigen libiniparser
+LIBS = libubi libmtd libubigen libiniparser libscan
UTILS = ubiupdatevol ubimkvol ubirmvol ubicrc32 ubinfo ubiattach \
- ubidetach ubinize
+ ubidetach ubinize ubiformat
vpath %.c src
@@ -38,10 +38,17 @@ ubicrc32: ubicrc32.o crc32.o
ubinize: ubinize.o common.o crc32.o libiniparser.a libubigen.a
$(CC) $(CFLAGS) $(filter %.o, $^) -L. -liniparser -lubigen -o $@
+ubiformat: ubiformat.o common.o crc32.o libmtd.a libscan.a libubi.a libubigen.a
+ $(CC) $(CFLAGS) $(filter %.o, $^) -L. -lmtd -lscan -lubi -lubigen -o $@
+
libubi.a: libubi.o
$(AR) crv $@ $^
ranlib $@
+libmtd.a: libmtd.o
+ $(AR) crv $@ $^
+ ranlib $@
+
libubigen.a: libubigen.o
$(AR) crv $@ $^
ranlib $@
@@ -50,6 +57,10 @@ libiniparser.a: libiniparser.o dictionary.o
$(AR) crv $@ $^
ranlib $@
+libscan.a: libscan.o crc32.o
+ $(AR) crv $@ $^
+ ranlib $@
+
clean:
rm -rf *.o $(addsuffix .a, $(LIBS)) $(UTILS) .*.c.dep