debuggers.hg

view tools/libfsimage/Rules.mk @ 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 include $(XEN_ROOT)/tools/Rules.mk
3 CFLAGS += -Wno-unknown-pragmas -I$(XEN_ROOT)/tools/libfsimage/common/
4 CFLAGS += -Werror -D_GNU_SOURCE
5 LDFLAGS += -L../common/
7 PIC_OBJS := $(patsubst %.c,%.opic,$(LIB_SRCS-y))
9 FSDIR-$(CONFIG_Linux) = $(LIBDIR)/fs/$(FS)
10 FSDIR-$(CONFIG_SunOS)-x86_64 = $(PREFIX)/lib/fs/$(FS)/64
11 FSDIR-$(CONFIG_SunOS)-x86_32 = $(PREFIX)/lib/fs/$(FS)/
12 FSDIR-$(CONFIG_SunOS) = $(FSDIR-$(CONFIG_SunOS)-$(XEN_TARGET_ARCH))
13 FSDIR-$(CONFIG_NetBSD) = $(LIBDIR)/fs/$(FS)
14 FSDIR = $(FSDIR-y)
16 FSLIB = fsimage.so
18 .PHONY: fs-all
19 fs-all: $(FSLIB)
21 .PHONY: fs-install
22 fs-install: fs-all
23 $(INSTALL_DIR) $(DESTDIR)$(FSDIR)
24 $(INSTALL_PROG) $(FSLIB) $(DESTDIR)$(FSDIR)
26 $(FSLIB): $(PIC_OBJS)
27 $(CC) $(CFLAGS) $(LDFLAGS) $(SHLIB_LDFLAGS) -o $@ $^ -lfsimage $(FS_LIBDEPS)
29 clean distclean:
30 rm -f $(PIC_OBJS) $(FSLIB) $(DEPS)
32 -include $(DEPS)