3 # Copyright (C) 2004 Christophe Varoqui, <christophe.varoqui@free.fr>
6 # Allow to force some libraries to be used statically. (Uncomment one of the
7 # following lines or define the values when calling make.)
10 # WITH_LOCAL_LIBSYSFS = 1
17 ifeq ($(shell test -d /lib64 && echo 1),1)
25 exec_prefix = $(prefix)
26 bindir = $(exec_prefix)/sbin
27 libudevdir = ${prefix}/lib/udev
28 multipathdir = $(TOPDIR)/libmultipath
29 mandir = $(prefix)/usr/share/man/man8
30 man5dir = $(prefix)/usr/share/man/man5
31 rcdir = $(prefix)/etc/init.d
32 syslibdir = $(prefix)/$(LIB)
33 libdir = $(prefix)/$(LIB)/multipath
35 GZIP = /bin/gzip -9 -c
36 INSTALL_PROGRAM = install
38 OPTFLAGS = -pipe -g -Wall -Wunused -Wstrict-prototypes
39 CFLAGS = $(OPTFLAGS) -fPIC -DLIB_STRING=\"${LIB}\"
40 SHARED_FLAGS = -shared
43 $(CC) $(CFLAGS) -c -o $@ $<