]> git.zerfleddert.de Git - hmcfgusb/commitdiff
add Makefile for OpenWRT
authorMichael Gernoth <michael@gernoth.net>
Sat, 1 Jun 2013 09:25:10 +0000 (11:25 +0200)
committerMichael Gernoth <michael@gernoth.net>
Sat, 1 Jun 2013 09:25:10 +0000 (11:25 +0200)
Makefile.OpenWRT [new file with mode: 0644]

diff --git a/Makefile.OpenWRT b/Makefile.OpenWRT
new file mode 100644 (file)
index 0000000..d5ee193
--- /dev/null
@@ -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))
Impressum, Datenschutz