1
0

Makefile 1008 B

1234567891011121314151617181920212223242526272829303132333435
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. include $(TOPDIR)/rules.mk
  3. PKG_NAME:=dwarves
  4. PKG_VERSION:=1.25
  5. PKG_RELEASE:=1
  6. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  7. PKG_SOURCE_URL:=https://fedorapeople.org/~acme/dwarves/
  8. PKG_HASH:=e7d45955f6f4eca25a4c8c3bd6611059b35dc217e45976681d7db170fccdec4a
  9. PKG_LICENSE:=GPL-2.0-only
  10. PKG_LICENSE_FILES:=COPYING
  11. include $(INCLUDE_DIR)/host-build.mk
  12. include $(INCLUDE_DIR)/cmake.mk
  13. CMAKE_HOST_OPTIONS += \
  14. -D__LIB=lib \
  15. -DCMAKE_INSTALL_RPATH="$(STAGING_DIR_HOST)/lib" \
  16. -DCMAKE_SKIP_RPATH=FALSE
  17. define Host/Clean
  18. $(RM) $(STAGING_DIR_HOST)/bin/{codiff,ctracer,dtagnames,pahole,pdwtags}
  19. $(RM) $(STAGING_DIR_HOST)/bin/{pfunct,pglobal,prefcnt,scncopy,syscse}
  20. $(RM) $(STAGING_DIR_HOST)/bin/{ostra-cg,btfdiff,fullcircle}
  21. $(RM) $(STAGING_DIR_HOST)/lib/libdwarves*.so*
  22. $(RM) $(STAGING_DIR_HOST)/share/man/man1/pahole.1
  23. rm -rf $(STAGING_DIR_HOST)/include/dwarves
  24. rm -rf $(STAGING_DIR_HOST)/share/dwarves
  25. $(call Host/Clean/Default)
  26. endef
  27. $(eval $(call HostBuild))