summaryrefslogtreecommitdiff
path: root/extras/multipath/Makefile
diff options
context:
space:
mode:
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