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:= 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_ARCH_DEPENDS:= !arm !m68k !mips !ppc
  15. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tgz
  16. include $(TOPDIR)/mk/package.mk
  17. $(eval $(call PKG_template,PCC,pcc,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  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. CONFIGURE_ARGS+= --with-assembler=/usr/bin/as
  22. CONFIGURE_ARGS+= --with-linker=/usr/bin/ld
  23. ifeq ($(ADK_TARGET_LIB_GLIBC),y)
  24. TARGET_CPPFLAGS+= -DADK_FOR_GLIBC
  25. else
  26. ifeq ($(ADK_TARGET_LIB_UCLIBC),y)
  27. TARGET_CPPFLAGS+= -DADK_FOR_UCLIBC
  28. endif
  29. endif
  30. endif
  31. pcc-install:
  32. $(INSTALL_DIR) $(IDIR_PCC)
  33. cd ${WRKINST} && cp -r * ${IDIR_PCC}/
  34. include ${TOPDIR}/mk/pkg-bottom.mk