Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. # binutils
  12. PKG_URL:= http://pcc.ludd.ltu.se/
  13. PKG_SITES:= http://pcc.ludd.ltu.se/ftp/pub/pcc-releases/
  14. PKG_NOPARALLEL:= 1
  15. PKG_ARCH_DEPENDS:= !arm !cris
  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=${REAL_GNU_TARGET_NAME}
  21. CONFIGURE_ARGS+= --target=${REAL_GNU_TARGET_NAME}
  22. CONFIGURE_ARGS+= --with-assembler=/usr/bin/as
  23. CONFIGURE_ARGS+= --with-linker=/usr/bin/ld
  24. ifeq ($(ADK_TARGET_LIB_GLIBC),y)
  25. TARGET_CPPFLAGS+= -DADK_FOR_GLIBC
  26. else
  27. ifeq ($(ADK_TARGET_LIB_EGLIBC),y)
  28. TARGET_CPPFLAGS+= -DADK_FOR_GLIBC
  29. else
  30. ifeq ($(ADK_TARGET_LIB_UCLIBC),y)
  31. TARGET_CPPFLAGS+= -DADK_FOR_UCLIBC
  32. endif
  33. endif
  34. endif
  35. pcc-install:
  36. $(INSTALL_DIR) $(IDIR_PCC)
  37. cd ${WRKINST} && cp -r * ${IDIR_PCC}/
  38. include ${TOPDIR}/mk/pkg-bottom.mk