imgtec-ci20: genimage config/ u-boot env
[openadk.git] / package / pcc / Makefile
blob58ff82ad044d629d46e1dd64d6f6952d22490be9
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
6 PKG_NAME:= pcc
7 PKG_VERSION:= 1.0.0
8 PKG_RELEASE:= 1
9 PKG_HASH:= 5802dbba46d6ea3f9badaa55b9044a0416bb410020c24a5c2a8a2eaaf41156cb
10 PKG_DESCR:= portable c compiler
11 PKG_SECTION:= dev/lang
12 PKG_DEPENDS:= pcc-libs
13 PKG_URL:= http://pcc.ludd.ltu.se/
14 PKG_SITES:= http://pcc.ludd.ltu.se/ftp/pub/pcc-releases/
15 PKG_NOPARALLEL:= 1
17 PKG_CFLINE_PCC:= depends on ADK_BROKEN
19 PKG_ARCH_DEPENDS:= !arm !m68k !mips !ppc
20 DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tgz
22 include $(ADK_TOPDIR)/mk/package.mk
24 $(eval $(call PKG_template,PCC,pcc,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
26 # we cross-compile a native compiler for the target system
27 CONFIGURE_ARGS+= --host=${GNU_TARGET_NAME} \
28 --target=${GNU_TARGET_NAME} \
29 --with-assembler=/usr/bin/as \
30 --with-linker=/usr/bin/ld
32 ifeq ($(ADK_TARGET_LIB_GLIBC),y)
33 TARGET_CPPFLAGS+= -DADK_FOR_GLIBC
34 endif
35 ifeq ($(ADK_TARGET_LIB_UCLIBC_NG),y)
36 TARGET_CPPFLAGS+= -DADK_FOR_UCLIBC
37 endif
39 pcc-install:
40 $(INSTALL_DIR) $(IDIR_PCC)
41 cd ${WRKINST} && cp -r * ${IDIR_PCC}/
43 include ${ADK_TOPDIR}/mk/pkg-bottom.mk