[lib] create read-only multipath if rw try failed
[platform/upstream/multipath-tools.git] / Makefile.inc
index 37a0847..3e5bca0 100644 (file)
@@ -13,22 +13,23 @@ ifeq ($(TOPDIR),)
        TOPDIR  = ..
 endif
 
-ifeq ($(strip $(BUILD)),klibc)
-       CC = klcc
-       klibcdir = /usr/lib/klibc
-       libdm    = $(klibcdir)/lib/libdevmapper.a
-       libsysfs = $(klibcdir)/lib/libsysfs.a
-endif
-
 prefix      = 
 exec_prefix = $(prefix)
 bindir      = $(exec_prefix)/sbin
-checkersdir = $(TOPDIR)/libcheckers
+libudevdir  = ${prefix}/lib/udev
 multipathdir = $(TOPDIR)/libmultipath
-mandir      = /usr/share/man/man8
+mandir      = $(prefix)/usr/share/man/man8
+man5dir     = $(prefix)/usr/share/man/man5
+rcdir      = $(prefix)/etc/init.d
+libdir     = $(prefix)/lib/multipath
 
 GZIP        = /bin/gzip -9 -c
-STRIP       = strip --strip-all -R .comment -R .note
+INSTALL_PROGRAM = install
+
+OPTFLAGS     = -pipe -g -Wall -Wunused -Wstrict-prototypes
+CFLAGS      = $(OPTFLAGS) -fPIC
+SHARED_FLAGS = -shared
+
+%.o:   %.c
+       $(CC) $(CFLAGS) -c -o $@ $<
 
-CHECKERSLIB = $(checkersdir)/libcheckers
-MULTIPATHLIB = $(multipathdir)/libmultipath