summaryrefslogtreecommitdiff
path: root/extras/multipath/Makefile
blob: 0835d7a2c6467455ea8547553a5534b9df8974e2 (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
33
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