1
0

Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 !cris !m68k !mips !ppc !avr32
  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=${REAL_GNU_TARGET_NAME}
  20. CONFIGURE_ARGS+= --target=${REAL_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_EGLIBC),y)
  27. TARGET_CPPFLAGS+= -DADK_FOR_GLIBC
  28. else
  29. ifeq ($(ADK_TARGET_LIB_UCLIBC),y)
  30. TARGET_CPPFLAGS+= -DADK_FOR_UCLIBC
  31. endif
  32. endif
  33. endif
  34. pcc-install:
  35. $(INSTALL_DIR) $(IDIR_PCC)
  36. cd ${WRKINST} && cp -r * ${IDIR_PCC}/
  37. include ${TOPDIR}/mk/pkg-bottom.mk