From 0c274bf9ebe21b922346922d19888b1f30bb1144 Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Sat, 1 Jun 2013 11:25:10 +0200 Subject: [PATCH 1/1] add Makefile for OpenWRT --- Makefile.OpenWRT | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Makefile.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)) -- 2.39.5