ia64/xen-unstable

view tools/console/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 bd78714b8594
children
line source
2 XEN_ROOT=../..
3 include $(XEN_ROOT)/tools/Rules.mk
5 CFLAGS += -Werror
7 CFLAGS += $(CFLAGS_libxenctrl)
8 CFLAGS += $(CFLAGS_libxenstore)
9 LDFLAGS += $(LDFLAGS_libxenctrl)
10 LDFLAGS += $(LDFLAGS_libxenstore)
12 BIN = xenconsoled xenconsole
14 .PHONY: all
15 all: $(BIN)
17 .PHONY: clean
18 clean:
19 $(RM) *.a *.so *.o *.rpm $(BIN) $(DEPS)
20 $(RM) client/*.o daemon/*.o
22 xenconsoled: $(patsubst %.c,%.o,$(wildcard daemon/*.c))
23 $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) \
24 $(UTIL_LIBS) $(SOCKET_LIBS) -lrt
26 xenconsole: $(patsubst %.c,%.o,$(wildcard client/*.c))
27 $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) \
28 $(UTIL_LIBS) $(SOCKET_LIBS)
30 .PHONY: install
31 install: $(BIN)
32 $(INSTALL_DIR) $(DESTDIR)/$(SBINDIR)
33 $(INSTALL_PROG) xenconsoled $(DESTDIR)/$(SBINDIR)
34 $(INSTALL_DIR) $(DESTDIR)$(PRIVATE_BINDIR)
35 $(INSTALL_PROG) xenconsole $(DESTDIR)$(PRIVATE_BINDIR)
37 -include $(DEPS)