From nobody Thu Apr 25 07:06:46 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1567773753; cv=none; d=zoho.com; s=zohoarc; b=jKMqFpwgcAYe5rfpC/oQpp5o/K2AON2E0ZxjUSlfZR/m4/j5Y1bh9jNBvLDkNZK078aAmtEqLGBe7WViazfRLAXVkLNAHQgJsS+twKTMc5OBcqmAiJ8Shq/jCFV1rco8zHaXDiXPCgbFqs7lWEgRel3RBzBod0yHTLw6qTGAWKU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1567773753; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=9bzjCDaso+qZkumkd+nExj9BaO9OM5r+FeRGojozOhU=; b=NEPAAQhLqi+4nPYSmDXT5SKKnumnS+GIeRU/Tmn7xKbUvVmylMPxEw4eMg03n17oNuzFI9HhMFCul6aXK8S8sQu6TcTMaE17ta7kzcDy477MI14gd6KMd0umhx+/K2hFdbgpAKUMQiACI5Gf3YMHnk886YuSPLjZBeA9OPuEofU= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1567773752843709.0343679170253; Fri, 6 Sep 2019 05:42:32 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1i6DY6-0006Zf-VM; Fri, 06 Sep 2019 12:41:10 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1i6DY5-0006Za-Cv for xen-devel@lists.xenproject.org; Fri, 06 Sep 2019 12:41:09 +0000 Received: from mx1.suse.de (unknown [195.135.220.15]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 97e69c94-d0a3-11e9-abf5-12813bfff9fa; Fri, 06 Sep 2019 12:41:06 +0000 (UTC) Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 4275EAE8B; Fri, 6 Sep 2019 12:41:05 +0000 (UTC) X-Inumbo-ID: 97e69c94-d0a3-11e9-abf5-12813bfff9fa X-Virus-Scanned: by amavisd-new at test-mx.suse.de From: Juergen Gross To: xen-devel@lists.xenproject.org Date: Fri, 6 Sep 2019 14:41:03 +0200 Message-Id: <20190906124103.8535-1-jgross@suse.com> X-Mailer: git-send-email 2.16.4 Subject: [Xen-devel] [PATCH v2] tools/libs: put common Makefile parts into new libs.mk X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Juergen Gross , Ian Jackson , Wei Liu MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" The Makefile below tools/libs have a lot in common. Put those common parts into a new libs.mk and include that from the specific Makefiles. Signed-off-by: Juergen Gross --- V2: - include common Makefile via absolute path for not breaking stubdom --- tools/libs/call/Makefile | 86 ++--------------------------------- tools/libs/devicemodel/Makefile | 88 ++---------------------------------- tools/libs/evtchn/Makefile | 86 ++--------------------------------- tools/libs/foreignmemory/Makefile | 86 ++--------------------------------- tools/libs/gnttab/Makefile | 86 ++--------------------------------- tools/libs/libs.mk | 95 +++++++++++++++++++++++++++++++++++= ++++ tools/libs/toolcore/Makefile | 85 +---------------------------------- tools/libs/toollog/Makefile | 84 +--------------------------------- 8 files changed, 114 insertions(+), 582 deletions(-) create mode 100644 tools/libs/libs.mk diff --git a/tools/libs/call/Makefile b/tools/libs/call/Makefile index 6291e6dfe7..7f6dc3fcbd 100644 --- a/tools/libs/call/Makefile +++ b/tools/libs/call/Makefile @@ -3,11 +3,8 @@ include $(XEN_ROOT)/tools/Rules.mk =20 MAJOR =3D 1 MINOR =3D 2 -SHLIB_LDFLAGS +=3D -Wl,--version-script=3Dlibxencall.map - -CFLAGS +=3D -Werror -Wmissing-prototypes -CFLAGS +=3D -I./include $(CFLAGS_xeninclude) -CFLAGS +=3D $(CFLAGS_libxentoollog) $(CFLAGS_libxentoolcore) +LIBNAME :=3D call +USELIBS :=3D toollog toolcore =20 SRCS-y +=3D core.c buffer.c SRCS-$(CONFIG_Linux) +=3D linux.c @@ -16,84 +13,7 @@ SRCS-$(CONFIG_SunOS) +=3D solaris.c SRCS-$(CONFIG_NetBSD) +=3D netbsd.c SRCS-$(CONFIG_MiniOS) +=3D minios.c =20 -LIB_OBJS :=3D $(patsubst %.c,%.o,$(SRCS-y)) -PIC_OBJS :=3D $(patsubst %.c,%.opic,$(SRCS-y)) - -LIB :=3D libxencall.a -ifneq ($(nosharedlibs),y) -LIB +=3D libxencall.so -endif - -PKG_CONFIG :=3D xencall.pc -PKG_CONFIG_VERSION :=3D $(MAJOR).$(MINOR) - -ifneq ($(CONFIG_LIBXC_MINIOS),y) -PKG_CONFIG_INST :=3D $(PKG_CONFIG) -$(PKG_CONFIG_INST): PKG_CONFIG_PREFIX =3D $(prefix) -$(PKG_CONFIG_INST): PKG_CONFIG_INCDIR =3D $(includedir) -$(PKG_CONFIG_INST): PKG_CONFIG_LIBDIR =3D $(libdir) -endif - -PKG_CONFIG_LOCAL :=3D $(foreach pc,$(PKG_CONFIG),$(PKG_CONFIG_DIR)/$(pc)) +include $(XEN_ROOT)/tools/libs/libs.mk =20 -$(PKG_CONFIG_LOCAL): PKG_CONFIG_PREFIX =3D $(XEN_ROOT) $(PKG_CONFIG_LOCAL): PKG_CONFIG_INCDIR =3D $(XEN_LIBXENCALL)/include -$(PKG_CONFIG_LOCAL): PKG_CONFIG_LIBDIR =3D $(CURDIR) $(PKG_CONFIG_LOCAL): PKG_CONFIG_CFLAGS_LOCAL =3D $(CFLAGS_xeninclude) - -.PHONY: all -all: build - -.PHONY: build -build: - $(MAKE) libs - -.PHONY: libs -libs: headers.chk $(LIB) $(PKG_CONFIG_INST) $(PKG_CONFIG_LOCAL) - -headers.chk: $(wildcard include/*.h) - -libxencall.a: $(LIB_OBJS) - $(AR) rc $@ $^ - -libxencall.so: libxencall.so.$(MAJOR) - $(SYMLINK_SHLIB) $< $@ -libxencall.so.$(MAJOR): libxencall.so.$(MAJOR).$(MINOR) - $(SYMLINK_SHLIB) $< $@ - -libxencall.so.$(MAJOR).$(MINOR): $(PIC_OBJS) libxencall.map - $(CC) $(LDFLAGS) $(PTHREAD_LDFLAGS) -Wl,$(SONAME_LDFLAG) -Wl,libxencall.s= o.$(MAJOR) $(SHLIB_LDFLAGS) -o $@ $(PIC_OBJS) $(LDLIBS_libxentoollog) $(LDL= IBS_libxentoolcore) $(APPEND_LDFLAGS) - -.PHONY: install -install: build - $(INSTALL_DIR) $(DESTDIR)$(libdir) - $(INSTALL_DIR) $(DESTDIR)$(includedir) - $(INSTALL_SHLIB) libxencall.so.$(MAJOR).$(MINOR) $(DESTDIR)$(libdir) - $(INSTALL_DATA) libxencall.a $(DESTDIR)$(libdir) - $(SYMLINK_SHLIB) libxencall.so.$(MAJOR).$(MINOR) $(DESTDIR)$(libdir)/libx= encall.so.$(MAJOR) - $(SYMLINK_SHLIB) libxencall.so.$(MAJOR) $(DESTDIR)$(libdir)/libxencall.so - $(INSTALL_DATA) include/xencall.h $(DESTDIR)$(includedir) - $(INSTALL_DATA) xencall.pc $(DESTDIR)$(PKG_INSTALLDIR) - -.PHONY: uninstall -uninstall: - rm -f $(DESTDIR)$(PKG_INSTALLDIR)/xencall.pc - rm -f $(DESTDIR)$(includedir)/xencall.h - rm -f $(DESTDIR)$(libdir)/libxencall.so - rm -f $(DESTDIR)$(libdir)/libxencall.so.$(MAJOR) - rm -f $(DESTDIR)$(libdir)/libxencall.so.$(MAJOR).$(MINOR) - rm -f $(DESTDIR)$(libdir)/libxencall.a - -.PHONY: TAGS -TAGS: - etags -t *.c *.h - -.PHONY: clean -clean: - rm -rf *.rpm $(LIB) *~ $(DEPS_RM) $(LIB_OBJS) $(PIC_OBJS) - rm -f libxencall.so.$(MAJOR).$(MINOR) libxencall.so.$(MAJOR) - rm -f headers.chk - rm -f xencall.pc - -.PHONY: distclean -distclean: clean diff --git a/tools/libs/devicemodel/Makefile b/tools/libs/devicemodel/Makef= ile index 73cff6dbc4..61bfa35273 100644 --- a/tools/libs/devicemodel/Makefile +++ b/tools/libs/devicemodel/Makefile @@ -3,13 +3,8 @@ include $(XEN_ROOT)/tools/Rules.mk =20 MAJOR =3D 1 MINOR =3D 3 -SHLIB_LDFLAGS +=3D -Wl,--version-script=3Dlibxendevicemodel.map - -CFLAGS +=3D -Werror -Wmissing-prototypes -CFLAGS +=3D -I./include $(CFLAGS_xeninclude) -CFLAGS +=3D $(CFLAGS_libxentoollog) -CFLAGS +=3D $(CFLAGS_libxentoolcore) -CFLAGS +=3D $(CFLAGS_libxencall) +LIBNAME :=3D devicemodel +USELIBS :=3D toollog toolcore call =20 SRCS-y +=3D core.c SRCS-$(CONFIG_Linux) +=3D linux.c @@ -18,84 +13,7 @@ SRCS-$(CONFIG_SunOS) +=3D compat.c SRCS-$(CONFIG_NetBSD) +=3D compat.c SRCS-$(CONFIG_MiniOS) +=3D compat.c =20 -LIB_OBJS :=3D $(patsubst %.c,%.o,$(SRCS-y)) -PIC_OBJS :=3D $(patsubst %.c,%.opic,$(SRCS-y)) - -LIB :=3D libxendevicemodel.a -ifneq ($(nosharedlibs),y) -LIB +=3D libxendevicemodel.so -endif - -PKG_CONFIG :=3D xendevicemodel.pc -PKG_CONFIG_VERSION :=3D $(MAJOR).$(MINOR) - -ifneq ($(CONFIG_LIBXC_MINIOS),y) -PKG_CONFIG_INST :=3D $(PKG_CONFIG) -$(PKG_CONFIG_INST): PKG_CONFIG_PREFIX =3D $(prefix) -$(PKG_CONFIG_INST): PKG_CONFIG_INCDIR =3D $(includedir) -$(PKG_CONFIG_INST): PKG_CONFIG_LIBDIR =3D $(libdir) -endif - -PKG_CONFIG_LOCAL :=3D $(foreach pc,$(PKG_CONFIG),$(PKG_CONFIG_DIR)/$(pc)) +include $(XEN_ROOT)/tools/libs/libs.mk =20 -$(PKG_CONFIG_LOCAL): PKG_CONFIG_PREFIX =3D $(XEN_ROOT) $(PKG_CONFIG_LOCAL): PKG_CONFIG_INCDIR =3D $(XEN_LIBXENDEVICEMODEL)/include -$(PKG_CONFIG_LOCAL): PKG_CONFIG_LIBDIR =3D $(CURDIR) $(PKG_CONFIG_LOCAL): PKG_CONFIG_CFLAGS_LOCAL =3D $(CFLAGS_xeninclude) - -.PHONY: all -all: build - -.PHONY: build -build: - $(MAKE) libs - -.PHONY: libs -libs: headers.chk $(LIB) $(PKG_CONFIG_INST) $(PKG_CONFIG_LOCAL) - -headers.chk: $(wildcard include/*.h) - -libxendevicemodel.a: $(LIB_OBJS) - $(AR) rc $@ $^ - -libxendevicemodel.so: libxendevicemodel.so.$(MAJOR) - $(SYMLINK_SHLIB) $< $@ -libxendevicemodel.so.$(MAJOR): libxendevicemodel.so.$(MAJOR).$(MINOR) - $(SYMLINK_SHLIB) $< $@ - -libxendevicemodel.so.$(MAJOR).$(MINOR): $(PIC_OBJS) libxendevicemodel.map - $(CC) $(LDFLAGS) $(PTHREAD_LDFLAGS) -Wl,$(SONAME_LDFLAG) -Wl,libxendevice= model.so.$(MAJOR) $(SHLIB_LDFLAGS) -o $@ $(PIC_OBJS) $(LDLIBS_libxentoollog= ) $(LDLIBS_libxencall) $(LDLIBS_libxentoolcore) $(APPEND_LDFLAGS) - -.PHONY: install -install: build - $(INSTALL_DIR) $(DESTDIR)$(libdir) - $(INSTALL_DIR) $(DESTDIR)$(includedir) - $(INSTALL_SHLIB) libxendevicemodel.so.$(MAJOR).$(MINOR) $(DESTDIR)$(libdi= r) - $(INSTALL_DATA) libxendevicemodel.a $(DESTDIR)$(libdir) - $(SYMLINK_SHLIB) libxendevicemodel.so.$(MAJOR).$(MINOR) $(DESTDIR)$(libdi= r)/libxendevicemodel.so.$(MAJOR) - $(SYMLINK_SHLIB) libxendevicemodel.so.$(MAJOR) $(DESTDIR)$(libdir)/libxen= devicemodel.so - $(INSTALL_DATA) include/xendevicemodel.h $(DESTDIR)$(includedir) - $(INSTALL_DATA) xendevicemodel.pc $(DESTDIR)$(PKG_INSTALLDIR) - -.PHONY: uninstall -uninstall: - rm -f $(DESTDIR)$(PKG_INSTALLDIR)/xendevicemodel.pc - rm -f $(DESTDIR)$(includedir)/xendevicemodel.h - rm -f $(DESTDIR)$(libdir)/libxendevicemodel.so - rm -f $(DESTDIR)$(libdir)/libxendevicemodel.so.$(MAJOR) - rm -f $(DESTDIR)$(libdir)/libxendevicemodel.so.$(MAJOR).$(MINOR) - rm -f $(DESTDIR)$(libdir)/libxendevicemodel.a - -.PHONY: TAGS -TAGS: - etags -t *.c *.h - -.PHONY: clean -clean: - rm -rf *.rpm $(LIB) *~ $(DEPS_RM) $(LIB_OBJS) $(PIC_OBJS) - rm -f libxendevicemodel.so.$(MAJOR).$(MINOR) libxendevicemodel.so.$(MAJOR) - rm -f headers.chk - rm -f xendevicemodel.pc - -.PHONY: distclean -distclean: clean diff --git a/tools/libs/evtchn/Makefile b/tools/libs/evtchn/Makefile index 9952b30225..9206f622ef 100644 --- a/tools/libs/evtchn/Makefile +++ b/tools/libs/evtchn/Makefile @@ -3,11 +3,8 @@ include $(XEN_ROOT)/tools/Rules.mk =20 MAJOR =3D 1 MINOR =3D 1 -SHLIB_LDFLAGS +=3D -Wl,--version-script=3Dlibxenevtchn.map - -CFLAGS +=3D -Werror -Wmissing-prototypes -CFLAGS +=3D -I./include $(CFLAGS_xeninclude) -CFLAGS +=3D $(CFLAGS_libxentoollog) $(CFLAGS_libxentoolcore) +LIBNAME :=3D evtchn +USELIBS :=3D toollog toolcore =20 SRCS-y +=3D core.c SRCS-$(CONFIG_Linux) +=3D linux.c @@ -16,83 +13,6 @@ SRCS-$(CONFIG_SunOS) +=3D solaris.c SRCS-$(CONFIG_NetBSD) +=3D netbsd.c SRCS-$(CONFIG_MiniOS) +=3D minios.c =20 -LIB_OBJS :=3D $(patsubst %.c,%.o,$(SRCS-y)) -PIC_OBJS :=3D $(patsubst %.c,%.opic,$(SRCS-y)) - -LIB :=3D libxenevtchn.a -ifneq ($(nosharedlibs),y) -LIB +=3D libxenevtchn.so -endif - -PKG_CONFIG :=3D xenevtchn.pc -PKG_CONFIG_VERSION :=3D $(MAJOR).$(MINOR) - -ifneq ($(CONFIG_LIBXC_MINIOS),y) -PKG_CONFIG_INST :=3D $(PKG_CONFIG) -$(PKG_CONFIG_INST): PKG_CONFIG_PREFIX =3D $(prefix) -$(PKG_CONFIG_INST): PKG_CONFIG_INCDIR =3D $(includedir) -$(PKG_CONFIG_INST): PKG_CONFIG_LIBDIR =3D $(libdir) -endif - -PKG_CONFIG_LOCAL :=3D $(foreach pc,$(PKG_CONFIG),$(PKG_CONFIG_DIR)/$(pc)) +include $(XEN_ROOT)/tools/libs/libs.mk =20 -$(PKG_CONFIG_LOCAL): PKG_CONFIG_PREFIX =3D $(XEN_ROOT) $(PKG_CONFIG_LOCAL): PKG_CONFIG_INCDIR =3D $(XEN_LIBXENEVTCHN)/include -$(PKG_CONFIG_LOCAL): PKG_CONFIG_LIBDIR =3D $(CURDIR) - -.PHONY: all -all: build - -.PHONY: build -build: - $(MAKE) libs - -.PHONY: libs -libs: headers.chk $(LIB) $(PKG_CONFIG_INST) $(PKG_CONFIG_LOCAL) - -headers.chk: $(wildcard include/*.h) - -libxenevtchn.a: $(LIB_OBJS) - $(AR) rc $@ $^ - -libxenevtchn.so: libxenevtchn.so.$(MAJOR) - $(SYMLINK_SHLIB) $< $@ -libxenevtchn.so.$(MAJOR): libxenevtchn.so.$(MAJOR).$(MINOR) - $(SYMLINK_SHLIB) $< $@ - -libxenevtchn.so.$(MAJOR).$(MINOR): $(PIC_OBJS) libxenevtchn.map - $(CC) $(LDFLAGS) -Wl,$(SONAME_LDFLAG) -Wl,libxenevtchn.so.$(MAJOR) $(SHLI= B_LDFLAGS) -o $@ $(PIC_OBJS) $(LDLIBS_libxentoollog) $(LDLIBS_libxentoolcor= e) $(APPEND_LDFLAGS) - -.PHONY: install -install: build - $(INSTALL_DIR) $(DESTDIR)$(libdir) - $(INSTALL_DIR) $(DESTDIR)$(includedir) - $(INSTALL_SHLIB) libxenevtchn.so.$(MAJOR).$(MINOR) $(DESTDIR)$(libdir) - $(INSTALL_DATA) libxenevtchn.a $(DESTDIR)$(libdir) - $(SYMLINK_SHLIB) libxenevtchn.so.$(MAJOR).$(MINOR) $(DESTDIR)$(libdir)/li= bxenevtchn.so.$(MAJOR) - $(SYMLINK_SHLIB) libxenevtchn.so.$(MAJOR) $(DESTDIR)$(libdir)/libxenevtch= n.so - $(INSTALL_DATA) include/xenevtchn.h $(DESTDIR)$(includedir) - $(INSTALL_DATA) xenevtchn.pc $(DESTDIR)$(PKG_INSTALLDIR) - -.PHONY: uninstall -uninstall: - rm -f $(DESTDIR)$(PKG_INSTALLDIR)/xenevtchn.pc - rm -f $(DESTDIR)$(includedir)/xenevtchn.h - rm -f $(DESTDIR)$(libdir)/libxenevtchn.so - rm -f $(DESTDIR)$(libdir)/libxenevtchn.so.$(MAJOR) - rm -f $(DESTDIR)$(libdir)/libxenevtchn.so.$(MAJOR).$(MINOR) - rm -f $(DESTDIR)$(libdir)/libxenevtchn.a - -.PHONY: TAGS -TAGS: - etags -t *.c *.h - -.PHONY: clean -clean: - rm -rf *.rpm $(LIB) *~ $(DEPS_RM) $(LIB_OBJS) $(PIC_OBJS) - rm -f libxenevtchn.so.$(MAJOR).$(MINOR) libxenevtchn.so.$(MAJOR) - rm -f headers.chk - rm -f xenevtchn.pc - -.PHONY: distclean -distclean: clean diff --git a/tools/libs/foreignmemory/Makefile b/tools/libs/foreignmemory/M= akefile index ee5c3fd67e..28f1bddc96 100644 --- a/tools/libs/foreignmemory/Makefile +++ b/tools/libs/foreignmemory/Makefile @@ -3,11 +3,8 @@ include $(XEN_ROOT)/tools/Rules.mk =20 MAJOR =3D 1 MINOR =3D 3 -SHLIB_LDFLAGS +=3D -Wl,--version-script=3Dlibxenforeignmemory.map - -CFLAGS +=3D -Werror -Wmissing-prototypes -CFLAGS +=3D -I./include $(CFLAGS_xeninclude) -CFLAGS +=3D $(CFLAGS_libxentoollog) $(CFLAGS_libxentoolcore) +LIBNAME :=3D foreignmemory +USELIBS :=3D toollog toolcore =20 SRCS-y +=3D core.c SRCS-$(CONFIG_Linux) +=3D linux.c @@ -16,84 +13,7 @@ SRCS-$(CONFIG_SunOS) +=3D compat.c solaris.c SRCS-$(CONFIG_NetBSD) +=3D compat.c netbsd.c SRCS-$(CONFIG_MiniOS) +=3D minios.c =20 -LIB_OBJS :=3D $(patsubst %.c,%.o,$(SRCS-y)) -PIC_OBJS :=3D $(patsubst %.c,%.opic,$(SRCS-y)) - -LIB :=3D libxenforeignmemory.a -ifneq ($(nosharedlibs),y) -LIB +=3D libxenforeignmemory.so -endif - -PKG_CONFIG :=3D xenforeignmemory.pc -PKG_CONFIG_VERSION :=3D $(MAJOR).$(MINOR) - -ifneq ($(CONFIG_LIBXC_MINIOS),y) -PKG_CONFIG_INST :=3D $(PKG_CONFIG) -$(PKG_CONFIG_INST): PKG_CONFIG_PREFIX =3D $(prefix) -$(PKG_CONFIG_INST): PKG_CONFIG_INCDIR =3D $(includedir) -$(PKG_CONFIG_INST): PKG_CONFIG_LIBDIR =3D $(libdir) -endif - -PKG_CONFIG_LOCAL :=3D $(foreach pc,$(PKG_CONFIG),$(PKG_CONFIG_DIR)/$(pc)) +include $(XEN_ROOT)/tools/libs/libs.mk =20 -$(PKG_CONFIG_LOCAL): PKG_CONFIG_PREFIX =3D $(XEN_ROOT) $(PKG_CONFIG_LOCAL): PKG_CONFIG_INCDIR =3D $(XEN_LIBXENFOREIGNMEMORY)/incl= ude -$(PKG_CONFIG_LOCAL): PKG_CONFIG_LIBDIR =3D $(CURDIR) $(PKG_CONFIG_LOCAL): PKG_CONFIG_CFLAGS_LOCAL =3D $(CFLAGS_xeninclude) - -.PHONY: all -all: build - -.PHONY: build -build: - $(MAKE) libs - -.PHONY: libs -libs: headers.chk $(LIB) $(PKG_CONFIG_INST) $(PKG_CONFIG_LOCAL) - -headers.chk: $(wildcard include/*.h) - -libxenforeignmemory.a: $(LIB_OBJS) - $(AR) rc $@ $^ - -libxenforeignmemory.so: libxenforeignmemory.so.$(MAJOR) - $(SYMLINK_SHLIB) $< $@ -libxenforeignmemory.so.$(MAJOR): libxenforeignmemory.so.$(MAJOR).$(MINOR) - $(SYMLINK_SHLIB) $< $@ - -libxenforeignmemory.so.$(MAJOR).$(MINOR): $(PIC_OBJS) libxenforeignmemory.= map - $(CC) $(LDFLAGS) $(PTHREAD_LDFLAGS) -Wl,$(SONAME_LDFLAG) -Wl,libxenforeig= nmemory.so.$(MAJOR) $(SHLIB_LDFLAGS) -o $@ $(PIC_OBJS) $(LDLIBS_libxentooll= og) $(LDLIBS_libxentoolcore) $(APPEND_LDFLAGS) - -.PHONY: install -install: build - $(INSTALL_DIR) $(DESTDIR)$(libdir) - $(INSTALL_DIR) $(DESTDIR)$(includedir) - $(INSTALL_SHLIB) libxenforeignmemory.so.$(MAJOR).$(MINOR) $(DESTDIR)$(lib= dir) - $(INSTALL_DATA) libxenforeignmemory.a $(DESTDIR)$(libdir) - $(SYMLINK_SHLIB) libxenforeignmemory.so.$(MAJOR).$(MINOR) $(DESTDIR)$(lib= dir)/libxenforeignmemory.so.$(MAJOR) - $(SYMLINK_SHLIB) libxenforeignmemory.so.$(MAJOR) $(DESTDIR)$(libdir)/libx= enforeignmemory.so - $(INSTALL_DATA) include/xenforeignmemory.h $(DESTDIR)$(includedir) - $(INSTALL_DATA) xenforeignmemory.pc $(DESTDIR)$(PKG_INSTALLDIR) - -.PHONY: uninstall -uninstall: - rm -f $(DESTDIR)$(PKG_INSTALLDIR)/xenforeignmemory.pc - rm -f $(DESTDIR)$(includedir)/xenforeignmemory.h - rm -f $(DESTDIR)$(libdir)/libxenforeignmemory.so - rm -f $(DESTDIR)$(libdir)/libxenforeignmemory.so.$(MAJOR) - rm -f $(DESTDIR)$(libdir)/libxenforeignmemory.so.$(MAJOR).$(MINOR) - rm -f $(DESTDIR)$(libdir)/libxenforeignmemory.a - -.PHONY: TAGS -TAGS: - etags -t *.c *.h - -.PHONY: clean -clean: - rm -rf *.rpm $(LIB) *~ $(DEPS_RM) $(LIB_OBJS) $(PIC_OBJS) - rm -f libxenforeignmemory.so.$(MAJOR).$(MINOR) libxenforeignmemory.so.$(M= AJOR) - rm -f headers.chk - rm -f xenforeignmemory.pc - -.PHONY: distclean -distclean: clean diff --git a/tools/libs/gnttab/Makefile b/tools/libs/gnttab/Makefile index 6c2e7e36a2..2da8fbbb7f 100644 --- a/tools/libs/gnttab/Makefile +++ b/tools/libs/gnttab/Makefile @@ -3,11 +3,8 @@ include $(XEN_ROOT)/tools/Rules.mk =20 MAJOR =3D 1 MINOR =3D 2 -SHLIB_LDFLAGS +=3D -Wl,--version-script=3Dlibxengnttab.map - -CFLAGS +=3D -Werror -Wmissing-prototypes -CFLAGS +=3D -I./include $(CFLAGS_xeninclude) -CFLAGS +=3D $(CFLAGS_libxentoollog) $(CFLAGS_libxentoolcore) +LIBNAME :=3D gnttab +USELIBS :=3D toollog toolcore =20 SRCS-GNTTAB +=3D gnttab_core.c SRCS-GNTSHR +=3D gntshr_core.c @@ -18,84 +15,7 @@ SRCS-$(CONFIG_FreeBSD) +=3D $(SRCS-GNTTAB) $(SRCS-GNTSHR= ) freebsd.c SRCS-$(CONFIG_SunOS) +=3D gnttab_unimp.c gntshr_unimp.c SRCS-$(CONFIG_NetBSD) +=3D gnttab_unimp.c gntshr_unimp.c =20 -LIB_OBJS :=3D $(patsubst %.c,%.o,$(SRCS-y)) -PIC_OBJS :=3D $(patsubst %.c,%.opic,$(SRCS-y)) - -LIB :=3D libxengnttab.a -ifneq ($(nosharedlibs),y) -LIB +=3D libxengnttab.so -endif - -PKG_CONFIG :=3D xengnttab.pc -PKG_CONFIG_VERSION :=3D $(MAJOR).$(MINOR) - -ifneq ($(CONFIG_LIBXC_MINIOS),y) -PKG_CONFIG_INST :=3D $(PKG_CONFIG) -$(PKG_CONFIG_INST): PKG_CONFIG_PREFIX =3D $(prefix) -$(PKG_CONFIG_INST): PKG_CONFIG_INCDIR =3D $(includedir) -$(PKG_CONFIG_INST): PKG_CONFIG_LIBDIR =3D $(libdir) -endif - -PKG_CONFIG_LOCAL :=3D $(foreach pc,$(PKG_CONFIG),$(PKG_CONFIG_DIR)/$(pc)) +include $(XEN_ROOT)/tools/libs/libs.mk =20 -$(PKG_CONFIG_LOCAL): PKG_CONFIG_PREFIX =3D $(XEN_ROOT) $(PKG_CONFIG_LOCAL): PKG_CONFIG_INCDIR =3D $(XEN_LIBXENGNTTAB)/include -$(PKG_CONFIG_LOCAL): PKG_CONFIG_LIBDIR =3D $(CURDIR) $(PKG_CONFIG_LOCAL): PKG_CONFIG_CFLAGS_LOCAL =3D $(CFLAGS_xeninclude) - -.PHONY: all -all: build - -.PHONY: build -build: - $(MAKE) libs - -.PHONY: libs -libs: headers.chk $(LIB) $(PKG_CONFIG_INST) $(PKG_CONFIG_LOCAL) - -headers.chk: $(wildcard include/*.h) - -libxengnttab.a: $(LIB_OBJS) - $(AR) rc $@ $^ - -libxengnttab.so: libxengnttab.so.$(MAJOR) - $(SYMLINK_SHLIB) $< $@ -libxengnttab.so.$(MAJOR): libxengnttab.so.$(MAJOR).$(MINOR) - $(SYMLINK_SHLIB) $< $@ - -libxengnttab.so.$(MAJOR).$(MINOR): $(PIC_OBJS) libxengnttab.map - $(CC) $(LDFLAGS) -Wl,$(SONAME_LDFLAG) -Wl,libxengnttab.so.$(MAJOR) $(SHLI= B_LDFLAGS) -o $@ $(PIC_OBJS) $(LDLIBS_libxentoollog) $(LDLIBS_libxentoolcor= e) $(APPEND_LDFLAGS) - -.PHONY: install -install: build - $(INSTALL_DIR) $(DESTDIR)$(libdir) - $(INSTALL_DIR) $(DESTDIR)$(includedir) - $(INSTALL_SHLIB) libxengnttab.so.$(MAJOR).$(MINOR) $(DESTDIR)$(libdir) - $(INSTALL_DATA) libxengnttab.a $(DESTDIR)$(libdir) - $(SYMLINK_SHLIB) libxengnttab.so.$(MAJOR).$(MINOR) $(DESTDIR)$(libdir)/li= bxengnttab.so.$(MAJOR) - $(SYMLINK_SHLIB) libxengnttab.so.$(MAJOR) $(DESTDIR)$(libdir)/libxengntta= b.so - $(INSTALL_DATA) include/xengnttab.h $(DESTDIR)$(includedir) - $(INSTALL_DATA) xengnttab.pc $(DESTDIR)$(PKG_INSTALLDIR) - -.PHONY: uninstall -uninstall: - rm -f $(DESTDIR)$(PKG_INSTALLDIR)/xengnttab.pc - rm -f $(DESTDIR)$(includedir)/xengnttab.h - rm -f $(DESTDIR)$(libdir)/libxengnttab.so - rm -f $(DESTDIR)$(libdir)/libxengnttab.so.$(MAJOR) - rm -f $(DESTDIR)$(libdir)/libxengnttab.so.$(MAJOR).$(MINOR) - rm -f $(DESTDIR)$(libdir)/libxengnttab.a - -.PHONY: TAGS -TAGS: - etags -t *.c *.h - -.PHONY: clean -clean: - rm -rf *.rpm $(LIB) *~ $(DEPS_RM) $(LIB_OBJS) $(PIC_OBJS) - rm -f libxengnttab.so.$(MAJOR).$(MINOR) libxengnttab.so.$(MAJOR) - rm -f headers.chk - rm -f xengnttab.pc - -.PHONY: distclean -distclean: clean diff --git a/tools/libs/libs.mk b/tools/libs/libs.mk new file mode 100644 index 0000000000..e03d1c1f3e --- /dev/null +++ b/tools/libs/libs.mk @@ -0,0 +1,95 @@ +# Common Makefile for building a lib. +# +# Variables taken as input: +# LIBNAME: name of lib to build, will be prepended with "libxen" +# MAJOR: major version of lib +# MINOR: minor version of lib +# USELIBS: xen libs to use (e.g. "toolcore toollog") + +SHLIB_LDFLAGS +=3D -Wl,--version-script=3Dlibxen$(LIBNAME).map + +CFLAGS +=3D -Werror -Wmissing-prototypes +CFLAGS +=3D -I./include $(CFLAGS_xeninclude) +CFLAGS +=3D $(foreach lib, $(USELIBS), $(CFLAGS_libxen$(lib))) + +LDUSELIBS =3D $(foreach lib, $(USELIBS), $(LDLIBS_libxen$(lib))) + +LIB_OBJS :=3D $(patsubst %.c,%.o,$(SRCS-y)) +PIC_OBJS :=3D $(patsubst %.c,%.opic,$(SRCS-y)) + +LIB :=3D libxen$(LIBNAME).a +ifneq ($(nosharedlibs),y) +LIB +=3D libxen$(LIBNAME).so +endif + +PKG_CONFIG :=3D xen$(LIBNAME).pc +PKG_CONFIG_VERSION :=3D $(MAJOR).$(MINOR) + +ifneq ($(CONFIG_LIBXC_MINIOS),y) +PKG_CONFIG_INST :=3D $(PKG_CONFIG) +$(PKG_CONFIG_INST): PKG_CONFIG_PREFIX =3D $(prefix) +$(PKG_CONFIG_INST): PKG_CONFIG_INCDIR =3D $(includedir) +$(PKG_CONFIG_INST): PKG_CONFIG_LIBDIR =3D $(libdir) +endif + +PKG_CONFIG_LOCAL :=3D $(foreach pc,$(PKG_CONFIG),$(PKG_CONFIG_DIR)/$(pc)) + +$(PKG_CONFIG_LOCAL): PKG_CONFIG_PREFIX =3D $(XEN_ROOT) +$(PKG_CONFIG_LOCAL): PKG_CONFIG_LIBDIR =3D $(CURDIR) + +.PHONY: all +all: build + +.PHONY: build +build: + $(MAKE) libs + +.PHONY: libs +libs: headers.chk $(LIB) $(PKG_CONFIG_INST) $(PKG_CONFIG_LOCAL) + +headers.chk: $(wildcard include/*.h) + +libxen$(LIBNAME).a: $(LIB_OBJS) + $(AR) rc $@ $^ + +libxen$(LIBNAME).so: libxen$(LIBNAME).so.$(MAJOR) + $(SYMLINK_SHLIB) $< $@ +libxen$(LIBNAME).so.$(MAJOR): libxen$(LIBNAME).so.$(MAJOR).$(MINOR) + $(SYMLINK_SHLIB) $< $@ + +libxen$(LIBNAME).so.$(MAJOR).$(MINOR): $(PIC_OBJS) libxen$(LIBNAME).map + $(CC) $(LDFLAGS) $(PTHREAD_LDFLAGS) -Wl,$(SONAME_LDFLAG) -Wl,libxen$(LIBN= AME).so.$(MAJOR) $(SHLIB_LDFLAGS) -o $@ $(PIC_OBJS) $(LDUSELIBS) $(APPEND_L= DFLAGS) + +.PHONY: install +install: build + $(INSTALL_DIR) $(DESTDIR)$(libdir) + $(INSTALL_DIR) $(DESTDIR)$(includedir) + $(INSTALL_SHLIB) libxen$(LIBNAME).so.$(MAJOR).$(MINOR) $(DESTDIR)$(libdir) + $(INSTALL_DATA) libxen$(LIBNAME).a $(DESTDIR)$(libdir) + $(SYMLINK_SHLIB) libxen$(LIBNAME).so.$(MAJOR).$(MINOR) $(DESTDIR)$(libdir= )/libxen$(LIBNAME).so.$(MAJOR) + $(SYMLINK_SHLIB) libxen$(LIBNAME).so.$(MAJOR) $(DESTDIR)$(libdir)/libxen$= (LIBNAME).so + $(INSTALL_DATA) include/xen$(LIBNAME).h $(DESTDIR)$(includedir) + $(INSTALL_DATA) xen$(LIBNAME).pc $(DESTDIR)$(PKG_INSTALLDIR) + +.PHONY: uninstall +uninstall: + rm -f $(DESTDIR)$(PKG_INSTALLDIR)/xen$(LIBNAME).pc + rm -f $(DESTDIR)$(includedir)/xen$(LIBNAME).h + rm -f $(DESTDIR)$(libdir)/libxen$(LIBNAME).so + rm -f $(DESTDIR)$(libdir)/libxen$(LIBNAME).so.$(MAJOR) + rm -f $(DESTDIR)$(libdir)/libxen$(LIBNAME).so.$(MAJOR).$(MINOR) + rm -f $(DESTDIR)$(libdir)/libxen$(LIBNAME).a + +.PHONY: TAGS +TAGS: + etags -t *.c *.h + +.PHONY: clean +clean: + rm -rf *.rpm $(LIB) *~ $(DEPS_RM) $(LIB_OBJS) $(PIC_OBJS) + rm -f libxen$(LIBNAME).so.$(MAJOR).$(MINOR) libxen$(LIBNAME).so.$(MAJOR) + rm -f headers.chk + rm -f xen$(LIBNAME).pc + +.PHONY: distclean +distclean: clean diff --git a/tools/libs/toolcore/Makefile b/tools/libs/toolcore/Makefile index 8b1d48b7c2..edce61dca4 100644 --- a/tools/libs/toolcore/Makefile +++ b/tools/libs/toolcore/Makefile @@ -3,100 +3,19 @@ include $(XEN_ROOT)/tools/Rules.mk =20 MAJOR =3D 1 MINOR =3D 0 -SHLIB_LDFLAGS +=3D -Wl,--version-script=3Dlibxentoolcore.map - -CFLAGS +=3D -Werror -Wmissing-prototypes -CFLAGS +=3D -I./include -CFLAGS +=3D $(CFLAGS_xeninclude) +LIBNAME :=3D toolcore =20 SRCS-y +=3D handlereg.c =20 -LIB_OBJS :=3D $(patsubst %.c,%.o,$(SRCS-y)) -PIC_OBJS :=3D $(patsubst %.c,%.opic,$(SRCS-y)) - -LIB :=3D libxentoolcore.a -ifneq ($(nosharedlibs),y) -LIB +=3D libxentoolcore.so -endif - -PKG_CONFIG :=3D xentoolcore.pc -PKG_CONFIG_VERSION :=3D $(MAJOR).$(MINOR) - -ifneq ($(CONFIG_LIBXC_MINIOS),y) -PKG_CONFIG_INST :=3D $(PKG_CONFIG) -$(PKG_CONFIG_INST): PKG_CONFIG_PREFIX =3D $(prefix) -$(PKG_CONFIG_INST): PKG_CONFIG_INCDIR =3D $(includedir) -$(PKG_CONFIG_INST): PKG_CONFIG_LIBDIR =3D $(libdir) -endif - -PKG_CONFIG_LOCAL :=3D $(foreach pc,$(PKG_CONFIG),$(PKG_CONFIG_DIR)/$(pc)) +include $(XEN_ROOT)/tools/libs/libs.mk =20 -$(PKG_CONFIG_LOCAL): PKG_CONFIG_PREFIX =3D $(XEN_ROOT) $(PKG_CONFIG_LOCAL): PKG_CONFIG_INCDIR =3D $(XEN_LIBXENTOOLCORE)/include -$(PKG_CONFIG_LOCAL): PKG_CONFIG_LIBDIR =3D $(CURDIR) =20 AUTOINCS=3Dinclude/_xentoolcore_list.h =20 -.PHONY: all -all: build - -.PHONY: build -build: - $(MAKE) libs - -.PHONY: libs -libs: headers.chk $(LIB) $(PKG_CONFIG_INST) $(PKG_CONFIG_LOCAL) - $(LIB_OBJS): $(AUTOINCS) $(PIC_OBJS): $(AUTOINCS) =20 -headers.chk: $(wildcard include/*.h) $(AUTOINCS) - include/_xentoolcore_list.h: $(XEN_INCLUDE)/xen-external/bsd-sys-queue-h-s= eddery $(XEN_INCLUDE)/xen-external/bsd-sys-queue.h $(PERL) $^ --prefix=3Dxentoolcore >$@.new $(call move-if-changed,$@.new,$@) - -libxentoolcore.a: $(LIB_OBJS) - $(AR) rc $@ $^ - -libxentoolcore.so: libxentoolcore.so.$(MAJOR) - $(SYMLINK_SHLIB) $< $@ -libxentoolcore.so.$(MAJOR): libxentoolcore.so.$(MAJOR).$(MINOR) - $(SYMLINK_SHLIB) $< $@ - -libxentoolcore.so.$(MAJOR).$(MINOR): $(PIC_OBJS) libxentoolcore.map - $(CC) $(LDFLAGS) -Wl,$(SONAME_LDFLAG) -Wl,libxentoolcore.so.$(MAJOR) $(SH= LIB_LDFLAGS) -o $@ $(PIC_OBJS) $(APPEND_LDFLAGS) - -.PHONY: install -install: build - $(INSTALL_DIR) $(DESTDIR)$(libdir) - $(INSTALL_DIR) $(DESTDIR)$(includedir) - $(INSTALL_SHLIB) libxentoolcore.so.$(MAJOR).$(MINOR) $(DESTDIR)$(libdir) - $(INSTALL_DATA) libxentoolcore.a $(DESTDIR)$(libdir) - $(SYMLINK_SHLIB) libxentoolcore.so.$(MAJOR).$(MINOR) $(DESTDIR)$(libdir)/= libxentoolcore.so.$(MAJOR) - $(SYMLINK_SHLIB) libxentoolcore.so.$(MAJOR) $(DESTDIR)$(libdir)/libxentoo= lcore.so - $(INSTALL_DATA) include/xentoolcore.h $(DESTDIR)$(includedir) - $(INSTALL_DATA) xentoolcore.pc $(DESTDIR)$(PKG_INSTALLDIR) - -.PHONY: uinstall -uninstall: - rm -f $(DESTDIR)$(PKG_INSTALLDIR)/xentoolcore.pc - rm -f $(DESTDIR)$(includedir)/xentoolcore.h - rm -f $(DESTDIR)$(libdir)/libxentoolcore.so - rm -f $(DESTDIR)$(libdir)/libxentoolcore.so.$(MAJOR) - rm -f $(DESTDIR)$(libdir)/libxentoolcore.so.$(MAJOR).$(MINOR) - rm -f $(DESTDIR)$(libdir)/libxentoolcore.a - -.PHONY: TAGS -TAGS: - etags -t *.c *.h - -.PHONY: clean -clean: - rm -rf *.rpm $(LIB) *~ $(DEPS_RM) $(LIB_OBJS) $(PIC_OBJS) - rm -f libxentoolcore.so.$(MAJOR).$(MINOR) libxentoolcore.so.$(MAJOR) - rm -f headers.chk - rm -f xentoolcore.pc - -.PHONY: distclean -distclean: clean diff --git a/tools/libs/toollog/Makefile b/tools/libs/toollog/Makefile index 8aae2c8f53..9156e5d08e 100644 --- a/tools/libs/toollog/Makefile +++ b/tools/libs/toollog/Makefile @@ -3,91 +3,11 @@ include $(XEN_ROOT)/tools/Rules.mk =20 MAJOR =3D 1 MINOR =3D 0 -SHLIB_LDFLAGS +=3D -Wl,--version-script=3Dlibxentoollog.map - -CFLAGS +=3D -Werror -Wmissing-prototypes -CFLAGS +=3D -I./include +LIBNAME :=3D toollog =20 SRCS-y +=3D xtl_core.c SRCS-y +=3D xtl_logger_stdio.c =20 -LIB_OBJS :=3D $(patsubst %.c,%.o,$(SRCS-y)) -PIC_OBJS :=3D $(patsubst %.c,%.opic,$(SRCS-y)) - -LIB :=3D libxentoollog.a -ifneq ($(nosharedlibs),y) -LIB +=3D libxentoollog.so -endif - -PKG_CONFIG :=3D xentoollog.pc -PKG_CONFIG_VERSION :=3D $(MAJOR).$(MINOR) - -ifneq ($(CONFIG_LIBXC_MINIOS),y) -PKG_CONFIG_INST :=3D $(PKG_CONFIG) -$(PKG_CONFIG_INST): PKG_CONFIG_PREFIX =3D $(prefix) -$(PKG_CONFIG_INST): PKG_CONFIG_INCDIR =3D $(includedir) -$(PKG_CONFIG_INST): PKG_CONFIG_LIBDIR =3D $(libdir) -endif - -PKG_CONFIG_LOCAL :=3D $(foreach pc,$(PKG_CONFIG),$(PKG_CONFIG_DIR)/$(pc)) +include $(XEN_ROOT)/tools/libs/libs.mk =20 -$(PKG_CONFIG_LOCAL): PKG_CONFIG_PREFIX =3D $(XEN_ROOT) $(PKG_CONFIG_LOCAL): PKG_CONFIG_INCDIR =3D $(XEN_LIBXENTOOLLOG)/include -$(PKG_CONFIG_LOCAL): PKG_CONFIG_LIBDIR =3D $(CURDIR) - -.PHONY: all -all: build - -.PHONY: build -build: - $(MAKE) libs - -.PHONY: libs -libs: headers.chk $(LIB) $(PKG_CONFIG_INST) $(PKG_CONFIG_LOCAL) - -headers.chk: $(wildcard include/*.h) - -libxentoollog.a: $(LIB_OBJS) - $(AR) rc $@ $^ - -libxentoollog.so: libxentoollog.so.$(MAJOR) - $(SYMLINK_SHLIB) $< $@ -libxentoollog.so.$(MAJOR): libxentoollog.so.$(MAJOR).$(MINOR) - $(SYMLINK_SHLIB) $< $@ - -libxentoollog.so.$(MAJOR).$(MINOR): $(PIC_OBJS) libxentoollog.map - $(CC) $(LDFLAGS) -Wl,$(SONAME_LDFLAG) -Wl,libxentoollog.so.$(MAJOR) $(SHL= IB_LDFLAGS) -o $@ $(PIC_OBJS) $(APPEND_LDFLAGS) - -.PHONY: install -install: build - $(INSTALL_DIR) $(DESTDIR)$(libdir) - $(INSTALL_DIR) $(DESTDIR)$(includedir) - $(INSTALL_SHLIB) libxentoollog.so.$(MAJOR).$(MINOR) $(DESTDIR)$(libdir) - $(INSTALL_DATA) libxentoollog.a $(DESTDIR)$(libdir) - $(SYMLINK_SHLIB) libxentoollog.so.$(MAJOR).$(MINOR) $(DESTDIR)$(libdir)/l= ibxentoollog.so.$(MAJOR) - $(SYMLINK_SHLIB) libxentoollog.so.$(MAJOR) $(DESTDIR)$(libdir)/libxentool= log.so - $(INSTALL_DATA) include/xentoollog.h $(DESTDIR)$(includedir) - $(INSTALL_DATA) xentoollog.pc $(DESTDIR)$(PKG_INSTALLDIR) - -.PHONY: uinstall -uninstall: - rm -f $(DESTDIR)$(PKG_INSTALLDIR)/xentoollog.pc - rm -f $(DESTDIR)$(includedir)/xentoollog.h - rm -f $(DESTDIR)$(libdir)/libxentoollog.so - rm -f $(DESTDIR)$(libdir)/libxentoollog.so.$(MAJOR) - rm -f $(DESTDIR)$(libdir)/libxentoollog.so.$(MAJOR).$(MINOR) - rm -f $(DESTDIR)$(libdir)/libxentoollog.a - -.PHONY: TAGS -TAGS: - etags -t *.c *.h - -.PHONY: clean -clean: - rm -rf *.rpm $(LIB) *~ $(DEPS_RM) $(LIB_OBJS) $(PIC_OBJS) - rm -f libxentoollog.so.$(MAJOR).$(MINOR) libxentoollog.so.$(MAJOR) - rm -f headers.chk - rm -f xentoollog.pc - -.PHONY: distclean -distclean: clean --=20 2.16.4 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel