Makefile 802 B

1234567891011121314151617181920212223242526272829303132333435
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=gluon-respondd
  3. PKG_VERSION:=1
  4. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  5. include ../gluon.mk
  6. define Package/gluon-respondd
  7. SECTION:=gluon
  8. CATEGORY:=Gluon
  9. TITLE:=Provides node information to the network
  10. DEPENDS:=+gluon-core +libplatforminfo +libgluonutil +libuci +ubus +respondd
  11. endef
  12. define Build/Prepare
  13. mkdir -p $(PKG_BUILD_DIR)
  14. $(CP) ./src/* $(PKG_BUILD_DIR)/
  15. endef
  16. define Build/Compile
  17. $(call Build/Compile/Default)
  18. $(call GluonSrcDiet,./luasrc,$(PKG_BUILD_DIR)/luadest/)
  19. endef
  20. define Package/gluon-respondd/install
  21. $(CP) ./files/* $(1)/
  22. $(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/
  23. $(INSTALL_DIR) $(1)/lib/gluon/respondd
  24. $(CP) $(PKG_BUILD_DIR)/respondd.so $(1)/lib/gluon/respondd/respondd.so
  25. endef
  26. $(eval $(call BuildPackage,gluon-respondd))