summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2010-10-08 07:04:49 -0700
committerKent Overstreet <kent.overstreet@gmail.com>2010-10-08 07:04:49 -0700
commit7e9790107563dfa88ccd89aa0d0fa33266848400 (patch)
treea1418f8289ca916ba329756fec003c66ac024d09 /Makefile
parent1d895a5a451e041fcefeefbe1fd07eed034394cd (diff)
UUIDs
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