4b1a108015173c3571a4f522fcc1886115002593
[multipath-tools/.git] / libmultipath / checkers / Makefile
1 # Makefile
2 #
3 # Copyright (C) 2003 Christophe Varoqui, <christophe.varoqui@opensvc.com>
4 #
5 include ../../Makefile.inc
6
7 LIBS= \
8         libcheckcciss_tur.so \
9         libcheckreadsector0.so \
10         libchecktur.so \
11         libcheckdirectio.so \
12         libcheckemc_clariion.so \
13         libcheckhp_sw.so \
14         libcheckrdac.so
15
16 CFLAGS += -I..
17
18 all: $(LIBS)
19
20 libcheckdirectio.so: libsg.o directio.o
21         $(CC) $(LDFLAGS) $(SHARED_FLAGS) -o $@ $^ -laio
22
23 libcheck%.so: libsg.o %.o
24         $(CC) $(LDFLAGS) $(SHARED_FLAGS) -o $@ $^
25
26 install:
27         $(INSTALL_PROGRAM) -m 755 $(LIBS) $(DESTDIR)$(libdir)
28
29 uninstall:
30         for file in $(LIBS); do rm -f $(DESTDIR)$(libdir)/$$file; done
31
32 clean:
33         rm -f core *.a *.o *.gz *.so