summaryrefslogtreecommitdiff
path: root/extras/multipath/Makefile
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2003-11-13 06:30:57 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:06:24 -0700
commit04a091d47e32d6480b99424e41db093b013dfaf5 (patch)
treef78a0940a6d7cc1b2a41080d0a0f1a2ed903a100 /extras/multipath/Makefile
parent20ff86bd7111221e8709c614c5e3969950293664 (diff)
[PATCH] Add multipath "extra" program from Christophe Varoqui, <christophe.varoqui@free.fr>
Diffstat (limited to 'extras/multipath/Makefile')
-rw-r--r--extras/multipath/Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/extras/multipath/Makefile b/extras/multipath/Makefile
new file mode 100644
index 0000000000..0835d7a2c6
--- /dev/null
+++ b/extras/multipath/Makefile
@@ -0,0 +1,34 @@
+# Makefile
+#
+# Copyright (C) 2003 Christophe Varoqui, <christophe.varoqui@free.fr>
+
+EXEC = multipath
+
+prefix = /usr/local
+exec_prefix = ${prefix}
+bindir = ${exec_prefix}/bin
+
+CC = gcc
+CFLAGS = -g -O2 -Wall -Wunused -Wstrict-prototypes
+LDFLAGS = -lsysfs -ldevmapper
+
+OBJS = main.o sg_err.o
+
+all: $(EXEC)
+ strip $(EXEC)
+ @echo ""
+ @echo "Make complete"
+
+$(EXEC): $(OBJS)
+ $(CC) $(OBJS) -o $(EXEC) $(LDFLAGS)
+
+clean:
+ rm -f core *.o $(EXEC)
+
+install:
+ install -d $(bindir)
+ install -m 755 $(EXEC) $(bindir)/
+
+# Code dependencies
+main.o: main.c main.h sg_err.h sg_include.h
+sg_err.o: sg_err.c sg_err.h sg_include.h