Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= strace
  5. PKG_VERSION:= 5.16
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= dc7db230ff3e57c249830ba94acab2b862da1fcaac55417e9b85041a833ca285
  8. PKG_DESCR:= system call trace program
  9. PKG_SECTION:= app/debug
  10. PKG_URL:= https://strace.io
  11. PKG_SITES:= https://strace.io/files/$(PKG_VERSION)/
  12. PKG_ARCH_DEPENDS:= !h8300 !nds32
  13. include ${ADK_TOPDIR}/mk/package.mk
  14. $(eval $(call PKG_template,STRACE,strace,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  15. ifeq ($(OS_FOR_BUILD),Darwin)
  16. XAKE_FLAGS+= CPPFLAGS_FOR_BUILD="-I$(STAGING_TARGET_DIR)/usr/include -I$(LINUX_DIR)/include/uapi -I$(LINUX_DIR)/arch/$(ADK_TARGET_ARCH)/include/generated"
  17. else
  18. XAKE_FLAGS+= CPPFLAGS_FOR_BUILD="-I$(LINUX_DIR)/include/uapi -I$(LINUX_DIR)/arch/$(ADK_TARGET_ARCH)/include/generated"
  19. endif
  20. ifeq ($(ADK_TARGET_LIB_MUSL),y)
  21. TARGET_CPPFLAGS+= -DMSG_EXCEPT=020000 -D_LARGEFILE64_SOURCE=1
  22. CONFIGURE_ENV+= st_cv_m32_mpers=no \
  23. st_cv_mx32_mpers=no
  24. endif
  25. ifeq ($(ADK_TARGET_USE_STATIC_LIBS_ONLY),y)
  26. TARGET_LDFLAGS+= -pthread
  27. endif
  28. CONFIGURE_ARGS+= --enable-mpers=check
  29. INSTALL_STYLE:= manual
  30. do-install:
  31. ${INSTALL_DIR} ${IDIR_STRACE}/usr/sbin
  32. ${INSTALL_BIN} ${WRKBUILD}/src/strace ${IDIR_STRACE}/usr/sbin
  33. include ${ADK_TOPDIR}/mk/pkg-bottom.mk