1
0
This repository has been archived on 2024-07-22. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2022-11-27 10:16:14 +00:00

71 lines
1.8 KiB
Makefile

# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id$
include $(TOPDIR)/rules.mk
#These lines concatanate the package name and list the URL location from which the package source code is to be downloaded
PKG_NAME:=libzcmd_tool
PKG_VERSION:=1.0
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
#PKG_SOURCE_URL:=http://www.cs.uh.edu/~vivekian/downloads/
PKG_SOURCE_URL:=@ZyXEL_SITE/public/ZyXEL
DL_DIR:=$(TOPDIR)/dl/public/zyxel
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
#These lines describe what your package does and its place in the menu config
PKG_BUILD_DEPENDS:=zcfg
define Package/libzcmd_tool
SECTION:=net
CATEGORY:=Zyxel Packages
TITLE:= ZyXEL Configuration Management Daemon Tool
DESCRIPTION:=
#DEPENDS:=zcfg +libjson
#DEPENDS:=zcfg
endef
define Package/libzcmd_tool/config
select PACKAGE_libjson if PACKAGE_zcfg
endef
#Disable Dependencies Check
define CheckDependencies
endef
#For the compile rules you need to specify the cross compiler which needs to be used :
#These lines describe where your binary images are to be installed ¡V its the equivalent to make install
# This particular package is a library and the installation rules reflect it
define Package/libzcmd_tool/compile
$(MAKE) -C $(PKG_BUILD_DIR)
endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(CP) $(PKG_BUILD_DIR)/*.h $(1)/usr/include/
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/libzcmd_tool.so $(1)/usr/lib/
endef
define Package/libzcmd_tool/install
$(INSTALL_DIR) $(1)/lib
$(INSTALL_DIR) $(1)/lib/public
$(INSTALL_BIN) $(PKG_BUILD_DIR)/libzcmd_tool.so $(1)/lib/public
ln -s /lib/public/libzcmd_tool.so $(1)/lib/libzcmd_tool.so
endef
$(eval $(call BuildPackage,libzcmd_tool))