make sure that files containing version numbers are rebuilt when

the version actually changes.
This commit is contained in:
mrg 2014-05-31 22:55:16 +00:00
parent 0cfeec7c2c
commit d26da1a6c3
11 changed files with 29 additions and 11 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.gcc-tool,v 1.1 2014/03/01 10:00:49 mrg Exp $
# $NetBSD: Makefile.gcc-tool,v 1.2 2014/05/31 22:55:16 mrg Exp $
PROG= gcc-${GCC_TOOL}
SRCS= gcc-ar.c file-find.c
@ -15,6 +15,8 @@ CPPFLAGS= \
# Skip these because we don't have them in paths.
# -DDEFAULT_TARGET_VERSION=\"${G_version}\"
# -DDEFAULT_TARGET_MACHINE=\"{GNU_MACHINE_ARCH}\"
#
# ${SRCS}: ${GCCARCH}/defs.mk
CPPFLAGS+= -I${GCCARCH} -I${BACKENDOBJ} ${G_ALL_CFLAGS:M-D*} ${G_INCLUDES:M-I*:N-I.*}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.22 2014/05/29 07:40:37 mrg Exp $
# $NetBSD: Makefile.inc,v 1.23 2014/05/31 22:55:16 mrg Exp $
.ifndef _EXTERNAL_GPL3_GCC_USR_BIN_MAKEFILE_INC_
_EXTERNAL_GPL3_GCC_USR_BIN_MAKEFILE_INC_=1
@ -79,6 +79,7 @@ VER_CPPFLAGS= -DBASEVER="\"${BASEVER}"\" \
-DBUGURL=$(G_BUGURL_s)
CPPFLAGS.version.c+= ${VER_CPPFLAGS}
version.c: ${GCCARCH}/defs.mk ${TOP}/tools/gcc/gcc-version.mk
.include "${GCCARCH}/defs.mk"

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.8 2014/03/22 19:52:21 tron Exp $
# $NetBSD: Makefile,v 1.9 2014/05/31 22:55:17 mrg Exp $
PROG= cc1
SRCS= ${G_C_OBJS:S,c-family/,,:S,c/,,:Nlibcpp.a:.o=.c} main.c ${PROG}-checksum.c
@ -30,6 +30,7 @@ CHECKSUM_OBJS= ${BACKENDOBJ}/libbackend.a \
# VER_CPPFLAGS from Makefile.inc
CPPFLAGS.c-cppbuiltin.c= ${VER_CPPFLAGS}
c-cppbuiltin.c: ${GCCARCH}/defs.mk
COPTS.c-ada-spec.c= -Wno-stack-protector
COPTS.c-aux-info.c= -Wno-stack-protector

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.7 2014/03/22 17:57:47 tron Exp $
# $NetBSD: Makefile,v 1.8 2014/05/31 22:55:17 mrg Exp $
MYOBJS= ${G_OBJC_OBJS} ${G_C_AND_OBJC_OBJS}
PROG= cc1obj
@ -33,6 +33,7 @@ CHECKSUM_OBJS= ${BACKENDOBJ}/libbackend.a \
# VER_CPPFLAGS from Makefile.inc
CPPFLAGS.c-cppbuiltin.c= ${VER_CPPFLAGS}
c-cppbuiltin.c: ${GCCARCH}/defs.mk
COPTS.c-ada-spec.c+= -Wno-stack-protector
COPTS.c-aux-info.c+= -Wno-stack-protector

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.8 2014/04/04 01:19:57 christos Exp $
# $NetBSD: Makefile,v 1.9 2014/05/31 22:55:17 mrg Exp $
PROG= cc1plus
SRCS= ${G_CXX_OBJS:S,c-family/,,:S,cp/,,:Nlibcpp.a:.o=.c} main.c ${PROG}-checksum.c
@ -33,6 +33,7 @@ CHECKSUM_OBJS= ${LIBBACKTRACEOBJ}/libbacktrace.a \
## VER_CPPFLAGS from Makefile.inc
#CPPFLAGS.c-cppbuiltin.c= ${VER_CPPFLAGS}
#c-cppbuiltin.c: ${GCCARCH}/defs.mk
# YUCK. but see timevar.h:POP_TIMEVAR_AND_RETURN
CFLAGS+= -Wno-error # not good enough: -Wno-return-type

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 2014/03/15 23:12:58 mrg Exp $
# $NetBSD: Makefile,v 1.4 2014/05/31 22:55:17 mrg Exp $
LIBISPRIVATE= yes
@ -27,6 +27,8 @@ GENPROG_ERROR_DEPENDS=errors.lo
.include "../Makefile.options"
.include "../../Makefile.hooks"
${SRCS}: ${GCCARCH}/defs.mk
${G_common_out_file:T:R}.o: common/common-target-hooks-def.h
DPSRCS+= options.h

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2014/03/05 21:37:02 tron Exp $
# $NetBSD: Makefile,v 1.3 2014/05/31 22:55:17 mrg Exp $
LIBISPRIVATE= yes
@ -25,6 +25,8 @@ HOSTPROG_CXX= 1
COPTS.diagnostic.c= -Wno-stack-protector
COPTS.intl.c= -Wno-stack-protector
${SRCS}: ${GCCARCH}/defs.mk
.include <bsd.lib.mk>
# Force using C++ for this

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.7 2014/03/22 17:57:48 tron Exp $
# $NetBSD: Makefile,v 1.8 2014/05/31 22:55:17 mrg Exp $
PROG= cpp
SRCS= cppspec.c ${G_GCC_OBJS:.o=.c}
@ -24,6 +24,8 @@ DPADD+= ${LIBINTL}
.include "../Makefile.frontend"
${SRCS}: ${GCCARCH}/defs.mk
.include <bsd.info.mk>
COPTS.gcc.c= -Wno-stack-protector

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.7 2014/03/01 10:00:49 mrg Exp $
# $NetBSD: Makefile,v 1.8 2014/05/31 22:55:17 mrg Exp $
LIBISPRIVATE= yes
@ -31,6 +31,8 @@ HOST_CPPFLAGS+= -I${GCCARCH} ${G_ALL_CFLAGS:M-D*} ${G_INCLUDES:M-I*:N-I.*}
DPSRCS+= specs.h
${SRCS}: ${GCCARCH}/defs.mk
MKPIC:= no
MKPICLIB:= no

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.4 2014/03/22 17:57:48 tron Exp $
# $NetBSD: Makefile,v 1.5 2014/05/31 22:55:17 mrg Exp $
PROG= gplusplus
PROGNAME= g++
@ -20,6 +20,8 @@ DPADD+= ${LIBINTL}
.include "../Makefile.frontend"
${SRCS}: ${GCCARCH}/defs.mk
COPTS.gcc.c= -Wno-stack-protector
.PATH: ${DIST}/gcc/cp ${DIST}/gcc ${DIST}/gcc/cp

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.4 2014/03/22 17:57:48 tron Exp $
# $NetBSD: Makefile,v 1.5 2014/05/31 22:55:17 mrg Exp $
PROG= gcc
SRCS= gccspec.c ${G_GCC_OBJS:.o=.c}
@ -24,6 +24,8 @@ DPADD+= ${LIBINTL}
.include "../Makefile.frontend"
${SRCS}: ${GCCARCH}/defs.mk
.include <bsd.info.mk>
COPTS.gcc.c= -Wno-stack-protector