ia64/xen-unstable

view tools/flask/loadpolicy/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
1 XEN_ROOT=../../..
2 include $(XEN_ROOT)/tools/Rules.mk
3 XEN_LIBXC = $(XEN_ROOT)/tools/libxc
5 LIBXC_ROOT = $(XEN_ROOT)/tools/libxc
6 LIBFLASK_ROOT = $(XEN_ROOT)/tools/flask/libflask
8 PROFILE=#-pg
9 BASECFLAGS=-Wall -g -Werror
10 BASECFLAGS+= $(PROFILE)
11 #BASECFLAGS+= -I$(XEN_ROOT)/tools
12 BASECFLAGS+= $(CFLAGS_libxenctrl)
13 BASECFLAGS+= -I$(LIBFLASK_ROOT)/include
14 BASECFLAGS+= -I.
16 CFLAGS += $(BASECFLAGS)
17 LDFLAGS += $(PROFILE) -L$(XEN_LIBXC) -L$(LIBFLASK_ROOT)
18 TESTDIR = testsuite/tmp
19 TESTFLAGS= -DTESTING
20 TESTENV = XENSTORED_ROOTDIR=$(TESTDIR) XENSTORED_RUNDIR=$(TESTDIR)
22 CLIENTS := flask-loadpolicy
23 CLIENTS_SRCS := $(patsubst flask-%,%.c,$(CLIENTS))
24 CLIENTS_OBJS := $(patsubst flask-%,%.o,$(CLIENTS))
26 .PHONY: all
27 all: $(CLIENTS)
29 $(CLIENTS): flask-%: %.o
30 $(CC) $(CFLAGS) $(LDFLAGS) $< $(LOADLIBES) $(LDLIBS) -L. -lflask $(LDFLAGS_libxenctrl) -o $@
32 $(CLIENTS_OBJS): $(CLIENTS_SRCS)
33 $(COMPILE.c) -o $@ $<
35 .PHONY: clean
36 clean:
37 rm -f *.o *.opic *.so
38 rm -f $(CLIENTS)
39 $(RM) $(DEPS)
41 .PHONY: print-dir
42 print-dir:
43 @echo -n tools/flask/loadpolicy:
45 .PHONY: print-end
46 print-end:
47 @echo
49 .PHONY: install
50 install: all
51 $(INSTALL_DIR) $(DESTDIR)$(SBINDIR)
52 $(INSTALL_PROG) $(CLIENTS) $(DESTDIR)$(SBINDIR)
54 -include $(DEPS)
56 # never delete any intermediate files.
57 .SECONDARY: