Line | |
---|
1 | include $(XEN_ROOT)/tools/Rules.mk |
---|
2 | |
---|
3 | DEPS = .*.d |
---|
4 | |
---|
5 | CFLAGS += -I$(XEN_ROOT)/tools/libfsimage/common/ -Werror -Wp,-MD,.$(@F).d |
---|
6 | LDFLAGS += -L../common/ |
---|
7 | |
---|
8 | PIC_OBJS := $(patsubst %.c,%.opic,$(LIB_SRCS-y)) |
---|
9 | |
---|
10 | FSDIR-$(CONFIG_Linux) = $(LIBDIR)/fs/$(FS) |
---|
11 | FSDIR-$(CONFIG_SunOS)-x86_64 = lib/fs/$(FS)/64 |
---|
12 | FSDIR-$(CONFIG_SunOS)-x86_32 = lib/fs/$(FS)/ |
---|
13 | FSDIR-$(CONFIG_SunOS) = $(FSDIR-$(CONFIG_SunOS)-$(XEN_TARGET_ARCH)) |
---|
14 | FSDIR = $(FSDIR-y) |
---|
15 | |
---|
16 | FSLIB = fsimage.so |
---|
17 | |
---|
18 | .PHONY: fs-all |
---|
19 | fs-all: $(FSLIB) |
---|
20 | |
---|
21 | .PHONY: fs-install |
---|
22 | fs-install: fs-all |
---|
23 | $(INSTALL_DIR) $(DESTDIR)/usr/$(FSDIR) |
---|
24 | $(INSTALL_PROG) $(FSLIB) $(DESTDIR)/usr/$(FSDIR) |
---|
25 | |
---|
26 | $(FSLIB): $(PIC_OBJS) |
---|
27 | $(CC) $(CFLAGS) $(LDFLAGS) $(SHLIB_CFLAGS) -o $@ $^ -lfsimage $(FS_LIBDEPS) |
---|
28 | |
---|
29 | clean distclean: |
---|
30 | rm -f $(PIC_OBJS) $(FSLIB) |
---|
31 | |
---|
32 | -include $(DEPS) |
---|
Note: See
TracBrowser
for help on using the repository browser.