summaryrefslogtreecommitdiff
path: root/extras/multipath-tools/multipathd/Makefile
blob: 82c77b83516d617f09e9194d68ec2376f9e66651 (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
32
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

spotless: clean