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 ifeq ($(strip $(BUILD)),klibc)
17         CC = klcc
18         klibcdir = /usr/lib/klibc
19         libdm    = $(klibcdir)/lib/libdevmapper.a
20 endif
21
22 prefix      = 
23 exec_prefix = $(prefix)
24 bindir      = $(exec_prefix)/sbin
25 libudevdir  = ${prefix}/lib/udev
26 checkersdir = $(TOPDIR)/libcheckers
27 multipathdir = $(TOPDIR)/libmultipath
28 mandir      = $(prefix)/usr/share/man/man8
29 man5dir     = $(prefix)/usr/share/man/man5
30 rcdir       = $(prefix)/etc/init.d
31
32 GZIP        = /bin/gzip -9 -c
33
34 CHECKERSLIB = $(checkersdir)/libcheckers
35 MULTIPATHLIB = $(multipathdir)/libmultipath
36
37 INSTALL_PROGRAM = install -s
38
39 OPTFLAGS     = -pipe -g -Wall -Wunused -Wstrict-prototypes
40 CFLAGS       = $(OPTFLAGS)
41
42 %.o:    %.c
43         $(CC) $(CFLAGS) -c -o $@ $<
44