summaryrefslogtreecommitdiff
path: root/extras/multipath-tools/multipathd/Makefile
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2004-03-10 22:40:39 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:35:09 -0700
commita3b37a073d52ff01d4ef023a10f13316da4c9966 (patch)
tree349bfb87361de4b6d1990b9d5a9283d445b7ea37 /extras/multipath-tools/multipathd/Makefile
parent49f9acf3844aa5c004b5794e919bd54166e53227 (diff)
[PATCH] Added multipath-tools 0.1.1 release
Diffstat (limited to 'extras/multipath-tools/multipathd/Makefile')
-rw-r--r--extras/multipath-tools/multipathd/Makefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/extras/multipath-tools/multipathd/Makefile b/extras/multipath-tools/multipathd/Makefile
new file mode 100644
index 0000000000..5bfd58a837
--- /dev/null
+++ b/extras/multipath-tools/multipathd/Makefile
@@ -0,0 +1,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
+