Makefile 950 B

123456789101112131415161718192021222324252627282930313233343536
  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:= 4
  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. PKG_ARCH_DEPENDS:= !avr32
  13. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.xz
  14. include ${TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,STRACE,strace,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. ifeq ($(ADK_STATIC),y)
  17. TARGET_CFLAGS+= -static
  18. endif
  19. ifeq ($(ADK_TARGET_LIB_MUSL),y)
  20. TARGET_CPPFLAGS+= -DMSG_EXCEPT=020000 -D_LARGEFILE64_SOURCE=1
  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