summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorjohan <johan@FreeBSD.org>2004-02-24 19:23:33 +0000
committerjohan <johan@FreeBSD.org>2004-02-24 19:23:33 +0000
commitd5866454e3b31ddcccbdcadadebb42882e954d45 (patch)
tree3ab79dc23b5090459decbc2642fa3ba60186f95a /gnu
parentb646484505c3341d21dc8d7ae28754c1c7d67d60 (diff)
downloadFreeBSD-src-d5866454e3b31ddcccbdcadadebb42882e954d45.zip
FreeBSD-src-d5866454e3b31ddcccbdcadadebb42882e954d45.tar.gz
style.Makefile(5):
Use WARNS?= instead of WARNS= For this to work properly for all part is the subdirectories the WARNS assignments in Makefile.inc0 are moved to the correspondning Makefile.inc. Approved by: obrien (binutils maintainer) Tested by: make universe
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/binutils/Makefile.inc7
-rw-r--r--gnu/usr.bin/binutils/Makefile.inc05
-rw-r--r--gnu/usr.bin/binutils/addr2line/Makefile2
-rw-r--r--gnu/usr.bin/binutils/as/Makefile.inc2
-rw-r--r--gnu/usr.bin/binutils/as/Makefile.inc01
-rw-r--r--gnu/usr.bin/binutils/as/ia64-freebsd/Makefile2
-rw-r--r--gnu/usr.bin/binutils/gasp/Makefile2
-rw-r--r--gnu/usr.bin/binutils/gdb/Makefile2
-rw-r--r--gnu/usr.bin/binutils/ld/Makefile2
-rw-r--r--gnu/usr.bin/binutils/libbfd/Makefile4
-rw-r--r--gnu/usr.bin/binutils/libbinutils/Makefile2
-rw-r--r--gnu/usr.bin/binutils/libiberty/Makefile2
-rw-r--r--gnu/usr.bin/binutils/nm/Makefile2
-rw-r--r--gnu/usr.bin/binutils/objcopy/Makefile2
-rw-r--r--gnu/usr.bin/binutils/objdump/Makefile2
-rw-r--r--gnu/usr.bin/binutils/readelf/Makefile2
-rw-r--r--gnu/usr.bin/binutils/size/Makefile2
-rw-r--r--gnu/usr.bin/binutils/strings/Makefile2
-rw-r--r--gnu/usr.bin/binutils/strip/Makefile2
19 files changed, 25 insertions, 22 deletions
diff --git a/gnu/usr.bin/binutils/Makefile.inc b/gnu/usr.bin/binutils/Makefile.inc
index d9d02b9..393b2b9 100644
--- a/gnu/usr.bin/binutils/Makefile.inc
+++ b/gnu/usr.bin/binutils/Makefile.inc
@@ -1,4 +1,11 @@
#
# $FreeBSD$
#
+
+.if (${TARGET_ARCH} == "alpha")
+WARNS?= 2
+.else
+WARNS?= 3
+.endif
+
.include "../Makefile.inc"
diff --git a/gnu/usr.bin/binutils/Makefile.inc0 b/gnu/usr.bin/binutils/Makefile.inc0
index 1d3ecae..4d3d613 100644
--- a/gnu/usr.bin/binutils/Makefile.inc0
+++ b/gnu/usr.bin/binutils/Makefile.inc0
@@ -17,11 +17,6 @@ RELTOP:= ..
RELSRC= ${RELTOP}/../../../contrib/binutils
SRCDIR= ${.CURDIR}/${RELSRC}
-.if (${TARGET_ARCH} == "alpha")
-WARNS= 2
-.else
-WARNS= 3
-.endif
CFLAGS+= -D_GNU_SOURCE
CFLAGS+= -I.
.if exists(${.CURDIR}/${TARGET_ARCH})
diff --git a/gnu/usr.bin/binutils/addr2line/Makefile b/gnu/usr.bin/binutils/addr2line/Makefile
index 6988857..45fd776 100644
--- a/gnu/usr.bin/binutils/addr2line/Makefile
+++ b/gnu/usr.bin/binutils/addr2line/Makefile
@@ -6,7 +6,7 @@
PROG= addr2line
SRCS= addr2line.c
-WARNS= 2
+WARNS?= 2
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils
CFLAGS+= -I${SRCDIR}/binutils
DPADD= ${RELTOP}/libbinutils/libbinutils.a
diff --git a/gnu/usr.bin/binutils/as/Makefile.inc b/gnu/usr.bin/binutils/as/Makefile.inc
index 835b5e3..1570b15 100644
--- a/gnu/usr.bin/binutils/as/Makefile.inc
+++ b/gnu/usr.bin/binutils/as/Makefile.inc
@@ -1,4 +1,6 @@
# $FreeBSD$
+WARNS?= 2
+
# BINDIR
.include "${.CURDIR}/../../Makefile.inc"
diff --git a/gnu/usr.bin/binutils/as/Makefile.inc0 b/gnu/usr.bin/binutils/as/Makefile.inc0
index ccd94ab..7e62e2a 100644
--- a/gnu/usr.bin/binutils/as/Makefile.inc0
+++ b/gnu/usr.bin/binutils/as/Makefile.inc0
@@ -15,7 +15,6 @@ SRCS+= app.c as.c atof-generic.c atof-ieee.c bignum-copy.c \
subsegs.c symbols.c write.c depend.c ehopt.c
# DEO: why not used?
#SRCS+= itbl-ops.c
-WARNS= 2
CFLAGS+= -I${SRCDIR}/gas -I${SRCDIR}/gas/config -I${SRCDIR} -I${.CURDIR}/..
CFLAGS+= -DVERSION=\"${VERSION:C/[ ]?${VERSION_DATE}[ ]?//g}\"
CFLAGS+= -DBFD_VERSION_STRING=\"${VERSION}\"
diff --git a/gnu/usr.bin/binutils/as/ia64-freebsd/Makefile b/gnu/usr.bin/binutils/as/ia64-freebsd/Makefile
index c507b3a..637e8cc 100644
--- a/gnu/usr.bin/binutils/as/ia64-freebsd/Makefile
+++ b/gnu/usr.bin/binutils/as/ia64-freebsd/Makefile
@@ -2,7 +2,7 @@
.include "${.CURDIR}/../Makefile.inc0"
-WARNS= 0
+WARNS?= 0
.if ${TARGET_ARCH} != "ia64"
NOMAN= true
diff --git a/gnu/usr.bin/binutils/gasp/Makefile b/gnu/usr.bin/binutils/gasp/Makefile
index 1ea36d9..237474a 100644
--- a/gnu/usr.bin/binutils/gasp/Makefile
+++ b/gnu/usr.bin/binutils/gasp/Makefile
@@ -6,7 +6,7 @@
PROG= gasp
SRCS+= gasp+%FIXED.c macro.c sb.c hash.c
-WARNS= 2
+WARNS?= 2
CFLAGS+= -DBFD_ASSEMBLER
CFLAGS+= -I${.CURDIR}/../as/${TARGET_ARCH}-freebsd -I${.CURDIR}/../as
CFLAGS+= -I${.CURDIR}
diff --git a/gnu/usr.bin/binutils/gdb/Makefile b/gnu/usr.bin/binutils/gdb/Makefile
index 70434b3..cadd3b2 100644
--- a/gnu/usr.bin/binutils/gdb/Makefile
+++ b/gnu/usr.bin/binutils/gdb/Makefile
@@ -50,7 +50,7 @@ SRCS= init.c ${XSRCS} nm.h tm.h xm.h gdbversion.c xregex.h
.include "${.CURDIR}/Makefile.${TARGET_ARCH}"
-WARNS= 0
+WARNS?= 0
.if ${TARGET_ARCH} != ${MACHINE_ARCH}
CFLAGS+= -DCROSS_COMPILE=1
.endif
diff --git a/gnu/usr.bin/binutils/ld/Makefile b/gnu/usr.bin/binutils/ld/Makefile
index c75950e..56f652e 100644
--- a/gnu/usr.bin/binutils/ld/Makefile
+++ b/gnu/usr.bin/binutils/ld/Makefile
@@ -10,7 +10,7 @@ SRCS+= ldcref.c ldctor.c ldemul.c ldemul-list.h ldexp.c ldfile.c \
ldgram.y ldlang.c ldlex.l ldmain.c ldmisc.c \
ldver.c ldwrite.c lexsup.c mri.c
-WARNS= 1
+WARNS?= 1
CFLAGS+= -DSCRIPTDIR=\"${TOOLS_PREFIX}/usr/libdata\"
CFLAGS+= -DBFD_VERSION_STRING=\"${VERSION}\"
CFLAGS+= -I${SRCDIR}/ld -I${SRCDIR}/bfd
diff --git a/gnu/usr.bin/binutils/libbfd/Makefile b/gnu/usr.bin/binutils/libbfd/Makefile
index 3a83ca3..b05fa71 100644
--- a/gnu/usr.bin/binutils/libbfd/Makefile
+++ b/gnu/usr.bin/binutils/libbfd/Makefile
@@ -10,10 +10,10 @@ SRCS+= archive.c archive64.c archures.c bfd.c binary.c cache.c \
hash.c ihex.c init.c libbfd.c linker.c merge.c opncls.c reloc.c \
section.c srec.c stab-syms.c stabs.c syms.c targets.c tekhex.c \
targmatch.h dwarf1.c dwarf2.c config.h
+WARNS?=0
.if (${TARGET_ARCH} == "alpha" || ${TARGET_ARCH} == "ia64" || ${TARGET_ARCH} == "sparc64")
-WARNS= 2
+WARNS?= 2
.endif
-WARNS=0
CFLAGS+= -I${SRCDIR}/bfd
CFLAGS+= -DBFD_VERSION=\"${VERSION_DATE}\" -DBFD_VERSION_DATE=${VERSION_DATE}
CFLAGS+= -DBFD_VERSION_STRING=\"${VERSION}\"
diff --git a/gnu/usr.bin/binutils/libbinutils/Makefile b/gnu/usr.bin/binutils/libbinutils/Makefile
index ac6a5b9..8e07cc9 100644
--- a/gnu/usr.bin/binutils/libbinutils/Makefile
+++ b/gnu/usr.bin/binutils/libbinutils/Makefile
@@ -8,7 +8,7 @@ LIB= binutils
SRCS+= arlex.l arparse.y arsup.c bucomm.c debug.c filemode.c \
ieee.c rdcoff.c rddbg.c rename.c stabs.c unwind-ia64.c \
wrstabs.c version.c binemul.c budemang.c emul_vanilla.c
-WARNS= 0
+WARNS?= 0
.if ${TARGET_ARCH} == "amd64"
BINUTILS_ARCH=x86_64
.else
diff --git a/gnu/usr.bin/binutils/libiberty/Makefile b/gnu/usr.bin/binutils/libiberty/Makefile
index 7cce2ca..cb0ac97 100644
--- a/gnu/usr.bin/binutils/libiberty/Makefile
+++ b/gnu/usr.bin/binutils/libiberty/Makefile
@@ -10,7 +10,7 @@ SRCS= argv.c choose-temp.c concat.c cp-demangle.c cplus-dem.c \
hex.c floatformat.c hashtab.c lbasename.c make-temp-file.c \
objalloc.c obstack.c safe-ctype.c xatexit.c xexit.c xmalloc.c \
xstrdup.c xstrerror.c
-WARNS= 1
+WARNS?= 1
CFLAGS+= -DHAVE_CONFIG_H
INTERNALLIB= true
diff --git a/gnu/usr.bin/binutils/nm/Makefile b/gnu/usr.bin/binutils/nm/Makefile
index ef2f2d6..879bcc8 100644
--- a/gnu/usr.bin/binutils/nm/Makefile
+++ b/gnu/usr.bin/binutils/nm/Makefile
@@ -6,7 +6,7 @@
PROG= nm
SRCS= nm.c
-WARNS= 2
+WARNS?= 2
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils
CFLAGS+= -I${SRCDIR}/bfd
CFLAGS+= -I${SRCDIR}/binutils
diff --git a/gnu/usr.bin/binutils/objcopy/Makefile b/gnu/usr.bin/binutils/objcopy/Makefile
index dfa04f5..f31e046 100644
--- a/gnu/usr.bin/binutils/objcopy/Makefile
+++ b/gnu/usr.bin/binutils/objcopy/Makefile
@@ -6,7 +6,7 @@
PROG= objcopy
SRCS= objcopy.c not-strip.c
-WARNS= 2
+WARNS?= 2
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils
CFLAGS+= -I${SRCDIR}/binutils
DPADD= ${RELTOP}/libbinutils/libbinutils.a
diff --git a/gnu/usr.bin/binutils/objdump/Makefile b/gnu/usr.bin/binutils/objdump/Makefile
index 4a1d6a3..fca8068 100644
--- a/gnu/usr.bin/binutils/objdump/Makefile
+++ b/gnu/usr.bin/binutils/objdump/Makefile
@@ -6,7 +6,7 @@
PROG= objdump
SRCS= objdump.c prdbg.c
-WARNS= 2
+WARNS?= 2
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils
CFLAGS+= -I${SRCDIR}/binutils
CFLAGS+= -DBFD_VERSION_STRING=\"${VERSION}\"
diff --git a/gnu/usr.bin/binutils/readelf/Makefile b/gnu/usr.bin/binutils/readelf/Makefile
index d93551c..84658a5 100644
--- a/gnu/usr.bin/binutils/readelf/Makefile
+++ b/gnu/usr.bin/binutils/readelf/Makefile
@@ -9,7 +9,7 @@ BINDIR=/usr/bin
PROG= readelf
SRCS= ${PROG}.c
-WARNS= 0
+WARNS?= 0
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils -I${SRCDIR}/binutils
DPADD= ${RELTOP}/libbinutils/libbinutils.a
diff --git a/gnu/usr.bin/binutils/size/Makefile b/gnu/usr.bin/binutils/size/Makefile
index a0ef3171..795fd99 100644
--- a/gnu/usr.bin/binutils/size/Makefile
+++ b/gnu/usr.bin/binutils/size/Makefile
@@ -6,7 +6,7 @@
PROG= size
SRCS= size.c
-WARNS= 2
+WARNS?= 2
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils
CFLAGS+= -I${SRCDIR}/binutils
DPADD= ${RELTOP}/libbinutils/libbinutils.a
diff --git a/gnu/usr.bin/binutils/strings/Makefile b/gnu/usr.bin/binutils/strings/Makefile
index 346e59f..0e32e10 100644
--- a/gnu/usr.bin/binutils/strings/Makefile
+++ b/gnu/usr.bin/binutils/strings/Makefile
@@ -6,7 +6,7 @@
PROG= strings
SRCS= strings.c
-WARNS= 2
+WARNS?= 2
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils
CFLAGS+= -I${SRCDIR}/binutils
DPADD= ${RELTOP}/libbinutils/libbinutils.a
diff --git a/gnu/usr.bin/binutils/strip/Makefile b/gnu/usr.bin/binutils/strip/Makefile
index 45b1159..594a6fe 100644
--- a/gnu/usr.bin/binutils/strip/Makefile
+++ b/gnu/usr.bin/binutils/strip/Makefile
@@ -6,7 +6,7 @@
PROG= strip
SRCS= objcopy.c is-strip.c
-WARNS= 2
+WARNS?= 2
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils
CFLAGS+= -I${SRCDIR}/binutils
DPADD= ${RELTOP}/libbinutils/libbinutils.a
OpenPOWER on IntegriCloud