debuggers.hg

view tools/libfsimage/Rules.mk @ 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 bd78714b8594
children 3ffdb094c2c0
line source
1 include $(XEN_ROOT)/tools/Rules.mk
3 CFLAGS += -I$(XEN_ROOT)/tools/libfsimage/common/ -Werror
4 LDFLAGS += -L../common/
6 PIC_OBJS := $(patsubst %.c,%.opic,$(LIB_SRCS-y))
8 FSDIR-$(CONFIG_Linux) = $(LIBDIR)/fs/$(FS)
9 FSDIR-$(CONFIG_SunOS)-x86_64 = $(PREFIX)/lib/fs/$(FS)/64
10 FSDIR-$(CONFIG_SunOS)-x86_32 = $(PREFIX)/lib/fs/$(FS)/
11 FSDIR-$(CONFIG_SunOS) = $(FSDIR-$(CONFIG_SunOS)-$(XEN_TARGET_ARCH))
12 FSDIR-$(CONFIG_NetBSD) = $(LIBDIR)/fs/$(FS)
13 FSDIR = $(FSDIR-y)
15 FSLIB = fsimage.so
17 .PHONY: fs-all
18 fs-all: $(FSLIB)
20 .PHONY: fs-install
21 fs-install: fs-all
22 $(INSTALL_DIR) $(DESTDIR)$(FSDIR)
23 $(INSTALL_PROG) $(FSLIB) $(DESTDIR)$(FSDIR)
25 $(FSLIB): $(PIC_OBJS)
26 $(CC) $(CFLAGS) $(LDFLAGS) $(SHLIB_CFLAGS) -o $@ $^ -lfsimage $(FS_LIBDEPS)
28 clean distclean:
29 rm -f $(PIC_OBJS) $(FSLIB) $(DEPS)
31 -include $(DEPS)