blob: 5bfd58a837a3c4362b03fd4c40f5d79b1089a2c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
EXEC = multipathd
CC = gcc
GZIP = /bin/gzip -9 -c
bindir = /usr/bin
mandir = /usr/share/man/man8
rcdir = /etc/init.d
CFLAGS = -pipe -g -O2 -Wall -Wunused -Wstrict-prototypes -DDEBUG=1
LDFLAGS = -lpthread -ldevmapper -lsysfs
OBJS = main.o devinfo.o checkers.o
$(EXEC): $(OBJS)
$(CC) $(LDFLAGS) $(OBJS) -o $(EXEC)
strip $(EXEC)
install:
install -d $(bindir)
install -m 755 $(EXEC) $(bindir)
install -d $(rcdir)
install -m 755 multipathd.init $(rcdir)/$(EXEC)
uninstall:
rm -f $(bindir)/$(EXEC)
rm -f $(rcdir)/$(EXEC)
clean:
rm -f core *.o $(EXEC) *.gz
|