]> git.zerfleddert.de Git - fs20pcs/commitdiff
OpenWrt Makefile
authorMichael Gernoth <michael@gernoth.net>
Sat, 20 Apr 2013 20:34:39 +0000 (22:34 +0200)
committerMichael Gernoth <michael@gernoth.net>
Sat, 20 Apr 2013 20:34:39 +0000 (22:34 +0200)
Makefile.OpenWrt [new file with mode: 0644]

diff --git a/Makefile.OpenWrt b/Makefile.OpenWrt
new file mode 100644 (file)
index 0000000..e45e6c6
--- /dev/null
@@ -0,0 +1,26 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=fs20pcs
+PKG_RELEASE:=1
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/fs20pcs
+  SECTION:=utils
+  CATEGORY:=Utilities
+  DEPENDS:=+libusb-1.0
+  TITLE:=FS20PCS utility
+endef
+
+define Build/Prepare
+       mkdir -p $(PKG_BUILD_DIR)
+       $(CP) ./src/* $(PKG_BUILD_DIR)/
+endef
+
+define Package/fs20pcs/install
+       $(INSTALL_DIR) $(1)/usr/bin/
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/fs20pcs $(1)/usr/bin/
+endef
+
+$(eval $(call BuildPackage,fs20pcs))
Impressum, Datenschutz