multipath-tools: replace rm with a variable in makefiles
[multipath-tools/.git] / libmultipath / prioritizers / Makefile
1 # Makefile
2 #
3 # Copyright (C) 2007 Christophe Varoqui, <christophe.varoqui@opensvc.com>
4 #
5 include ../../Makefile.inc
6
7 LIBS = \
8         libprioalua.so \
9         libprioconst.so \
10         libpriodatacore.so \
11         libprioemc.so \
12         libpriohds.so \
13         libpriohp_sw.so \
14         libprioiet.so \
15         libprioontap.so \
16         libpriorandom.so \
17         libpriordac.so \
18         libprioweightedpath.so
19
20 CFLAGS += -I..
21
22 all: $(LIBS)
23
24 libprioalua.so: alua.o alua_rtpg.o
25         $(CC) $(LDFLAGS) $(SHARED_FLAGS) -o $@ $^
26
27 libprio%.so: %.o
28         $(CC) $(LDFLAGS) $(SHARED_FLAGS) -o $@ $^
29
30 install: $(LIBS)
31         $(INSTALL_PROGRAM) -m 755 libprio*.so $(DESTDIR)$(libdir)
32
33 uninstall:
34         for file in $(LIBS); do $(RM) $(DESTDIR)$(libdir)/$$file; done
35
36 clean:
37         $(RM) core *.a *.o *.gz *.so