2
0

Makefile 702 B

12345678910111213141516171819202122232425262728293031
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=ucode-mod-html
  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-html
  8. SECTION:=utils
  9. CATEGORY:=Utilities
  10. TITLE:=ucode HTML utility library
  11. DEPENDS:=+libucode
  12. endef
  13. define Package/ucode-mod-html/install
  14. $(INSTALL_DIR) $(1)/usr/lib/ucode
  15. $(CP) $(PKG_BUILD_DIR)/html.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 \
  22. -o $(PKG_BUILD_DIR)/html.so $(PKG_BUILD_DIR)/html.c
  23. endef
  24. $(eval $(call BuildPackage,ucode-mod-html))