debuggers.hg

view tools/xenpaging/Makefile @ 21067:b4a1832a916f

Update Xen version to 4.0.0-rc6
author Keir Fraser <keir.fraser@citrix.com>
date Tue Mar 09 18:18:05 2010 +0000 (2010-03-09)
parents 9b344d919ee4
children d3de6f484610
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 LDFLAGS += $(LDFLAGS_libxenctrl) $(LDFLAGS_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 += -Wl,-rpath,..
19 CFLAGS += -Wp,-MD,.$(@F).d
20 DEPS = .*.d
22 #LDFLAGS += $(LDFLAGS_libxenctrl) $(LDFLAGS_libxenguest)
24 OBJS = $(SRCS:.c=.o)
25 IBINS = xenpaging
27 all: $(IBINS)
29 xenpaging: $(OBJS)
30 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
32 install: all
33 $(INSTALL_DIR) $(DESTDIR)$(SBINDIR)
34 $(INSTALL_PROG) $(IBINS) $(DESTDIR)$(SBINDIR)
36 clean:
37 rm -f *.o *~ $(DEPS) xen TAGS $(IBINS) $(LIB)
39 .PHONY: clean install
41 .PHONY: TAGS
42 TAGS:
43 etags -t $(SRCS) *.h
45 -include $(DEPS)