aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils/Makefile.inc0
diff options
context:
space:
mode:
authorJohn Polstra <jdp@FreeBSD.org>1998-03-01 23:41:17 +0000
committerJohn Polstra <jdp@FreeBSD.org>1998-03-01 23:41:17 +0000
commit2e280533a10eaa08d9445ae220903bf26e5519ff (patch)
treedbe5f2021921d52092f7ed2bd4e64f726eec285a /gnu/usr.bin/binutils/Makefile.inc0
parent12df71b07cfc4e6d9f15120080013d09547b4a99 (diff)
downloadsrc-2e280533a10eaa08d9445ae220903bf26e5519ff.tar.gz
src-2e280533a10eaa08d9445ae220903bf26e5519ff.zip
Add bmakefiles for building binutils from the contrib tree.
This finishes up the binutils import. But I am leaving it disabled in "src/gnu/usr.bin/Makefile" for now. It is not used by anything yet, so I'll take this opportunity to run one more round of tests before enabling it.
Notes
Notes: svn path=/cvs2svn/branches/JDP/; revision=33975
Diffstat (limited to 'gnu/usr.bin/binutils/Makefile.inc0')
-rw-r--r--gnu/usr.bin/binutils/Makefile.inc030
1 files changed, 30 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils/Makefile.inc0 b/gnu/usr.bin/binutils/Makefile.inc0
new file mode 100644
index 000000000000..51ed0c50fde8
--- /dev/null
+++ b/gnu/usr.bin/binutils/Makefile.inc0
@@ -0,0 +1,30 @@
+#
+# $Id$
+#
+
+#
+# This is included explicitly at the top of each sub-Makefile. We can't
+# use the normal "Makefile.inc" mechanism, because we need some of these
+# definitions before the sub-Makefile is processed.
+#
+
+VERSION= 2.8.1
+
+# RELTOP is the relative path to this point in the source or object
+# tree, from any subdirectory of same. It gets extra "../" prefixes
+# added to it as we descend into subdirectories.
+RELTOP:= ..
+
+RELSRC= ${RELTOP}/../../../contrib/binutils
+SRCDIR= ${.CURDIR}/${RELSRC}
+HOST= i386-unknown-freebsdelf
+TARGET= i386-unknown-freebsdelf
+
+CFLAGS+= -D_GNU_SOURCE
+CFLAGS+= -DARCH_i386
+
+# We use "-I-" because without it our yacc-generated parser tries to
+# use GNU's bison-generated header files.
+CFLAGS+= -I- -I. -I${.CURDIR}
+CFLAGS+= -I${.CURDIR}/${RELTOP}/libbfd
+CFLAGS+= -I${SRCDIR}/include