aboutsummaryrefslogtreecommitdiff
path: root/ubi-utils/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'ubi-utils/Makefile')
-rw-r--r--ubi-utils/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/ubi-utils/Makefile b/ubi-utils/Makefile
index abd5dc4..9fd862d 100644
--- a/ubi-utils/Makefile
+++ b/ubi-utils/Makefile
@@ -15,7 +15,8 @@ CFLAGS := -I./inc -I./src -I$(KERNELHDR) $(OPTFLAGS) -Werror \
PERLPROGS = mkpfi ubicrc32.pl
TARGETS = ubiupdate ubimkvol ubirmvol pfiflash pddcustomize ubimirror \
- bin2nand nand2bin ubigen mkbootenv unubi pfi2bin ubicrc32 ubinfo
+ bin2nand nand2bin ubigen mkbootenv unubi pfi2bin ubicrc32 ubinfo \
+ ubiattach ubidetach
vpath %.c ./src
@@ -31,11 +32,17 @@ IGNORE=${wildcard .*.c.dep}
-include ${IGNORE}
clean:
- rm -rf *.o $(TARGETS) .*.c.dep
+ rm -rf *.o $(TARGETS) .*.c.dep libubi.a
libubi: libubi.o
ar cr libubi.a libubi.o
+ubidetach: ubidetach.o common.o libubi.o
+ $(CC) $(LDFLAGS) -o $@ $^
+
+ubiattach: ubiattach.o common.o libubi.o
+ $(CC) $(LDFLAGS) -o $@ $^
+
ubinfo: ubinfo.o common.o libubi.o
$(CC) $(LDFLAGS) -o $@ $^