diff options
-rw-r--r-- | gnu/usr.bin/cc/Makefile.tgt | 4 | ||||
-rw-r--r-- | gnu/usr.bin/cc/cc_tools/Makefile | 6 | ||||
-rw-r--r-- | gnu/usr.bin/cc/include/Makefile | 4 | ||||
-rw-r--r-- | gnu/usr.bin/cc/libgcc/Makefile | 9 |
4 files changed, 17 insertions, 6 deletions
diff --git a/gnu/usr.bin/cc/Makefile.tgt b/gnu/usr.bin/cc/Makefile.tgt index 3b65c427e62..a0857cdbe0b 100644 --- a/gnu/usr.bin/cc/Makefile.tgt +++ b/gnu/usr.bin/cc/Makefile.tgt @@ -1,5 +1,5 @@ # $FreeBSD: src/gnu/usr.bin/cc/Makefile.tgt,v 1.11.8.1 2009/04/15 03:14:26 kensmith Exp $ -# $OpenBSD: Makefile.tgt,v 1.1 2009/10/15 20:50:19 robert Exp $ +# $OpenBSD: Makefile.tgt,v 1.2 2010/04/25 21:04:27 kettenis Exp $ TARGET_ARCH?= ${MACHINE_ARCH} @@ -7,6 +7,8 @@ TARGET_ARCH?= ${MACHINE_ARCH} GCC_CPU= arm .elif ${TARGET_ARCH} == "i386" || ${TARGET_ARCH} == "amd64" GCC_CPU= i386 +.elif ${TARGET_ARCH} == "hppa" +GCC_CPU= pa .elif ${TARGET_ARCH} == "ia64" TARGET_CPU_DEFAULT= MASK_GNU_AS|MASK_GNU_LD GCC_CPU= ia64 diff --git a/gnu/usr.bin/cc/cc_tools/Makefile b/gnu/usr.bin/cc/cc_tools/Makefile index 5f78a6afa20..5710dc5586f 100644 --- a/gnu/usr.bin/cc/cc_tools/Makefile +++ b/gnu/usr.bin/cc/cc_tools/Makefile @@ -1,5 +1,5 @@ # $FreeBSD: src/gnu/usr.bin/cc/cc_tools/Makefile,v 1.88.8.1 2009/04/15 03:14:26 kensmith Exp $ -# $OpenBSD: Makefile,v 1.3 2009/11/17 18:53:43 robert Exp $ +# $OpenBSD: Makefile,v 1.4 2010/04/25 21:04:27 kettenis Exp $ .include <bsd.own.mk> @@ -49,8 +49,10 @@ TARGET_INC+= ${GCC_CPU}/x86-64.h TARGET_INC+= ${GCC_CPU}/openbsd64.h .elif ${TARGET_ARCH} == "sparc64" TARGET_INC+= ${GCC_CPU}/openbsd64.h -.else +.elif ${TARGET_ARCH} == "i386" TARGET_INC+= ${GCC_CPU}/openbsdelf.h +.else +TARGET_INC+= ${GCC_CPU}/openbsd.h .endif TARGET_INC+= defaults.h diff --git a/gnu/usr.bin/cc/include/Makefile b/gnu/usr.bin/cc/include/Makefile index cd59b51f33f..12e734a2982 100644 --- a/gnu/usr.bin/cc/include/Makefile +++ b/gnu/usr.bin/cc/include/Makefile @@ -1,5 +1,5 @@ # $FreeBSD: src/gnu/usr.bin/cc/include/Makefile,v 1.9.8.1 2009/04/15 03:14:26 kensmith Exp $ -# $OpenBSD: Makefile,v 1.2 2009/11/17 18:53:43 robert Exp $ +# $OpenBSD: Makefile,v 1.3 2010/04/25 21:04:27 kettenis Exp $ .include <bsd.own.mk> @@ -29,7 +29,7 @@ clean: _SUBDIRUSE depend: # Nothing here so far... -.if ${TARGET_ARCH} != "sparc64" +.if ${TARGET_ARCH} != "hppa" && ${TARGET_ARCH} != "sparc64" install: ${INCS} ${INSTALL} -C -o ${BINOWN} -g ${LOCALEGRP} -m ${NONBINMODE} ${.ALLSRC} \ ${DESTDIR}/usr/include diff --git a/gnu/usr.bin/cc/libgcc/Makefile b/gnu/usr.bin/cc/libgcc/Makefile index 12d280fabb9..886434bcbe9 100644 --- a/gnu/usr.bin/cc/libgcc/Makefile +++ b/gnu/usr.bin/cc/libgcc/Makefile @@ -1,5 +1,5 @@ # $FreeBSD: src/gnu/lib/libgcc/Makefile,v 1.58.8.1 2009/04/15 03:14:26 kensmith Exp $ -# $OpenBSD: Makefile,v 1.2 2009/11/17 18:53:43 robert Exp $ +# $OpenBSD: Makefile,v 1.3 2010/04/25 21:04:27 kettenis Exp $ .include <bsd.own.mk> @@ -116,6 +116,13 @@ LIB2FUNCS_EXTRA = floatunsidf.c floatunsisf.c # _fixsfsi _fixunssfsi _floatdidf _floatdisf .endif +.if ${TARGET_ARCH} == "hppa" +CFLAGS+= -DELF=1 -DLINUX=1 +LIB1ASMFUNCS = _divI _divU _remI _remU _div_const _mulI _dyncall +LIB1ASMSRC = pa/milli64.S +LIB2FUNCS_EXTRA = fptr.c +.endif + .if ${TARGET_ARCH} == "powerpc" # from config/rs6000/t-ppccomm LIB2FUNCS_EXTRA = tramp.asm darwin-ldouble.c |