2010-05-15 19:26:35 +04:00
|
|
|
|
2010-12-16 12:22:45 +03:00
|
|
|
PREFIX=/usr
|
2011-11-19 12:57:46 +04:00
|
|
|
CFLAGS+=-O2 -Wall -g
|
2010-05-15 19:26:35 +04:00
|
|
|
|
2010-10-08 18:04:49 +04:00
|
|
|
all: make-bcache probe-bcache
|
2010-05-15 19:26:35 +04:00
|
|
|
|
2010-10-08 18:04:49 +04:00
|
|
|
install: make-bcache probe-bcache
|
2012-07-13 11:52:52 +04:00
|
|
|
install -m0755 make-bcache $(DESTDIR)${PREFIX}/sbin/
|
|
|
|
install -m0755 probe-bcache $(DESTDIR)/sbin/
|
|
|
|
install -m0644 61-bcache.rules $(DESTDIR)/lib/udev/rules.d/
|
|
|
|
install -m0755 initramfs/script $(DESTDIR)/etc/initramfs-tools/scripts/init-premount/bcache
|
|
|
|
install -m0755 initramfs/hook $(DESTDIR)/etc/initramfs-tools/hooks/bcache
|
2012-02-16 06:32:44 +04:00
|
|
|
install -m0644 *.8 $(DESTDIR)${PREFIX}/share/man/man8
|
2011-11-19 12:57:46 +04:00
|
|
|
# install -m0755 bcache-test $(DESTDIR)${PREFIX}/sbin/
|
2010-07-30 10:05:51 +04:00
|
|
|
|
2010-12-16 12:22:45 +03:00
|
|
|
clean:
|
2011-11-19 12:57:46 +04:00
|
|
|
$(RM) -f make-bcache probe-bcache bcache-test *.o
|
2010-07-30 10:05:51 +04:00
|
|
|
|
2011-02-13 18:01:10 +03:00
|
|
|
bcache-test: LDLIBS += -lm -lssl -lcrypto
|
|
|
|
make-bcache: LDLIBS += -luuid
|
2011-07-26 21:02:15 +04:00
|
|
|
make-bcache: bcache.o
|
2011-02-13 18:01:10 +03:00
|
|
|
probe-bcache: LDLIBS += -luuid
|