1
0

Makefile 916 B

12345678910111213141516171819202122232425262728293031
  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:= 4.8
  6. PKG_RELEASE:= 8
  7. PKG_MD5SUM:= c575ef43829586801f514fd91bfe7575
  8. PKG_DESCR:= system call trace program
  9. PKG_SECTION:= app/debug
  10. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=strace/}
  11. include ${ADK_TOPDIR}/mk/package.mk
  12. $(eval $(call PKG_template,STRACE,strace,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  13. ifeq ($(ADK_TARGET_LIB_MUSL),y)
  14. TARGET_CPPFLAGS+= -DMSG_EXCEPT=020000 -D_LARGEFILE64_SOURCE=1
  15. ifeq ($(ADK_LINUX_PPC),y)
  16. TARGET_CPPFLAGS+= -Dsigcontext_struct=sigcontext -include ppc-regs.h
  17. endif
  18. endif
  19. INSTALL_STYLE:= manual
  20. do-install:
  21. ${INSTALL_DIR} ${IDIR_STRACE}/usr/sbin
  22. ${INSTALL_BIN} ${WRKBUILD}/strace ${IDIR_STRACE}/usr/sbin
  23. include ${ADK_TOPDIR}/mk/pkg-bottom.mk