Makefile 1.0 KB

123456789101112131415161718192021222324252627282930313233
  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:= pcc-libs
  5. PKG_VERSION:= 1.0.0
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= a8dfcd6d3be512bc3f16f96c9abf132e
  8. PKG_DESCR:= runtime for the Portable C Compiler
  9. PKG_SECTION:= lang
  10. PKG_URL:= http://pcc.ludd.ltu.se/
  11. PKG_SITES:= http://pcc.ludd.ltu.se/ftp/pub/pcc-releases/
  12. PKG_CFLINE_PCC_LIBS:= depends on ADK_BROKEN
  13. PKG_ARCH_DEPENDS:= !arm !m68k !mips !ppc
  14. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tgz
  15. include $(TOPDIR)/mk/package.mk
  16. $(eval $(call PKG_template,PCC_LIBS,pcc-libs,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. TARGET_CFLAGS:= $(filter-out -fstack-protector,$(TARGET_CFLAGS))
  18. # we cross-compile a native compiler for the target system
  19. CONFIGURE_ARGS+= --host=${GNU_TARGET_NAME}
  20. CONFIGURE_ARGS+= --target=${GNU_TARGET_NAME}
  21. pcc-libs-install:
  22. $(INSTALL_DIR) $(IDIR_PCC_LIBS)/usr/bin
  23. cd ${WRKINST} && cp -r * ${IDIR_PCC_LIBS}/
  24. include ${TOPDIR}/mk/pkg-bottom.mk