Makefile 852 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #
  2. # Copyright (C) 2012 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=fbtest
  9. PKG_RELEASE:=1
  10. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  11. include $(INCLUDE_DIR)/package.mk
  12. define Package/fbtest
  13. SECTION:=utils
  14. CATEGORY:=Utilities
  15. TITLE:=Frame buffer device testing tool
  16. DEPENDS:=@DISPLAY_SUPPORT
  17. endef
  18. define Build/Prepare
  19. mkdir -p $(PKG_BUILD_DIR)
  20. $(CP) ./src/* $(PKG_BUILD_DIR)/
  21. endef
  22. define Build/Configure
  23. endef
  24. define Build/Compile
  25. $(MAKE) -C $(PKG_BUILD_DIR) \
  26. CC="$(TARGET_CC)" \
  27. CFLAGS="$(TARGET_CFLAGS) -Wall" \
  28. LDFLAGS="$(TARGET_LDFLAGS)"
  29. endef
  30. define Package/fbtest/install
  31. $(INSTALL_DIR) $(1)/usr/sbin
  32. $(INSTALL_BIN) $(PKG_BUILD_DIR)/fbtest $(1)/usr/sbin/
  33. endef
  34. $(eval $(call BuildPackage,fbtest))