From: Michael Gernoth Date: Sat, 20 Apr 2013 20:34:39 +0000 (+0200) Subject: OpenWrt Makefile X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/fs20pcs/commitdiff_plain/beb6a55d70c5d388dc0a81aa78e2119af1524b83 OpenWrt Makefile --- diff --git a/Makefile.OpenWrt b/Makefile.OpenWrt new file mode 100644 index 0000000..e45e6c6 --- /dev/null +++ b/Makefile.OpenWrt @@ -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))