1 Star 0 Fork 0

QianTu/TLC1.MqttService

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 1.19 KB
一键复制 编辑 原始数据 按行查看 历史
wei 提交于 2023-11-28 10:00 . 去除配置文件
include $(TOPDIR)/rules.mk
PKG_NAME:=broker
PKG_VERSION:=1.0.0
PKG_RELEASE:=1
include $(BUILD_DIR)/package.mk
define Package/$(PKG_NAME)
SECTION:=utils
CATEGORY:=Allwinner
TITLE:=broker
DEPENDS:=+libpthread +libopenssl
endef
define Package/$(PKG_NAME)/description
Mqtt Broker
endef
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
$(CP) -r ./build/* $(PKG_BUILD_DIR)/
endef
define Build/Compile/$(PKG_NAME)
$(MAKE) -C $(PKG_BUILD_DIR)/ \
ARCH="$(TARGET_ARCH)" \
AR="$(TARGET_AR)" \
CC="$(TARGET_CC)" \
LD=$(TARGET_CROSS)ld \
CXX="$(TARGET_CXX)" \
CFLAGS="$(TARGET_CFLAGS)" \
LDFLAGS="$(TARGET_LDFLAGS)" \
all
endef
define Build/Compile
#$(Build/Compile/$(PKG_NAME))
endef
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/broker $(1)/usr/sbin/broker
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) $(PKG_BUILD_DIR)/base-files/etc/init.d/broker $(1)/etc/init.d/
# $(INSTALL_DIR) $(1)/usr/sbin
# $(INSTALL_BIN) $(PKG_BUILD_DIR)/tinymqtt.conf $(1)/usr/sbin/tinymqtt.conf
#
# $(INSTALL_DIR) $(1)/usr/sbin
# $(INSTALL_BIN) $(PKG_BUILD_DIR)/pwd.conf $(1)/usr/sbin/pwd.conf
endef
$(eval $(call BuildPackage,$(PKG_NAME)))
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/qiantugit/TLC1.MqttService.git
[email protected]:qiantugit/TLC1.MqttService.git
qiantugit
TLC1.MqttService
TLC1.MqttService
master

搜索帮助