source: trunk/packages/xen-common/xen-common/tools/libfsimage/Rules.mk @ 34

Last change on this file since 34 was 34, checked in by hartmans, 17 years ago

Add xen and xen-common

File size: 766 bytes
Line 
1include $(XEN_ROOT)/tools/Rules.mk
2
3DEPS = .*.d
4
5CFLAGS += -I$(XEN_ROOT)/tools/libfsimage/common/ -Werror -Wp,-MD,.$(@F).d
6LDFLAGS += -L../common/
7
8PIC_OBJS := $(patsubst %.c,%.opic,$(LIB_SRCS-y))
9
10FSDIR-$(CONFIG_Linux) = $(LIBDIR)/fs/$(FS)
11FSDIR-$(CONFIG_SunOS)-x86_64 = lib/fs/$(FS)/64
12FSDIR-$(CONFIG_SunOS)-x86_32 = lib/fs/$(FS)/
13FSDIR-$(CONFIG_SunOS) = $(FSDIR-$(CONFIG_SunOS)-$(XEN_TARGET_ARCH))
14FSDIR = $(FSDIR-y)
15
16FSLIB = fsimage.so
17
18.PHONY: fs-all
19fs-all: $(FSLIB)
20
21.PHONY: fs-install
22fs-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
29clean distclean:
30        rm -f $(PIC_OBJS) $(FSLIB)
31
32-include $(DEPS)
Note: See TracBrowser for help on using the repository browser.