Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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
  5. PKG_VERSION:= 1.0.0
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 6e5d851ee57fe58702fe4e80ecd1f852
  8. PKG_DESCR:= portable c compiler
  9. PKG_SECTION:= dev/lang
  10. PKG_DEPENDS:= pcc-libs
  11. PKG_URL:= http://pcc.ludd.ltu.se/
  12. PKG_SITES:= http://pcc.ludd.ltu.se/ftp/pub/pcc-releases/
  13. PKG_NOPARALLEL:= 1
  14. PKG_CFLINE_PCC:= depends on ADK_BROKEN
  15. PKG_ARCH_DEPENDS:= !arm !m68k !mips !ppc
  16. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tgz
  17. include $(TOPDIR)/mk/package.mk
  18. $(eval $(call PKG_template,PCC,pcc,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. # we cross-compile a native compiler for the target system
  20. CONFIGURE_ARGS+= --host=${GNU_TARGET_NAME} \
  21. --target=${GNU_TARGET_NAME} \
  22. --with-assembler=/usr/bin/as \
  23. --with-linker=/usr/bin/ld
  24. ifeq ($(ADK_TARGET_LIB_GLIBC),y)
  25. TARGET_CPPFLAGS+= -DADK_FOR_GLIBC
  26. endif
  27. ifeq ($(ADK_TARGET_LIB_UCLIBC),y)
  28. TARGET_CPPFLAGS+= -DADK_FOR_UCLIBC
  29. endif
  30. pcc-install:
  31. $(INSTALL_DIR) $(IDIR_PCC)
  32. cd ${WRKINST} && cp -r * ${IDIR_PCC}/
  33. include ${TOPDIR}/mk/pkg-bottom.mk