debuggers.hg

view tools/flask/utils/Makefile @ 22848:6341fe0f4e5a

Added tag 4.1.0-rc2 for changeset 9dca60d88c63
author Keir Fraser <keir@xen.org>
date Tue Jan 25 14:06:55 2011 +0000 (2011-01-25)
parents d3de6f484610
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 LDLIBS += $(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 flask-setenforce flask-getenforce
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 $(LDLIBS_libxenctrl) -o $@
32 .PHONY: clean
33 clean:
34 rm -f *.o *.opic *.so
35 rm -f $(CLIENTS)
36 $(RM) $(DEPS)
38 .PHONY: print-dir
39 print-dir:
40 @echo -n tools/flask/utils:
42 .PHONY: print-end
43 print-end:
44 @echo
46 .PHONY: install
47 install: all
48 $(INSTALL_DIR) $(DESTDIR)$(SBINDIR)
49 $(INSTALL_PROG) $(CLIENTS) $(DESTDIR)$(SBINDIR)
51 -include $(DEPS)
53 # never delete any intermediate files.
54 .SECONDARY: