head	1.16;
access;
symbols
	netbsd-11-1-RELEASE:1.15
	netbsd-10-2-RELEASE:1.12.6.1
	netbsd-9-5-RELEASE:1.11
	netbsd-11-0-RELEASE:1.15
	netbsd-11-0-RC7:1.15
	netbsd-11-0-RC6:1.15
	netbsd-11-0-RC5:1.15
	netbsd-11-0-RC4:1.15
	netbsd-11-0-RC3:1.15
	netbsd-11-0-RC2:1.15
	netbsd-11-0-RC1:1.15
	perseant-exfatfs-base-20250801:1.15
	netbsd-11:1.15.0.2
	netbsd-11-base:1.15
	netbsd-10-1-RELEASE:1.12.6.1
	perseant-exfatfs-base-20240630:1.14
	perseant-exfatfs:1.14.0.2
	perseant-exfatfs-base:1.14
	netbsd-8-3-RELEASE:1.11
	netbsd-9-4-RELEASE:1.11
	netbsd-10-0-RELEASE:1.12.6.1
	netbsd-10-0-RC6:1.12.6.1
	netbsd-10-0-RC5:1.12.6.1
	netbsd-10-0-RC4:1.12.6.1
	netbsd-10-0-RC3:1.12.6.1
	netbsd-10-0-RC2:1.12.6.1
	netbsd-10-0-RC1:1.12.6.1
	netbsd-10:1.12.0.6
	netbsd-10-base:1.12
	netbsd-9-3-RELEASE:1.11
	cjep_sun2x-base1:1.12
	cjep_sun2x:1.12.0.4
	cjep_sun2x-base:1.12
	cjep_staticlib_x-base1:1.12
	netbsd-9-2-RELEASE:1.11
	cjep_staticlib_x:1.12.0.2
	cjep_staticlib_x-base:1.12
	netbsd-9-1-RELEASE:1.11
	phil-wifi-20200421:1.11
	phil-wifi-20200411:1.11
	is-mlppp:1.11.0.18
	is-mlppp-base:1.11
	phil-wifi-20200406:1.11
	netbsd-8-2-RELEASE:1.11
	netbsd-9-0-RELEASE:1.11
	netbsd-9-0-RC2:1.11
	netbsd-9-0-RC1:1.11
	phil-wifi-20191119:1.11
	netbsd-9:1.11.0.16
	netbsd-9-base:1.11
	phil-wifi-20190609:1.11
	netbsd-8-1-RELEASE:1.11
	netbsd-8-1-RC1:1.11
	pgoyette-compat-merge-20190127:1.11
	pgoyette-compat-20190127:1.11
	pgoyette-compat-20190118:1.11
	pgoyette-compat-1226:1.11
	pgoyette-compat-1126:1.11
	pgoyette-compat-1020:1.11
	pgoyette-compat-0930:1.11
	pgoyette-compat-0906:1.11
	netbsd-7-2-RELEASE:1.8
	pgoyette-compat-0728:1.11
	netbsd-8-0-RELEASE:1.11
	phil-wifi:1.11.0.14
	phil-wifi-base:1.11
	pgoyette-compat-0625:1.11
	netbsd-8-0-RC2:1.11
	pgoyette-compat-0521:1.11
	pgoyette-compat-0502:1.11
	pgoyette-compat-0422:1.11
	netbsd-8-0-RC1:1.11
	pgoyette-compat-0415:1.11
	pgoyette-compat-0407:1.11
	pgoyette-compat-0330:1.11
	pgoyette-compat-0322:1.11
	pgoyette-compat-0315:1.11
	netbsd-7-1-2-RELEASE:1.8
	pgoyette-compat:1.11.0.12
	pgoyette-compat-base:1.11
	netbsd-7-1-1-RELEASE:1.8
	matt-nb8-mediatek:1.11.0.10
	matt-nb8-mediatek-base:1.11
	perseant-stdc-iso10646:1.11.0.8
	perseant-stdc-iso10646-base:1.11
	netbsd-8:1.11.0.6
	netbsd-8-base:1.11
	prg-localcount2-base3:1.11
	prg-localcount2-base2:1.11
	prg-localcount2-base1:1.11
	prg-localcount2:1.11.0.4
	prg-localcount2-base:1.11
	pgoyette-localcount-20170426:1.11
	bouyer-socketcan-base1:1.11
	pgoyette-localcount-20170320:1.11
	netbsd-7-1:1.8.0.10
	netbsd-7-1-RELEASE:1.8
	netbsd-7-1-RC2:1.8
	netbsd-7-nhusb-base-20170116:1.8
	bouyer-socketcan:1.11.0.2
	bouyer-socketcan-base:1.11
	pgoyette-localcount-20170107:1.11
	netbsd-7-1-RC1:1.8
	pgoyette-localcount-20161104:1.11
	netbsd-7-0-2-RELEASE:1.8
	localcount-20160914:1.10
	netbsd-7-nhusb:1.8.0.8
	netbsd-7-nhusb-base:1.8
	pgoyette-localcount-20160806:1.10
	pgoyette-localcount-20160726:1.10
	pgoyette-localcount:1.10.0.2
	pgoyette-localcount-base:1.10
	netbsd-7-0-1-RELEASE:1.8
	netbsd-7-0:1.8.0.6
	netbsd-7-0-RELEASE:1.8
	netbsd-7-0-RC3:1.8
	netbsd-7-0-RC2:1.8
	netbsd-7-0-RC1:1.8
	netbsd-6-0-6-RELEASE:1.4.2.1
	netbsd-6-1-5-RELEASE:1.4.2.1
	netbsd-7:1.8.0.4
	netbsd-7-base:1.8
	yamt-pagecache-base9:1.8
	yamt-pagecache-tag8:1.3.2.2
	netbsd-6-1-4-RELEASE:1.4.2.1
	netbsd-6-0-5-RELEASE:1.4.2.1
	tls-earlyentropy:1.8.0.2
	tls-earlyentropy-base:1.8
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.8
	riastradh-drm2-base3:1.8
	netbsd-6-1-3-RELEASE:1.4.2.1
	netbsd-6-0-4-RELEASE:1.4.2.1
	netbsd-6-1-2-RELEASE:1.4.2.1
	netbsd-6-0-3-RELEASE:1.4.2.1
	netbsd-6-1-1-RELEASE:1.4.2.1
	riastradh-drm2-base2:1.6
	riastradh-drm2-base1:1.6
	riastradh-drm2:1.6.0.4
	riastradh-drm2-base:1.6
	netbsd-6-1:1.4.2.1.0.6
	netbsd-6-0-2-RELEASE:1.4.2.1
	netbsd-6-1-RELEASE:1.4.2.1
	netbsd-6-1-RC4:1.4.2.1
	netbsd-6-1-RC3:1.4.2.1
	agc-symver:1.6.0.6
	agc-symver-base:1.6
	netbsd-6-1-RC2:1.4.2.1
	netbsd-6-1-RC1:1.4.2.1
	yamt-pagecache-base8:1.6
	netbsd-6-0-1-RELEASE:1.4.2.1
	yamt-pagecache-base7:1.6
	matt-nb6-plus-nbase:1.4.2.1
	yamt-pagecache-base6:1.6
	netbsd-6-0:1.4.2.1.0.4
	netbsd-6-0-RELEASE:1.4.2.1
	netbsd-6-0-RC2:1.4.2.1
	tls-maxphys:1.6.0.2
	tls-maxphys-base:1.8
	matt-nb6-plus:1.4.2.1.0.2
	matt-nb6-plus-base:1.4.2.1
	netbsd-6-0-RC1:1.4.2.1
	yamt-pagecache-base5:1.5
	yamt-pagecache-base4:1.5
	netbsd-6:1.4.0.2
	netbsd-6-base:1.4
	yamt-pagecache-base3:1.3
	yamt-pagecache-base2:1.3
	yamt-pagecache:1.3.0.2
	yamt-pagecache-base:1.3;
locks; strict;
comment	@# @;


1.16
date	2025.11.16.08.55.17;	author mrg;	state Exp;
branches;
next	1.15;
commitid	AOCjJGMFiM7pYKiG;

1.15
date	2024.08.14.23.54.49;	author christos;	state Exp;
branches;
next	1.14;
commitid	nWYbI3Bn3YmfHQlF;

1.14
date	2023.07.31.16.59.49;	author christos;	state Exp;
branches
	1.14.2.1;
next	1.13;
commitid	oHnmKHouynNnCYyE;

1.13
date	2023.02.10.18.51.32;	author mrg;	state Exp;
branches;
next	1.12;
commitid	ARPntpmRRg5fI0dE;

1.12
date	2021.04.13.01.11.05;	author mrg;	state Exp;
branches
	1.12.6.1;
next	1.11;
commitid	ef9WrF92iagjl4PC;

1.11
date	2016.10.16.04.36.52;	author mrg;	state Exp;
branches;
next	1.10;
commitid	iBb3LXTaECMQbkqz;

1.10
date	2016.01.23.23.02.31;	author christos;	state Exp;
branches
	1.10.2.1;
next	1.9;
commitid	NXOYbOSJJ79ET6Sy;

1.9
date	2015.08.16.09.51.58;	author christos;	state Exp;
branches;
next	1.8;
commitid	zCk9yWM1FZVgFtxy;

1.8
date	2013.08.06.05.35.57;	author matt;	state Exp;
branches;
next	1.7;
commitid	QjsiTdEOqdxe2m0x;

1.7
date	2013.08.04.23.41.43;	author matt;	state Exp;
branches;
next	1.6;
commitid	uZgukXfHn9tb6c0x;

1.6
date	2012.06.22.20.32.35;	author abs;	state Exp;
branches
	1.6.2.1;
next	1.5;

1.5
date	2012.04.04.10.59.45;	author joerg;	state Exp;
branches;
next	1.4;

1.4
date	2012.02.05.17.47.30;	author matt;	state Exp;
branches
	1.4.2.1;
next	1.3;

1.3
date	2011.10.11.15.18.09;	author joerg;	state Exp;
branches
	1.3.2.1;
next	1.2;

1.2
date	2011.10.09.13.58.27;	author christos;	state Exp;
branches;
next	1.1;

1.1
date	2011.09.26.03.02.44;	author christos;	state Exp;
branches;
next	;

1.14.2.1
date	2025.08.02.05.26.16;	author perseant;	state Exp;
branches;
next	;
commitid	23j6GFaDws3O875G;

1.12.6.1
date	2023.02.14.15.47.01;	author martin;	state Exp;
branches;
next	;
commitid	kz8yxOyK2RtDAvdE;

1.10.2.1
date	2016.11.04.14.46.43;	author pgoyette;	state Exp;
branches;
next	;
commitid	2m1JRwYmpwPkOOsz;

1.6.2.1
date	2014.08.19.23.58.34;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;

1.4.2.1
date	2012.05.17.18.02.31;	author riz;	state Exp;
branches;
next	;

1.3.2.1
date	2012.04.17.00.04.23;	author yamt;	state Exp;
branches;
next	1.3.2.2;

1.3.2.2
date	2012.10.30.18.57.55;	author yamt;	state Exp;
branches;
next	1.3.2.3;

1.3.2.3
date	2014.05.22.16.00.27;	author yamt;	state Exp;
branches;
next	;
commitid	SRuOnF9k1i4dcyBx;


desc
@@


1.16
log
@use -mtas on sh3.  fixes missing __atomic_test_and_set().
@
text
@# $NetBSD: Makefile.inc,v 1.15 2024/08/14 23:54:49 christos Exp $

USE_LIBEDIT=no
USE_TUI=yes
BINDIR=/usr/bin
WARNS?=		0
CPPFLAGS+=	-D_KERNTYPES
GMPDIR=		${NETBSDSRCDIR}/external/lgpl3/gmp/lib/libgmp
MPFRDIR=	${NETBSDSRCDIR}/external/lgpl3/mpfr

.include "Makefile.gdb_arch"

CWARNFLAGS.clang+=	-Wno-unused-value -Wno-conversion \
			-Wno-switch-enum -Wno-parentheses -Wno-comment \
			-Wno-format-security \
			-Wno-tautological-compare -Wno-format-extra-args \
			-Wno-string-plus-int

COPTS+=			-fcommon

DIST:=		${.PARSEDIR}/dist

# Reduce debugging for these extremely large objects.
.if ${MKDEBUG:Uno} != "no"
CXXFLAGS+=      -g1
.endif

# Enable tas.b usage for __atomic_test_and_set().
.include <bsd.own.mk>

.if ${MACHINE_CPU} == "sh3"
CFLAGS+=	-mtas
.endif
@


1.15
log
@- regen x86
- api updates
- switch to c++-17
- add new dependencies
- disable installing info files
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.14 2023/07/31 16:59:49 christos Exp $
d27 7
@


1.14
log
@Merge gdb-13.2; last was 11.0.50. Builds but does not run.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.13 2023/02/10 18:51:32 mrg Exp $
d8 2
a9 1
GMPDIR=	${NETBSDSRCDIR}/external/lgpl3/gmp/lib/libgmp
@


1.14.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.15 2024/08/14 23:54:49 christos Exp $
d8 1
a8 2
GMPDIR=		${NETBSDSRCDIR}/external/lgpl3/gmp/lib/libgmp
MPFRDIR=	${NETBSDSRCDIR}/external/lgpl3/mpfr
@


1.13
log
@apply -g1 to the gdb build as well.

reduces the size of gdb.debug and gdbtui.debug by 100MB each on amd64,
and about 70MB total in the debug set.  (across all builds, this may
be in the order of 3-4GB in releasedir output.)
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.12 2021/04/13 01:11:05 mrg Exp $
d8 1
@


1.12
log
@apply -fcommon to sources that still rely upon it.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.11 2016/10/16 04:36:52 mrg Exp $
d20 5
@


1.12.6.1
log
@Pull up following revision(s) (requested by mrg in ticket #81):

	external/gpl3/gdb.old/Makefile.inc: revision 1.12
	share/mk/bsd.lib.mk: revision 1.390
	external/gpl3/gdb/Makefile.inc: revision 1.13
	external/mit/xorg/lib/gallium.old/Makefile: revision 1.5
	external/mit/xorg/lib/gallium/Makefile: revision 1.49

fix code attempting to skip adding "-g" if "-g*" already is used.

in bsd.lib.mk there's a check for "MKDEBUG != no" that will add
-g to CFLAGS (maybe) and to CSHLIBFLAGS (always), given that it
isn't in CFLAGS already.. except the conditional is "||" instead
of "&&" and since the MKDEBUG/NODEBUG checks pass, the CFLAGS
check isn't even performed.

additionally, check CXXFLAGS as well as CFLAGS.

this fixes the attempt to use "-g1" in the llvmrt build, which
fails because the compile lines end up being "... -g1 .. -g ..",
(the "-g" comes from the CSHLIBFLAGS variable in that case.)
this reduces the size of llvm-enabled gallium debug by ~1.5GiB
on amd64.

apply -g1 to the gallium sources as well.  saves another couple of 100MB.

apply -g1 to the gdb build as well.
reduces the size of gdb.debug and gdbtui.debug by 100MB each on amd64,
and about 70MB total in the debug set.  (across all builds, this may
be in the order of 3-4GB in releasedir output.)
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.12 2021/04/13 01:11:05 mrg Exp $
a19 5

# Reduce debugging for these extremely large objects.
.if ${MKDEBUG:Uno} != "no"
CXXFLAGS+=      -g1
.endif
@


1.11
log
@move the GDB_MACHINE_ARCH setting into a separate file so tools can
access it.  modify it such that it's "arm" or "armeb" for all arm,
but only in new gdb, not gdb.old (avoid changing gdb.old as much
as possible now.)
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.10 2016/01/23 23:02:31 christos Exp $
d17 2
@


1.10
log
@expose kernel types for gdb so that we don't have to fix each arch separately
for now.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.9 2015/08/16 09:51:58 christos Exp $
d9 1
a9 1
GDB_MACHINE_ARCH=	${MACHINE_ARCH:C/armv[4-7]/arm/}
@


1.10.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.11 2016/10/16 04:36:52 mrg Exp $
d9 1
a9 1
.include "Makefile.gdb_arch"
@


1.9
log
@fix glue for gdb-7.9.1
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.8 2013/08/06 05:35:57 matt Exp $
d7 1
@


1.8
log
@Use armv[4-7] to be consistend
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.7 2013/08/04 23:41:43 matt Exp $
d16 1
a16 1
DIST=		${NETBSDSRCDIR}/external/gpl3/gdb/dist
@


1.7
log
@Use GDB_MACHINE_ARCH instead of MACHINE_ARCH.
GDB_MACHINE_ARCH is MACHINE_ARCH, except armv[467] is replaced with arm instead.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.6 2012/06/22 20:32:35 abs Exp $
d8 1
a8 1
GDB_MACHINE_ARCH=	${MACHINE_ARCH:C/armv[457]/arm/}
@


1.6
log
@Switch -current vax back to gcc 4.1 to match netbsd-6 - until someone has
time to look at the gcc 4.5 codegen issues we should at least have a usable
-current for vax.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.4.2.1 2012/05/17 18:02:31 riz Exp $
d8 2
@


1.6.2.1
log
@Rebase to HEAD as of a few days ago.
@
text
@d1 1
a1 1
# $NetBSD$
a7 2
GDB_MACHINE_ARCH=	${MACHINE_ARCH:C/armv[4-7]/arm/}

@


1.5
log
@Disable new -Wstring-plus-int warning where needed for now.
Adjust various places that add GCC-only options to check for the active
compiler first.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.4 2012/02/05 17:47:30 matt Exp $
a13 4
.if ${MACHINE} == "vax"
CWARNFLAGS.gcc+=	-Wno-overflow
.endif

@


1.4
log
@For VAX & GCC, turn on -Wno-overflow to supress a GCC error.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.3 2011/10/11 15:18:09 joerg Exp $
d11 2
a12 1
			-Wno-tautological-compare -Wno-format-extra-args
@


1.4.2.1
log
@Apply patches (requested by martin in ticket #153):

share/mk/bsd.own.mk				patch
share/mk/sys.mk					patch
external/gpl3/gdb/Makefile.inc			patch
external/gpl3/binutils/lib/libbfd/Makefile	patch

	Switch the vax port back to GCC 4.1.
	[martin, ticket #153]
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.4 2012/02/05 17:47:30 matt Exp $
d13 4
@


1.3
log
@Disable format string validation with clang, it doesn't like gettext too
much.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.2 2011/10/09 13:58:27 christos Exp $
d13 4
@


1.3.2.1
log
@sync with head
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.3 2011/10/11 15:18:09 joerg Exp $
d11 1
a11 6
			-Wno-tautological-compare -Wno-format-extra-args \
			-Wno-string-plus-int

.if ${MACHINE} == "vax"
CWARNFLAGS.gcc+=	-Wno-overflow
.endif
@


1.3.2.2
log
@sync with head
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.3.2.1 2012/04/17 00:04:23 yamt Exp $
d14 4
@


1.3.2.3
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
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.3.2.2 2012/10/30 18:57:55 yamt Exp $
a7 2
GDB_MACHINE_ARCH=	${MACHINE_ARCH:C/armv[4-7]/arm/}

@


1.2
log
@don't forget to set bindir.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.1 2011/09/26 03:02:44 christos Exp $
d10 1
@


1.1
log
@Build glue for x86_64. This is working gdb for amd64 minus kernel stacktrace
support. It is disabled for now because it breaks user program traces.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.3 2011/08/09 13:02:11 joerg Exp $
d5 1
@

