Merge branch 'master' of git://git.kernel.org/pub/scm/linux/storage/multipath-tools/
[platform/upstream/multipath-tools.git] / Makefile.inc
1 # Makefile.inc
2 #
3 # Copyright (C) 2004 Christophe Varoqui, <christophe.varoqui@free.fr>
4
5 #
6 # Allow to force some libraries to be used statically. (Uncomment one of the
7 # following lines or define the values when calling make.)
8 #
9 # WITH_LOCAL_LIBDM      = 1
10 # WITH_LOCAL_LIBSYSFS   = 1
11
12 ifeq ($(TOPDIR),)
13         TOPDIR  = ..
14 endif
15
16 prefix      = 
17 exec_prefix = $(prefix)
18 bindir      = $(exec_prefix)/sbin
19 libudevdir  = ${prefix}/lib/udev
20 multipathdir = $(TOPDIR)/libmultipath
21 mandir      = $(prefix)/usr/share/man/man8
22 man5dir     = $(prefix)/usr/share/man/man5
23 rcdir       = $(prefix)/etc/init.d
24 libdir      = $(prefix)/lib/multipath
25
26 GZIP        = /bin/gzip -9 -c
27 INSTALL_PROGRAM = install
28
29 OPTFLAGS     = -pipe -g -Wall -Wunused -Wstrict-prototypes -fPIC
30 CFLAGS       = $(OPTFLAGS)
31 SHARED_FLAGS = -shared
32
33 %.o:    %.c
34         $(CC) $(CFLAGS) -c -o $@ $<
35