Rename the README to README.md
[multipath-tools/.git] / libmultipath / foreign / Makefile
1 #
2 # Copyright (C) 2003 Christophe Varoqui, <christophe.varoqui@opensvc.com>
3 #
4 TOPDIR=../..
5 include ../../Makefile.inc
6
7 CFLAGS += $(LIB_CFLAGS) -I.. -I$(nvmedir)
8
9 LIBS = libforeign-nvme.so
10
11 all: $(LIBS)
12
13 libforeign-%.so: %.o
14         $(CC) $(LDFLAGS) $(SHARED_FLAGS) -o $@ $^
15
16 install:
17         $(INSTALL_PROGRAM) -m 755 $(LIBS) $(DESTDIR)$(libdir)
18
19 uninstall:
20         for file in $(LIBS); do $(RM) $(DESTDIR)$(libdir)/$$file; done
21
22 clean: dep_clean
23         $(RM) core *.a *.o *.gz *.so
24
25 OBJS := $(LIBS:libforeign-%.so=%.o)
26 .SECONDARY: $(OBJS)
27
28 include $(wildcard $(OBJS:.o=.d))
29
30 dep_clean:
31         $(RM) $(OBJS:.o=.d)