summaryrefslogtreecommitdiff
path: root/Makefile
blob: 62e0fb9d84f324b47cc7bf9c41141f74f5ab7204 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

#PREFIX=/usr/local
CFLAGS=-O2 -Wall -g

all: make-bcache probe-bcache

clean:
	rm -f make-bcache bcache-test *.o

install: make-bcache probe-bcache
	install -m0755 make-bcache ${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