ia64/xen-unstable

view tools/blktap2/lvm/Makefile @ 19835:edfdeb150f27

Fix buildsystem to detect udev > version 124

udev removed the udevinfo symlink from versions higher than 123 and
xen's build-system could not detect if udev is in place and has the
required version.

Signed-off-by: Marc-A. Dahlhaus <mad@wol.de>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jun 25 13:02:37 2009 +0100 (2009-06-25)
parents 241607f414c8
children
line source
1 XEN_ROOT = ../../../
2 BLKTAP_ROOT := ../
3 include $(XEN_ROOT)/tools/Rules.mk
5 ifeq ($(LVM_UTIL_TEST),y)
6 TEST := lvm-util
7 endif
9 CFLAGS += -Werror
10 CFLAGS += -Wno-unused
11 CFLAGS += -I../include
12 CFLAGS += -D_GNU_SOURCE
14 ifeq ($(CONFIG_X86_64),y)
15 CFLAGS += -fPIC
16 endif
18 # Get gcc to generate the dependencies for us.
19 CFLAGS += -Wp,-MD,.$(@F).d
20 DEPS = .*.d
22 LVM-OBJS := lvm-util.o
24 all: build
26 build: $(TEST) $(LVM-OBJS)
28 install: all
30 lvm-util: lvm-util.o
31 $(CC) $(CFLAGS) -DLVM_UTIL $(LDFLAGS) -o lvm-util lvm-util.c
33 clean:
34 rm -rf *.o *~ $(DEPS) $(IBIN)
36 .PHONY: all build clean install lvm-util
38 -include $(DEPS)