From: Nicolas Thill Date: Mon, 9 Oct 2006 20:07:02 +0000 (+0000) Subject: add optimization flags, remove install dir before building X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6a9c4b1fd52be7df87ead0e13e30138d4278b7b3;p=openwrt%2Fsvn-archive%2Farchive.git add optimization flags, remove install dir before building SVN-Revision: 5004 --- diff --git a/libs/libcli/Makefile b/libs/libcli/Makefile index 1f2c69ccf6..808bc6ffd0 100644 --- a/libs/libcli/Makefile +++ b/libs/libcli/Makefile @@ -12,12 +12,12 @@ PKG_NAME:=libcli PKG_VERSION:=1.8.5 PKG_RELEASE:=1 -PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@SF/libcli PKG_MD5SUM:=0fdd30df5a8c1388a4549751ba61247a PKG_CAT:=zcat +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install include $(INCLUDE_DIR)/package.mk @@ -26,21 +26,21 @@ define Package/libcli SECTION:=libs CATEGORY:=Libraries TITLE:=A Cisco-like CLI library - DESCRIPTION:=A Cisco-like Command Line Interface (CLI) library.\\\ - Provides a shared library for including a Cisco-like \\\ - command-line interface into other software. It's a telnet \\\ - interface which supports command-line editing, history, \\\ - authentication and callbacks for a user-definable function tree + DESCRIPTION:=\ + Libcli provides a shared library for including a Cisco-like \\\ + command-line interface into other software. It's a telnet \\\ + interface which supports command-line editing, history, \\\ + authentication and callbacks for a user-definable function tree. URL:=http://libcli.sourceforge.net/ endef define Build/Compile - $(call Build/Compile/Default, DESTDIR="$(PKG_INSTALL_DIR)" all install) -endef - -define Package/libcli/install - install -d -m0755 $(1)/usr/lib - $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcli.so.* $(1)/usr/lib + rm -rf $(PKG_INSTALL_DIR) + $(call Build/Compile/Default, \ + OPTIM="$(TARGET_CFLAGS)" \ + DESTDIR="$(PKG_INSTALL_DIR)" \ + all install \ + ) endef define Build/InstallDev @@ -51,9 +51,13 @@ define Build/InstallDev endef define Build/UninstallDev - rm -rf \ - $(STAGING_DIR)/usr/include/libcli.h \ + rm -rf $(STAGING_DIR)/usr/include/libcli.h \ $(STAGING_DIR)/usr/lib/libcli.so* endef +define Package/libcli/install + install -d -m0755 $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcli.so.* $(1)/usr/lib/ +endef + $(eval $(call BuildPackage,libcli))