head	1.9;
access;
symbols
	netbsd-11-0-RC5:1.9
	netbsd-11-0-RC4:1.9
	netbsd-11-0-RC3:1.9
	netbsd-11-0-RC2:1.9
	netbsd-11-0-RC1:1.9
	perseant-exfatfs-base-20250801:1.9
	netbsd-11:1.9.0.8
	netbsd-11-base:1.9
	netbsd-10-1-RELEASE:1.8
	perseant-exfatfs-base-20240630:1.9
	perseant-exfatfs:1.9.0.6
	perseant-exfatfs-base:1.9
	netbsd-8-3-RELEASE:1.5
	netbsd-9-4-RELEASE:1.6
	netbsd-10-0-RELEASE:1.8
	netbsd-10-0-RC6:1.8
	netbsd-10-0-RC5:1.8
	netbsd-10-0-RC4:1.8
	netbsd-10-0-RC3:1.8
	netbsd-10-0-RC2:1.8
	thorpej-ifq:1.9.0.4
	thorpej-ifq-base:1.9
	thorpej-altq-separation:1.9.0.2
	thorpej-altq-separation-base:1.9
	netbsd-10-0-RC1:1.8
	netbsd-10:1.8.0.20
	netbsd-10-base:1.8
	bouyer-sunxi-drm:1.8.0.18
	bouyer-sunxi-drm-base:1.8
	netbsd-9-3-RELEASE:1.6
	thorpej-i2c-spi-conf2:1.8.0.16
	thorpej-i2c-spi-conf2-base:1.8
	thorpej-futex2:1.8.0.14
	thorpej-futex2-base:1.8
	thorpej-cfargs2:1.8.0.12
	thorpej-cfargs2-base:1.8
	cjep_sun2x-base1:1.8
	cjep_sun2x:1.8.0.10
	cjep_sun2x-base:1.8
	cjep_staticlib_x-base1:1.8
	netbsd-9-2-RELEASE:1.6
	cjep_staticlib_x:1.8.0.8
	cjep_staticlib_x-base:1.8
	thorpej-i2c-spi-conf:1.8.0.6
	thorpej-i2c-spi-conf-base:1.8
	thorpej-cfargs:1.8.0.4
	thorpej-cfargs-base:1.8
	thorpej-futex:1.8.0.2
	thorpej-futex-base:1.8
	netbsd-9-1-RELEASE:1.6
	bouyer-xenpvh-base2:1.6
	phil-wifi-20200421:1.6
	bouyer-xenpvh-base1:1.6
	phil-wifi-20200411:1.6
	bouyer-xenpvh:1.6.0.10
	bouyer-xenpvh-base:1.6
	is-mlppp:1.6.0.8
	is-mlppp-base:1.6
	phil-wifi-20200406:1.6
	netbsd-8-2-RELEASE:1.5
	ad-namecache-base3:1.6
	netbsd-9-0-RELEASE:1.6
	netbsd-9-0-RC2:1.6
	ad-namecache-base2:1.6
	ad-namecache-base1:1.6
	ad-namecache:1.6.0.6
	ad-namecache-base:1.6
	netbsd-9-0-RC1:1.6
	phil-wifi-20191119:1.6
	netbsd-9:1.6.0.4
	netbsd-9-base:1.6
	phil-wifi-20190609:1.6
	netbsd-8-1-RELEASE:1.5
	netbsd-8-1-RC1:1.5
	isaki-audio2:1.6.0.2
	isaki-audio2-base:1.6
	pgoyette-compat-merge-20190127:1.5.16.1
	pgoyette-compat-20190127:1.6
	pgoyette-compat-20190118:1.6
	pgoyette-compat-1226:1.6
	pgoyette-compat-1126:1.6
	pgoyette-compat-1020:1.6
	pgoyette-compat-0930:1.6
	pgoyette-compat-0906:1.5
	netbsd-7-2-RELEASE:1.1
	pgoyette-compat-0728:1.5
	netbsd-8-0-RELEASE:1.5
	phil-wifi:1.5.0.18
	phil-wifi-base:1.5
	pgoyette-compat-0625:1.5
	netbsd-8-0-RC2:1.5
	pgoyette-compat-0521:1.5
	pgoyette-compat-0502:1.5
	pgoyette-compat-0422:1.5
	netbsd-8-0-RC1:1.5
	pgoyette-compat-0415:1.5
	pgoyette-compat-0407:1.5
	pgoyette-compat-0330:1.5
	pgoyette-compat-0322:1.5
	pgoyette-compat-0315:1.5
	netbsd-7-1-2-RELEASE:1.1
	pgoyette-compat:1.5.0.16
	pgoyette-compat-base:1.5
	netbsd-7-1-1-RELEASE:1.1
	tls-maxphys-base-20171202:1.5
	matt-nb8-mediatek:1.5.0.14
	matt-nb8-mediatek-base:1.5
	nick-nhusb-base-20170825:1.5
	perseant-stdc-iso10646:1.5.0.12
	perseant-stdc-iso10646-base:1.5
	netbsd-8:1.5.0.10
	netbsd-8-base:1.5
	prg-localcount2-base3:1.5
	prg-localcount2-base2:1.5
	prg-localcount2-base1:1.5
	prg-localcount2:1.5.0.8
	prg-localcount2-base:1.5
	pgoyette-localcount-20170426:1.5
	bouyer-socketcan-base1:1.5
	jdolecek-ncq:1.5.0.6
	jdolecek-ncq-base:1.5
	pgoyette-localcount-20170320:1.5
	netbsd-7-1:1.1.0.16
	netbsd-7-1-RELEASE:1.1
	netbsd-7-1-RC2:1.1
	nick-nhusb-base-20170204:1.5
	netbsd-7-nhusb-base-20170116:1.1
	bouyer-socketcan:1.5.0.4
	bouyer-socketcan-base:1.5
	pgoyette-localcount-20170107:1.5
	netbsd-7-1-RC1:1.1
	nick-nhusb-base-20161204:1.5
	pgoyette-localcount-20161104:1.5
	netbsd-7-0-2-RELEASE:1.1
	nick-nhusb-base-20161004:1.5
	localcount-20160914:1.5
	netbsd-7-nhusb:1.1.0.14
	netbsd-7-nhusb-base:1.1
	pgoyette-localcount-20160806:1.5
	pgoyette-localcount-20160726:1.5
	pgoyette-localcount:1.5.0.2
	pgoyette-localcount-base:1.5
	nick-nhusb-base-20160907:1.5
	nick-nhusb-base-20160529:1.5
	netbsd-7-0-1-RELEASE:1.1
	nick-nhusb-base-20160422:1.5
	nick-nhusb-base-20160319:1.5
	nick-nhusb-base-20151226:1.5
	netbsd-7-0:1.1.0.12
	netbsd-7-0-RELEASE:1.1
	nick-nhusb-base-20150921:1.5
	netbsd-7-0-RC3:1.1
	netbsd-7-0-RC2:1.1
	netbsd-7-0-RC1:1.1
	nick-nhusb-base-20150606:1.2
	nick-nhusb-base-20150406:1.2
	nick-nhusb:1.2.0.2
	nick-nhusb-base:1.2
	tls-maxphys-base:1.1
	tls-maxphys:1.1.0.10
	netbsd-7:1.1.0.8
	netbsd-7-base:1.1
	yamt-pagecache:1.1.0.6
	rmind-smpnet-base:1.1
	rmind-smpnet:1.1.0.4
	rmind-smpnet-nbase:1.1
	yamt-pagecache-base9:1.1
	tls-earlyentropy:1.1.0.2
	tls-earlyentropy-base:1.1
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1
	riastradh-drm2-base3:1.1;
locks; strict;
comment	@# @;


1.9
date	2023.08.08.06.27.32;	author mrg;	state Exp;
branches;
next	1.8;
commitid	fXtLeeKhU4aARWzE;

1.8
date	2020.09.14.16.13.18;	author skrll;	state Exp;
branches;
next	1.7;
commitid	siuHxcE2uV3U62oC;

1.7
date	2020.09.07.02.22.27;	author mrg;	state Exp;
branches;
next	1.6;
commitid	n0Jkb7DQYuFcK3nC;

1.6
date	2018.09.22.12.24.02;	author rin;	state Exp;
branches;
next	1.5;
commitid	oPiNEJ7VnAF626TA;

1.5
date	2015.09.06.02.22.50;	author uebayasi;	state Exp;
branches
	1.5.16.1
	1.5.18.1;
next	1.4;
commitid	uh6aTC1Cy6Dsv8Ay;

1.4
date	2015.08.24.14.04.24;	author uebayasi;	state Exp;
branches;
next	1.3;
commitid	JQO3eAMUebR2Owyy;

1.3
date	2015.08.20.06.21.54;	author uebayasi;	state Exp;
branches;
next	1.2;
commitid	fXnfHPiLFpHlnYxy;

1.2
date	2014.11.15.12.20.06;	author uebayasi;	state Exp;
branches
	1.2.2.1;
next	1.1;
commitid	GRyXHPauOYsgihYx;

1.1
date	2014.02.24.07.23.42;	author skrll;	state Exp;
branches
	1.1.4.1
	1.1.6.1
	1.1.10.1;
next	;
commitid	HknWmBfzukaU7kqx;

1.5.16.1
date	2018.09.30.01.45.44;	author pgoyette;	state Exp;
branches;
next	;
commitid	SQ44grEPCeKPh4UA;

1.5.18.1
date	2019.06.10.22.06.18;	author christos;	state Exp;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;

1.2.2.1
date	2015.09.22.12.05.43;	author skrll;	state Exp;
branches;
next	;
commitid	CpNWKp3ozVNTafCy;

1.1.4.1
date	2014.02.24.07.23.42;	author rmind;	state dead;
branches;
next	1.1.4.2;
commitid	mL5ZYSzpqK6QS2Bx;

1.1.4.2
date	2014.05.18.17.45.10;	author rmind;	state Exp;
branches;
next	;
commitid	mL5ZYSzpqK6QS2Bx;

1.1.6.1
date	2014.02.24.07.23.42;	author yamt;	state dead;
branches;
next	1.1.6.2;
commitid	VUUXuyNWnt3AKwBx;

1.1.6.2
date	2014.05.22.11.39.50;	author yamt;	state Exp;
branches;
next	;
commitid	VUUXuyNWnt3AKwBx;

1.1.10.1
date	2014.02.24.07.23.42;	author tls;	state dead;
branches;
next	1.1.10.2;
commitid	jTnpym9Qu0o4R1Nx;

1.1.10.2
date	2014.08.20.00.03.04;	author tls;	state Exp;
branches;
next	1.1.10.3;
commitid	jTnpym9Qu0o4R1Nx;

1.1.10.3
date	2017.12.03.11.36.16;	author jdolecek;	state Exp;
branches;
next	;
commitid	XcIYRZTAh1LmerhA;


desc
@@


1.9
log
@introduce new GCC 12 warning disables and use them in a few places

this introduces 4 new warning disable flags:

   CC_WNO_MISSING_TEMPLATE_KEYWORD
   CC_WNO_REGISTER
   CC_WNO_STRINGOP_OVERREAD
   CC_WNO_ARRAY_BOUNDS

and documents them in README.warnings.  of these, the string op
and array bounds are both problematic (real bugs) and also spurious
(not real bugs), and the other 2 are mostly temporary for older
3rd party code.

add some new uses of CC_WNO_STRINGOP_OVERFLOW.

fix m68k build for gallium and GCC 12.
@
text
@# $NetBSD: Makefile.hppa,v 1.8 2020/09/14 16:13:18 skrll Exp $

# Makefile for NetBSD
#
# This makefile is constructed from a machine description:
#	config machineid
# Most changes should be made in the machine description
#	/sys/arch/hppa/conf/``machineid''
# after which you should do
#	config machineid
# Machine generic makefile changes should be made in
#	/sys/arch/hppa/conf/Makefile.hppa
# after which config should be rerun for all machines of that type.
#
# To specify debugging, add the config line: makeoptions DEBUG="-g"
# A better way is to specify -g only for a few files.
#
#	makeoptions DEBUGLIST="uvm* trap if_*"

MACHINE_ARCH=hppa
NEED_OWN_INSTALL_TARGET?=no
.include <bsd.own.mk>

##
## (1) port identification
##
HPPA=		$S/arch/hppa
GENASSYM_CONF=	${HPPA}/hppa/genassym.cf

##
## (2) compile settings
##
CPPFLAGS+=	-Dhppa
CFLAGS+=	-mpa-risc-1-1 -msoft-float -mdisable-fpregs

.include "${HPPA}/spmath/Makefile.inc"

.ifndef PROF
LIBSPMATH=	${SPMATH}
.else
LIBSPMATH=	${SPMATH_PROF}
.endif

CFLAGS+=	-mno-space-regs -mfast-indirect-calls -mportable-runtime
AFLAGS+=	-x assembler-with-cpp -P -traditional

OPT_DDB=	%DDB%
.if !empty(OPT_DDB)
CFLAGS+=	-fno-omit-frame-pointer
.endif

##
## (3) libkern and compat
##
OPT_MODULAR=	%MODULAR%

##
## (4) local objects, compile rules, and dependencies
##
MD_OBJS=	locore.o
MD_LIBS=	${LIBSPMATH}
MD_CFILES=
MD_SFILES=	${HPPA}/hppa/locore.S

locore.o: ${HPPA}/hppa/locore.S
	${NORMAL_S}

##
## (5) link settings
##
KERNLDSCRIPT=	${HPPA}/conf/ld.script
TEXTADDR?=	00200000
LINKFLAGS_NORMAL=       -X
EXTRA_LINKFLAGS= -Map $@@.map

##
## (6) port specific target dependencies
##

# depend on CPU configuration
db_machdep.o machdep.o pmap.o vm_machdep.o: Makefile

# depends on KGDBDEV, KGDBRATE, DDB, etc.
com_gsc.o clock.o pdc.o autoconf.o machdep.o: Makefile

##
## (7) misc settings
##

# GCC 12 gets this wrong
COPTS.pdc.c+=	${CC_WNO_ARRAY_BOUNDS}

##
## (8) config(8) generated machinery
##
%INCLUDES

%OBJS

%CFILES

%SFILES

%LOAD

%RULES

##
## (9) port independent kernel machinery
##
.include "$S/conf/Makefile.kern.inc"

##
## (10) Appending make options.
##
%MAKEOPTIONSAPPEND
@


1.8
log
@(Re)Enable -Werror=array-bounds.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.hppa,v 1.7 2020/09/07 02:22:27 mrg Exp $
d90 3
@


1.7
log
@enable -Wno-error=array-bounds for GCC 9 and hppa.  machdep.c has a
bunch of warnings that i can't workaround yet.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.hppa,v 1.6 2018/09/22 12:24:02 rin Exp $
a34 1
CWARNFLAGS.gcc+=${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 9:? -Wno-error=array-bounds :}
@


1.6
log
@- Determine KERN_AS automatically depending on whether OPT_MODULAR is
  set or not, in the same way as libcompat.

- Specify OPT_MODULAR in the port Makefile instead of KERN_AS.

Now, KERN_AS=library is used for kernels without module(7) for all ports.

OK christos
@
text
@d1 1
a1 1
# $NetBSD: Makefile.hppa,v 1.5 2015/09/06 02:22:50 uebayasi Exp $
d35 1
@


1.5
log
@spmath.o is an MD library, not an MD object.
@
text
@d1 1
a1 1
# $NetBSD$
d55 1
a55 1
KERN_AS=	obj
@


1.5.18.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile.hppa,v 1.6 2018/09/22 12:24:02 rin Exp $
d55 1
a55 1
OPT_MODULAR=	%MODULAR%
@


1.5.16.1
log
@Ssync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile.hppa,v 1.6 2018/09/22 12:24:02 rin Exp $
d55 1
a55 1
OPT_MODULAR=	%MODULAR%
@


1.4
log
@Define ${LINKSCRIPT} in one place.
@
text
@d60 2
a61 1
MD_OBJS=	locore.o ${LIBSPMATH}
@


1.3
log
@Use ${KERNLDSCRIPT}.
@
text
@a70 1
LINKSCRIPT=	-T ${KERNLDSCRIPT}
@


1.2
log
@Use LINKSCRIPT.
@
text
@d70 2
a71 1
LINKSCRIPT=	-T ${HPPA}/conf/ld.script
@


1.2.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile.hppa,v 1.5 2015/09/06 02:22:50 uebayasi Exp $
d60 1
a60 2
MD_OBJS=	locore.o
MD_LIBS=	${LIBSPMATH}
d70 1
a70 1
KERNLDSCRIPT=	${HPPA}/conf/ld.script
@


1.1
log
@Rename NetBSD/hp700 to NetBSD/hppa.

Unfortunately our VCS isn't very helpful here.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.hp700,v 1.16 2009/12/27 14:54:24 skrll Exp $
d70 1
a70 1
LINKFORMAT=	-T ${HPPA}/conf/ld.script
@


1.1.10.1
log
@file Makefile.hppa was added on branch tls-maxphys on 2014-08-20 00:03:04 +0000
@
text
@d1 112
@


1.1.10.2
log
@Rebase to HEAD as of a few days ago.
@
text
@a0 112
# $NetBSD$

# Makefile for NetBSD
#
# This makefile is constructed from a machine description:
#	config machineid
# Most changes should be made in the machine description
#	/sys/arch/hppa/conf/``machineid''
# after which you should do
#	config machineid
# Machine generic makefile changes should be made in
#	/sys/arch/hppa/conf/Makefile.hppa
# after which config should be rerun for all machines of that type.
#
# To specify debugging, add the config line: makeoptions DEBUG="-g"
# A better way is to specify -g only for a few files.
#
#	makeoptions DEBUGLIST="uvm* trap if_*"

MACHINE_ARCH=hppa
NEED_OWN_INSTALL_TARGET?=no
.include <bsd.own.mk>

##
## (1) port identification
##
HPPA=		$S/arch/hppa
GENASSYM_CONF=	${HPPA}/hppa/genassym.cf

##
## (2) compile settings
##
CPPFLAGS+=	-Dhppa
CFLAGS+=	-mpa-risc-1-1 -msoft-float -mdisable-fpregs

.include "${HPPA}/spmath/Makefile.inc"

.ifndef PROF
LIBSPMATH=	${SPMATH}
.else
LIBSPMATH=	${SPMATH_PROF}
.endif

CFLAGS+=	-mno-space-regs -mfast-indirect-calls -mportable-runtime
AFLAGS+=	-x assembler-with-cpp -P -traditional

OPT_DDB=	%DDB%
.if !empty(OPT_DDB)
CFLAGS+=	-fno-omit-frame-pointer
.endif

##
## (3) libkern and compat
##
KERN_AS=	obj

##
## (4) local objects, compile rules, and dependencies
##
MD_OBJS=	locore.o ${LIBSPMATH}
MD_CFILES=
MD_SFILES=	${HPPA}/hppa/locore.S

locore.o: ${HPPA}/hppa/locore.S
	${NORMAL_S}

##
## (5) link settings
##
LINKFORMAT=	-T ${HPPA}/conf/ld.script
TEXTADDR?=	00200000
LINKFLAGS_NORMAL=       -X
EXTRA_LINKFLAGS= -Map $@@.map

##
## (6) port specific target dependencies
##

# depend on CPU configuration
db_machdep.o machdep.o pmap.o vm_machdep.o: Makefile

# depends on KGDBDEV, KGDBRATE, DDB, etc.
com_gsc.o clock.o pdc.o autoconf.o machdep.o: Makefile

##
## (7) misc settings
##

##
## (8) config(8) generated machinery
##
%INCLUDES

%OBJS

%CFILES

%SFILES

%LOAD

%RULES

##
## (9) port independent kernel machinery
##
.include "$S/conf/Makefile.kern.inc"

##
## (10) Appending make options.
##
%MAKEOPTIONSAPPEND
@


1.1.10.3
log
@update from HEAD
@
text
@d60 1
a60 2
MD_OBJS=	locore.o
MD_LIBS=	${LIBSPMATH}
d70 1
a70 1
KERNLDSCRIPT=	${HPPA}/conf/ld.script
@


1.1.6.1
log
@file Makefile.hppa was added on branch yamt-pagecache on 2014-05-22 11:39:50 +0000
@
text
@d1 112
@


1.1.6.2
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@a0 112
# $NetBSD$

# Makefile for NetBSD
#
# This makefile is constructed from a machine description:
#	config machineid
# Most changes should be made in the machine description
#	/sys/arch/hppa/conf/``machineid''
# after which you should do
#	config machineid
# Machine generic makefile changes should be made in
#	/sys/arch/hppa/conf/Makefile.hppa
# after which config should be rerun for all machines of that type.
#
# To specify debugging, add the config line: makeoptions DEBUG="-g"
# A better way is to specify -g only for a few files.
#
#	makeoptions DEBUGLIST="uvm* trap if_*"

MACHINE_ARCH=hppa
NEED_OWN_INSTALL_TARGET?=no
.include <bsd.own.mk>

##
## (1) port identification
##
HPPA=		$S/arch/hppa
GENASSYM_CONF=	${HPPA}/hppa/genassym.cf

##
## (2) compile settings
##
CPPFLAGS+=	-Dhppa
CFLAGS+=	-mpa-risc-1-1 -msoft-float -mdisable-fpregs

.include "${HPPA}/spmath/Makefile.inc"

.ifndef PROF
LIBSPMATH=	${SPMATH}
.else
LIBSPMATH=	${SPMATH_PROF}
.endif

CFLAGS+=	-mno-space-regs -mfast-indirect-calls -mportable-runtime
AFLAGS+=	-x assembler-with-cpp -P -traditional

OPT_DDB=	%DDB%
.if !empty(OPT_DDB)
CFLAGS+=	-fno-omit-frame-pointer
.endif

##
## (3) libkern and compat
##
KERN_AS=	obj

##
## (4) local objects, compile rules, and dependencies
##
MD_OBJS=	locore.o ${LIBSPMATH}
MD_CFILES=
MD_SFILES=	${HPPA}/hppa/locore.S

locore.o: ${HPPA}/hppa/locore.S
	${NORMAL_S}

##
## (5) link settings
##
LINKFORMAT=	-T ${HPPA}/conf/ld.script
TEXTADDR?=	00200000
LINKFLAGS_NORMAL=       -X
EXTRA_LINKFLAGS= -Map $@@.map

##
## (6) port specific target dependencies
##

# depend on CPU configuration
db_machdep.o machdep.o pmap.o vm_machdep.o: Makefile

# depends on KGDBDEV, KGDBRATE, DDB, etc.
com_gsc.o clock.o pdc.o autoconf.o machdep.o: Makefile

##
## (7) misc settings
##

##
## (8) config(8) generated machinery
##
%INCLUDES

%OBJS

%CFILES

%SFILES

%LOAD

%RULES

##
## (9) port independent kernel machinery
##
.include "$S/conf/Makefile.kern.inc"

##
## (10) Appending make options.
##
%MAKEOPTIONSAPPEND
@


1.1.4.1
log
@file Makefile.hppa was added on branch rmind-smpnet on 2014-05-18 17:45:10 +0000
@
text
@d1 112
@


1.1.4.2
log
@sync with head
@
text
@a0 112
# $NetBSD$

# Makefile for NetBSD
#
# This makefile is constructed from a machine description:
#	config machineid
# Most changes should be made in the machine description
#	/sys/arch/hppa/conf/``machineid''
# after which you should do
#	config machineid
# Machine generic makefile changes should be made in
#	/sys/arch/hppa/conf/Makefile.hppa
# after which config should be rerun for all machines of that type.
#
# To specify debugging, add the config line: makeoptions DEBUG="-g"
# A better way is to specify -g only for a few files.
#
#	makeoptions DEBUGLIST="uvm* trap if_*"

MACHINE_ARCH=hppa
NEED_OWN_INSTALL_TARGET?=no
.include <bsd.own.mk>

##
## (1) port identification
##
HPPA=		$S/arch/hppa
GENASSYM_CONF=	${HPPA}/hppa/genassym.cf

##
## (2) compile settings
##
CPPFLAGS+=	-Dhppa
CFLAGS+=	-mpa-risc-1-1 -msoft-float -mdisable-fpregs

.include "${HPPA}/spmath/Makefile.inc"

.ifndef PROF
LIBSPMATH=	${SPMATH}
.else
LIBSPMATH=	${SPMATH_PROF}
.endif

CFLAGS+=	-mno-space-regs -mfast-indirect-calls -mportable-runtime
AFLAGS+=	-x assembler-with-cpp -P -traditional

OPT_DDB=	%DDB%
.if !empty(OPT_DDB)
CFLAGS+=	-fno-omit-frame-pointer
.endif

##
## (3) libkern and compat
##
KERN_AS=	obj

##
## (4) local objects, compile rules, and dependencies
##
MD_OBJS=	locore.o ${LIBSPMATH}
MD_CFILES=
MD_SFILES=	${HPPA}/hppa/locore.S

locore.o: ${HPPA}/hppa/locore.S
	${NORMAL_S}

##
## (5) link settings
##
LINKFORMAT=	-T ${HPPA}/conf/ld.script
TEXTADDR?=	00200000
LINKFLAGS_NORMAL=       -X
EXTRA_LINKFLAGS= -Map $@@.map

##
## (6) port specific target dependencies
##

# depend on CPU configuration
db_machdep.o machdep.o pmap.o vm_machdep.o: Makefile

# depends on KGDBDEV, KGDBRATE, DDB, etc.
com_gsc.o clock.o pdc.o autoconf.o machdep.o: Makefile

##
## (7) misc settings
##

##
## (8) config(8) generated machinery
##
%INCLUDES

%OBJS

%CFILES

%SFILES

%LOAD

%RULES

##
## (9) port independent kernel machinery
##
.include "$S/conf/Makefile.kern.inc"

##
## (10) Appending make options.
##
%MAKEOPTIONSAPPEND
@


