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
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
/
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
35 ifeq ($(ADK_TARGET_LIB_UCLIBC_NG
),y
)
36 TARGET_CPPFLAGS
+= -DADK_FOR_UCLIBC
40 $(INSTALL_DIR
) $(IDIR_PCC
)
41 cd
${WRKINST} && cp
-r
* ${IDIR_PCC}/
43 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk