1
0

Makefile 976 B

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