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