debuggers.hg

view tools/xenpaging/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 af807bf09d1f
children
line source
1 XEN_ROOT=../..
2 include $(XEN_ROOT)/tools/Rules.mk
4 CFLAGS += -I $(XEN_XC)
5 CFLAGS += -I ./
6 CFLAGS += $(CFLAGS_libxenctrl) $(CFLAGS_libxenstore)
7 LDLIBS += $(LDLIBS_libxenctrl) $(LDLIBS_libxenstore)
9 POLICY = default
11 SRC :=
12 SRCS += file_ops.c xc.c xenpaging.c policy_$(POLICY).c
14 CFLAGS += -Werror
15 CFLAGS += -Wno-unused
16 CFLAGS += -g
18 CFLAGS += -Wp,-MD,.$(@F).d
19 DEPS = .*.d
21 OBJS = $(SRCS:.c=.o)
22 IBINS = xenpaging
24 all: $(IBINS)
26 xenpaging: $(OBJS)
27 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)
29 install: all
30 $(INSTALL_DIR) $(DESTDIR)/var/lib/xen/xenpaging
31 $(INSTALL_DIR) $(DESTDIR)$(SBINDIR)
32 $(INSTALL_PROG) $(IBINS) $(DESTDIR)$(SBINDIR)
34 clean:
35 rm -f *.o *~ $(DEPS) xen TAGS $(IBINS) $(LIB)
37 .PHONY: clean install
39 .PHONY: TAGS
40 TAGS:
41 etags -t $(SRCS) *.h
43 -include $(DEPS)