Makefile 954 B

12345678910111213141516171819202122232425262728293031323334
  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 ${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:= debug
  10. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=strace/}
  11. include ${TOPDIR}/mk/package.mk
  12. $(eval $(call PKG_template,STRACE,strace,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  13. ifeq ($(ADK_STATIC),y)
  14. TARGET_CFLAGS+= -static
  15. endif
  16. ifeq ($(ADK_TARGET_LIB_MUSL),y)
  17. TARGET_CPPFLAGS+= -DMSG_EXCEPT=020000 -D_LARGEFILE64_SOURCE=1
  18. ifeq ($(ADK_LINUX_PPC),y)
  19. TARGET_CPPFLAGS+= -Dsigcontext_struct=sigcontext -include ppc-regs.h
  20. endif
  21. endif
  22. INSTALL_STYLE:= manual
  23. do-install:
  24. ${INSTALL_DIR} ${IDIR_STRACE}/usr/sbin
  25. ${INSTALL_BIN} ${WRKBUILD}/strace ${IDIR_STRACE}/usr/sbin
  26. include ${TOPDIR}/mk/pkg-bottom.mk