head	1.4;
access;
symbols
	netbsd-11-0-RC4:1.4
	netbsd-11-0-RC3:1.4
	netbsd-11-0-RC2:1.4
	netbsd-11-0-RC1:1.4
	perseant-exfatfs-base-20250801:1.4
	netbsd-11:1.4.0.4
	netbsd-11-base:1.4
	netbsd-10-1-RELEASE:1.3
	perseant-exfatfs-base-20240630:1.4
	perseant-exfatfs:1.4.0.2
	perseant-exfatfs-base:1.4
	netbsd-8-3-RELEASE:1.1
	netbsd-9-4-RELEASE:1.2
	netbsd-10-0-RELEASE:1.3
	netbsd-10-0-RC6:1.3
	netbsd-10-0-RC5:1.3
	netbsd-10-0-RC4:1.3
	netbsd-10-0-RC3:1.3
	netbsd-10-0-RC2:1.3
	netbsd-10-0-RC1:1.3
	netbsd-10:1.3.0.6
	netbsd-10-base:1.3
	netbsd-9-3-RELEASE:1.2
	cjep_sun2x-base1:1.3
	cjep_sun2x:1.3.0.4
	cjep_sun2x-base:1.3
	cjep_staticlib_x-base1:1.3
	netbsd-9-2-RELEASE:1.2
	cjep_staticlib_x:1.3.0.2
	cjep_staticlib_x-base:1.3
	netbsd-9-1-RELEASE:1.2
	phil-wifi-20200421:1.2
	phil-wifi-20200411:1.2
	is-mlppp:1.2.0.6
	is-mlppp-base:1.2
	phil-wifi-20200406:1.2
	netbsd-8-2-RELEASE:1.1
	netbsd-9-0-RELEASE:1.2
	netbsd-9-0-RC2:1.2
	netbsd-9-0-RC1:1.2
	phil-wifi-20191119:1.2
	netbsd-9:1.2.0.4
	netbsd-9-base:1.2
	phil-wifi-20190609:1.2
	netbsd-8-1-RELEASE:1.1
	netbsd-8-1-RC1:1.1
	pgoyette-compat-merge-20190127:1.1.28.1
	pgoyette-compat-20190127:1.2
	pgoyette-compat-20190118:1.2
	pgoyette-compat-1226:1.2
	pgoyette-compat-1126:1.2
	pgoyette-compat-1020:1.2
	pgoyette-compat-0930:1.2
	pgoyette-compat-0906:1.2
	netbsd-7-2-RELEASE:1.1
	pgoyette-compat-0728:1.2
	netbsd-8-0-RELEASE:1.1
	phil-wifi:1.2.0.2
	phil-wifi-base:1.2
	pgoyette-compat-0625:1.2
	netbsd-8-0-RC2:1.1
	pgoyette-compat-0521:1.2
	pgoyette-compat-0502:1.2
	pgoyette-compat-0422:1.2
	netbsd-8-0-RC1:1.1
	pgoyette-compat-0415:1.2
	pgoyette-compat-0407:1.2
	pgoyette-compat-0330:1.2
	pgoyette-compat-0322:1.2
	pgoyette-compat-0315:1.2
	netbsd-7-1-2-RELEASE:1.1
	pgoyette-compat:1.1.0.28
	pgoyette-compat-base:1.1
	netbsd-7-1-1-RELEASE:1.1
	matt-nb8-mediatek:1.1.0.26
	matt-nb8-mediatek-base:1.1
	perseant-stdc-iso10646:1.1.0.24
	perseant-stdc-iso10646-base:1.1
	netbsd-8:1.1.0.22
	netbsd-8-base:1.1
	prg-localcount2-base3:1.1
	prg-localcount2-base2:1.1
	prg-localcount2-base1:1.1
	prg-localcount2:1.1.0.20
	prg-localcount2-base:1.1
	pgoyette-localcount-20170426:1.1
	bouyer-socketcan-base1:1.1
	pgoyette-localcount-20170320:1.1
	netbsd-7-1:1.1.0.18
	netbsd-7-1-RELEASE:1.1
	netbsd-7-1-RC2:1.1
	netbsd-7-nhusb-base-20170116:1.1
	bouyer-socketcan:1.1.0.16
	bouyer-socketcan-base:1.1
	pgoyette-localcount-20170107:1.1
	netbsd-7-1-RC1:1.1
	pgoyette-localcount-20161104:1.1
	netbsd-7-0-2-RELEASE:1.1
	localcount-20160914:1.1
	netbsd-7-nhusb:1.1.0.14
	netbsd-7-nhusb-base:1.1
	pgoyette-localcount-20160806:1.1
	pgoyette-localcount-20160726:1.1
	pgoyette-localcount:1.1.0.12
	pgoyette-localcount-base:1.1
	netbsd-7-0-1-RELEASE:1.1
	netbsd-7-0:1.1.0.10
	netbsd-7-0-RELEASE:1.1
	gcc-4-8-5-pre-gcc-old-import:1.1
	netbsd-7-0-RC3:1.1
	netbsd-7-0-RC2:1.1
	netbsd-7-0-RC1:1.1
	tls-maxphys-base:1.1
	tls-maxphys:1.1.0.8
	netbsd-7:1.1.0.6
	netbsd-7-base:1.1
	yamt-pagecache:1.1.0.4
	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.4
date	2023.08.01.05.57.53;	author mrg;	state Exp;
branches;
next	1.3;
commitid	wD6OCzrp5SXzV2zE;

1.3
date	2020.09.05.09.50.15;	author mrg;	state Exp;
branches;
next	1.2;
commitid	vaa00G6WuDcNhQmC;

1.2
date	2018.03.13.03.17.01;	author mrg;	state Exp;
branches;
next	1.1;
commitid	iJ9Uh9BkQCSvgfuA;

1.1
date	2014.03.01.10.00.31;	author mrg;	state Exp;
branches
	1.1.4.1
	1.1.8.1
	1.1.28.1;
next	;
commitid	ls1VzPCZSNtqQYqx;

1.1.4.1
date	2014.03.01.10.00.31;	author yamt;	state dead;
branches;
next	1.1.4.2;
commitid	v7BzuaTHWIjEuyBx;

1.1.4.2
date	2014.05.22.16.53.12;	author yamt;	state Exp;
branches;
next	;
commitid	v7BzuaTHWIjEuyBx;

1.1.8.1
date	2014.03.01.10.00.31;	author tls;	state dead;
branches;
next	1.1.8.2;
commitid	jTnpym9Qu0o4R1Nx;

1.1.8.2
date	2014.08.19.23.53.09;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;

1.1.28.1
date	2018.03.15.09.11.55;	author pgoyette;	state Exp;
branches;
next	;
commitid	lb7w3QtkrVH4axuA;


desc
@@


1.4
log
@various updates to build native GCC 12.

- for usr.bin, build libcody and link it into cc1*plus
- move makefile code for auto-build.h and version.h (was gcov-iov.h)
  into makefile fragment to share them.  (XXX probably best to only do
  this in one place, but that's a future step.)
- many updates to handle the .c -> .cc renames
- build some x86 files with -msse2
- bump shlib versions for libgomp and libstdc++v3
- fix MKGCCCMDS=no builds
- updates for new rtl-ssa subdir
- use -std=gnu++11 for various places
- define TARGET_MACHINE and HOST_MACHINE for some places
- avoid a .BEGIN rule that writes to missing obj (ie src) sometimes

cleanups still needed:
- remove a bunch of commented -Wno* that don't seem to be needed anymore
- leave or remove various vax-specific -O0s that should no longer be
  necessary for the vax-gcc port
- some "XXXGCC12" that should be may be fixable or converted to using our
  standard ${CC_...} warnings (but may need to remain, in which case the
  XXXGCC12 marker will be removed.)

with these, and a few other changes around the tree, i've able to build
gcc12 releases for several ports that seem to work (arm64, sparc, amd64,
i386 at least so far, have run, several others have built.)
@
text
@#	$NetBSD: Makefile.hooks,v 1.3 2020/09/05 09:50:15 mrg Exp $

#
# Makefile fragment to build genhooks and *target-hooks*.h
#

.for f in hooks
gen${f}.lo: ${HH} gen${f}.cc ${G_D_TARGET_DEF}
gen${f}: gen${f}.lo ${GENPROG_ERROR_DEPENDS} 
	${_MKTARGET_LINK}
	${HOST_LINK.cc} -o ${.TARGET} ${.ALLSRC} ${NBCOMPATLIB} ${HOSTLIBIBERTY} ${LDFLAGS.${.TARGET}}
CLEANFILES+=	genhooks gen${f}.lo
.endfor
CLEANFILES+=	${GENPROG_ERROR_DEPENDS} 

# and now the outputs of genhooks
target-hooks-def.h: genhooks
	./genhooks "Target Hook" >${.TARGET}
c-family/c-target-hooks-def.h: genhooks
	mkdir -p c-family
	./genhooks "C Target Hook" >${.TARGET}
common/common-target-hooks-def.h: genhooks
	mkdir -p common
	./genhooks "Common Target Hook" >${.TARGET}

CLEANFILES+=	target-hooks-def.h \
		c-family/c-target-hooks-def.h \
		common/common-target-hooks-def.h
@


1.3
log
@port reachover framework to GCC 9.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.hooks,v 1.2 2018/03/13 03:17:01 mrg Exp $
d8 1
a8 1
gen${f}.lo: ${HH} gen${f}.c ${G_D_TARGET_DEF}
@


1.2
log
@fix the cleanfiles for hooks mechanism
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.hooks,v 1.1 2014/03/01 10:00:31 mrg Exp $
d8 1
a8 1
gen${f}.lo: ${HH} gen${f}.c
@


1.1
log
@merge GCC 4.8 build.
@
text
@d1 1
a1 1
#	$NetBSD$
d12 1
a12 1
CLEANFILES+=	genhooks
d14 1
@


1.1.28.1
log
@Synch with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.hooks,v 1.2 2018/03/13 03:17:01 mrg Exp $
d12 1
a12 1
CLEANFILES+=	genhooks gen${f}.lo
a13 1
CLEANFILES+=	${GENPROG_ERROR_DEPENDS} 
@


1.1.8.1
log
@file Makefile.hooks was added on branch tls-maxphys on 2014-08-19 23:53:09 +0000
@
text
@d1 27
@


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

#
# Makefile fragment to build genhooks and *target-hooks*.h
#

.for f in hooks
gen${f}.lo: ${HH} gen${f}.c
gen${f}: gen${f}.lo ${GENPROG_ERROR_DEPENDS} 
	${_MKTARGET_LINK}
	${HOST_LINK.cc} -o ${.TARGET} ${.ALLSRC} ${NBCOMPATLIB} ${HOSTLIBIBERTY} ${LDFLAGS.${.TARGET}}
CLEANFILES+=	genhooks
.endfor

# and now the outputs of genhooks
target-hooks-def.h: genhooks
	./genhooks "Target Hook" >${.TARGET}
c-family/c-target-hooks-def.h: genhooks
	mkdir -p c-family
	./genhooks "C Target Hook" >${.TARGET}
common/common-target-hooks-def.h: genhooks
	mkdir -p common
	./genhooks "Common Target Hook" >${.TARGET}

CLEANFILES+=	target-hooks-def.h \
		c-family/c-target-hooks-def.h \
		common/common-target-hooks-def.h
@


1.1.4.1
log
@file Makefile.hooks was added on branch yamt-pagecache on 2014-05-22 16:53:12 +0000
@
text
@d1 27
@


1.1.4.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 27
#	$NetBSD$

#
# Makefile fragment to build genhooks and *target-hooks*.h
#

.for f in hooks
gen${f}.lo: ${HH} gen${f}.c
gen${f}: gen${f}.lo ${GENPROG_ERROR_DEPENDS} 
	${_MKTARGET_LINK}
	${HOST_LINK.cc} -o ${.TARGET} ${.ALLSRC} ${NBCOMPATLIB} ${HOSTLIBIBERTY} ${LDFLAGS.${.TARGET}}
CLEANFILES+=	genhooks
.endfor

# and now the outputs of genhooks
target-hooks-def.h: genhooks
	./genhooks "Target Hook" >${.TARGET}
c-family/c-target-hooks-def.h: genhooks
	mkdir -p c-family
	./genhooks "C Target Hook" >${.TARGET}
common/common-target-hooks-def.h: genhooks
	mkdir -p common
	./genhooks "Common Target Hook" >${.TARGET}

CLEANFILES+=	target-hooks-def.h \
		c-family/c-target-hooks-def.h \
		common/common-target-hooks-def.h
@


