From: Michael Gernoth Date: Sat, 1 Jun 2013 09:25:10 +0000 (+0200) Subject: add Makefile for OpenWRT X-Git-Tag: v0.100~91 X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/hmcfgusb/commitdiff_plain/0c274bf9ebe21b922346922d19888b1f30bb1144?ds=inline;hp=885a84e3a91964fb6dada1120be301102268e6ab add Makefile for OpenWRT --- diff --git a/Makefile.OpenWRT b/Makefile.OpenWRT new file mode 100644 index 0000000..d5ee193 --- /dev/null +++ b/Makefile.OpenWRT @@ -0,0 +1,27 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=hmcfgusb +PKG_RELEASE:=1 +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) + +include $(INCLUDE_DIR)/package.mk + +define Package/hmcfgusb + SECTION:=utils + CATEGORY:=Utilities + DEPENDS:=+libusb-1.0 + TITLE:=HM-CFG-USB utilities +endef + +define Build/Prepare + mkdir -p $(PKG_BUILD_DIR) + $(CP) ./src/* $(PKG_BUILD_DIR)/ +endef + +define Package/hmcfgusb/install + $(INSTALL_DIR) $(1)/usr/bin/ + $(INSTALL_BIN) $(PKG_BUILD_DIR)/hmland $(1)/usr/bin/ + $(INSTALL_BIN) $(PKG_BUILD_DIR)/hmsniff $(1)/usr/bin/ +endef + +$(eval $(call BuildPackage,hmcfgusb))