mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
DEPS_INCLUDE is currently the same as DEPS, so no functional change. This patch is the result of this perl rune: git-grep -l 'include.*DEPS' | xargs perl -i -pe 'next unless m/^-?include/; s/\bDEPS\b/DEPS_INCLUDE/' I have verified that I haven't missed anything, with this rune: git-grep '\bDEPS\b' Reported-by: Jan Beulich <JBeulich@suse.com> CC: Wei Liu <wei.liu2@citrix.com> Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com> Acked-by: Jan Beulich <jbeulich@suse.com> Acked-by: Wei Liu <wei.liu2@citrix.com>
56 lines
1.6 KiB
Makefile
56 lines
1.6 KiB
Makefile
XEN_ROOT = $(CURDIR)/../../..
|
|
include $(XEN_ROOT)/tools/libfsimage/Rules.mk
|
|
|
|
MAJOR = 1.0
|
|
MINOR = 0
|
|
|
|
LDFLAGS-$(CONFIG_SunOS) = -Wl,-M -Wl,mapfile-SunOS
|
|
LDFLAGS-$(CONFIG_Linux) = -Wl,mapfile-GNU
|
|
LDFLAGS = $(LDFLAGS-y)
|
|
|
|
CFLAGS += $(PTHREAD_CFLAGS)
|
|
LDFLAGS += $(PTHREAD_LDFLAGS)
|
|
|
|
LIB_SRCS-y = fsimage.c fsimage_plugin.c fsimage_grub.c
|
|
|
|
PIC_OBJS := $(patsubst %.c,%.opic,$(LIB_SRCS-y))
|
|
|
|
LIB = libfsimage.so libfsimage.so.$(MAJOR) libfsimage.so.$(MAJOR).$(MINOR)
|
|
|
|
.PHONY: all
|
|
all: $(LIB)
|
|
|
|
.PHONY: install
|
|
install: all
|
|
$(INSTALL_DIR) $(DESTDIR)$(libdir)
|
|
$(INSTALL_DIR) $(DESTDIR)$(includedir)
|
|
$(INSTALL_PROG) libfsimage.so.$(MAJOR).$(MINOR) $(DESTDIR)$(libdir)
|
|
ln -sf libfsimage.so.$(MAJOR).$(MINOR) $(DESTDIR)$(libdir)/libfsimage.so.$(MAJOR)
|
|
ln -sf libfsimage.so.$(MAJOR) $(DESTDIR)$(libdir)/libfsimage.so
|
|
$(INSTALL_DATA) fsimage.h $(DESTDIR)$(includedir)
|
|
$(INSTALL_DATA) fsimage_plugin.h $(DESTDIR)$(includedir)
|
|
$(INSTALL_DATA) fsimage_grub.h $(DESTDIR)$(includedir)
|
|
|
|
.PHONY: uninstall
|
|
uninstall:
|
|
rm -f $(DESTDIR)$(includedir)/fsimage_grub.h
|
|
rm -f $(DESTDIR)$(includedir)/fsimage_plugin.h
|
|
rm -f $(DESTDIR)$(includedir)/fsimage.h
|
|
rm -f $(DESTDIR)$(libdir)/libfsimage.so
|
|
rm -f $(DESTDIR)$(libdir)/libfsimage.so.$(MAJOR)
|
|
rm -f $(DESTDIR)$(libdir)/libfsimage.so.$(MAJOR).$(MINOR)
|
|
|
|
clean distclean::
|
|
rm -f $(LIB)
|
|
|
|
libfsimage.so: libfsimage.so.$(MAJOR)
|
|
ln -sf $< $@
|
|
libfsimage.so.$(MAJOR): libfsimage.so.$(MAJOR).$(MINOR)
|
|
ln -sf $< $@
|
|
|
|
libfsimage.so.$(MAJOR).$(MINOR): $(PIC_OBJS)
|
|
$(CC) $(LDFLAGS) -Wl,$(SONAME_LDFLAG) -Wl,libfsimage.so.$(MAJOR) $(SHLIB_LDFLAGS) -o $@ $^ $(PTHREAD_LIBS) $(APPEND_LDFLAGS)
|
|
|
|
-include $(DEPS_INCLUDE)
|
|
|