Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. --target=${GNU_TARGET_NAME} \
  21. --with-assembler=/usr/bin/as \
  22. --with-linker=/usr/bin/ld
  23. ifeq ($(ADK_TARGET_LIB_GLIBC),y)
  24. TARGET_CPPFLAGS+= -DADK_FOR_GLIBC
  25. endif
  26. ifeq ($(ADK_TARGET_LIB_UCLIBC),y)
  27. TARGET_CPPFLAGS+= -DADK_FOR_UCLIBC
  28. endif
  29. pcc-install:
  30. $(INSTALL_DIR) $(IDIR_PCC)
  31. cd ${WRKINST} && cp -r * ${IDIR_PCC}/
  32. include ${TOPDIR}/mk/pkg-bottom.mk