From beb6a55d70c5d388dc0a81aa78e2119af1524b83 Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Sat, 20 Apr 2013 22:34:39 +0200 Subject: [PATCH] OpenWrt Makefile --- Makefile.OpenWrt | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Makefile.OpenWrt 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)) -- 2.39.5