ia64/xen-unstable

view tools/libfsimage/Rules.mk @ 16872:1190d50ce18c

Fix libfsimage build on Solaris

The Solaris installation dirs were missing $(PREFIX)

Signed-off-by: John Levon <john.levon@sun.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jan 24 14:35:52 2008 +0000 (2008-01-24)
parents 6ed9b42d1ec4
children 2c48ed7e303d
line source
1 include $(XEN_ROOT)/tools/Rules.mk
3 DEPS = .*.d
5 CFLAGS += -I$(XEN_ROOT)/tools/libfsimage/common/ -Werror -Wp,-MD,.$(@F).d
6 LDFLAGS += -L../common/
8 PIC_OBJS := $(patsubst %.c,%.opic,$(LIB_SRCS-y))
10 FSDIR-$(CONFIG_Linux) = $(LIBDIR)/fs/$(FS)
11 FSDIR-$(CONFIG_SunOS)-x86_64 = $(PREFIX)/lib/fs/$(FS)/64
12 FSDIR-$(CONFIG_SunOS)-x86_32 = $(PREFIX)/lib/fs/$(FS)/
13 FSDIR-$(CONFIG_SunOS) = $(FSDIR-$(CONFIG_SunOS)-$(XEN_TARGET_ARCH))
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_CFLAGS) -o $@ $^ -lfsimage $(FS_LIBDEPS)
29 clean distclean:
30 rm -f $(PIC_OBJS) $(FSLIB) $(DEPS)
32 -include $(DEPS)