summaryrefslogtreecommitdiff
path: root/mkfs.ubifs/Makefile
blob: 9487c14cd0da0a2062f4feabeeb901abde8cc88c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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}/