blob: 2b069ce296903ce59a79bb67537401ebf4d237f2 [file] [log] [blame]
CPPFLAGS += -I../include -I../ubi-utils/include
CPPFLAGS += $(ZLIBCPPFLAGS) $(LZOCPPFLAGS) $(UUIDCPPFLAGS)
ALL_SOURCES=*.[ch] hashtable/*.[ch]
TARGETS = mkfs.ubifs
LDLIBS_mkfs.ubifs = -lz -llzo2 -lm -luuid -L$(BUILDDIR)/../ubi-utils/ -lubi
LDLIBS_mkfs.ubifs += $(ZLIBLDFLAGS) $(LZOLDFLAGS) $(UUIDLDFLAGS)
include ../common.mk
$(BUILDDIR)/mkfs.ubifs: $(addprefix $(BUILDDIR)/,\
crc16.o crc32.o lpt.o compr.o devtable.o \
hashtable/hashtable.o hashtable/hashtable_itr.o)
clean::
rm -f $(BUILDDIR)/hashtable/*.o cscope.*
cscope:
@echo $(ALL_SOURCES) > cscope.files
@cscope -bR
@rm cscope.files
install:: ${TARGETS}
mkdir -p ${DESTDIR}/${SBINDIR}
install -m 0755 ${TARGETS} ${DESTDIR}/${SBINDIR}/