Makefile 729 B

12345678910111213141516171819202122232425262728293031
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=ucode-mod-lua
  3. PKG_RELEASE:=1
  4. PKG_LICENSE:=ISC
  5. PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
  6. include $(INCLUDE_DIR)/package.mk
  7. define Package/ucode-mod-lua
  8. SECTION:=utils
  9. CATEGORY:=Utilities
  10. TITLE:=ucode to Lua bridge library
  11. DEPENDS:=+libucode +liblua
  12. endef
  13. define Package/ucode-mod-lua/install
  14. $(INSTALL_DIR) $(1)/usr/lib/ucode
  15. $(CP) $(PKG_BUILD_DIR)/lua.so $(1)/usr/lib/ucode/
  16. endef
  17. define Build/Configure
  18. endef
  19. define Build/Compile
  20. $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) $(FPIC) \
  21. -Wall -ffunction-sections -Wl,--gc-sections -shared -Wl,--no-as-needed -llua \
  22. -o $(PKG_BUILD_DIR)/lua.so $(PKG_BUILD_DIR)/lua.c
  23. endef
  24. $(eval $(call BuildPackage,ucode-mod-lua))