summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index a47719d..62e0fb9 100644
--- a/Makefile
+++ b/Makefile
@@ -1,15 +1,20 @@
-PREFIX=/usr/local
+#PREFIX=/usr/local
CFLAGS=-O2 -Wall -g
-all: make-bcache
+all: make-bcache probe-bcache
clean:
rm -f make-bcache bcache-test *.o
-install: make-bcache
+install: make-bcache probe-bcache
install -m0755 make-bcache ${PREFIX}/sbin/
- install -m0755 bcache-test ${PREFIX}/sbin/
+ install -m0755 probe-bcache ${PREFIX}/sbin/
+ install -m0644 61-bcache.rules /lib/udev/rules.d/
+ install -m0755 initramfs /usr/share/initramfs-tools/hooks/bcache
+# install -m0755 bcache-test ${PREFIX}/sbin/
bcache-test: LDFLAGS += -lm -lssl -lcrypto
+make-bcache: LDFLAGS += -luuid
+probe-bcache: LDFLAGS += -luuid