summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils/ar
diff options
context:
space:
mode:
authorJohn Polstra <jdp@FreeBSD.org>1998-03-12 02:55:43 +0000
committerJohn Polstra <jdp@FreeBSD.org>1998-03-12 02:55:43 +0000
commitab5ad3a4b52fafc4d244d6f407fbfad132ad2fa5 (patch)
tree607a0bd1d82cd55b0766771fc8470d5478410d8b /gnu/usr.bin/binutils/ar
parentf830032fc81e7b59de346ca2878690da22b47712 (diff)
Restructure the binutils hierarchy somewhat in order to better
support building it for variant architectures. It was already becoming clear that the former structure was too rigid and didn't scale well. The usual sort of makefile magic arranges to .include an architecture specific makefile "Makefile.${MACHINE_ARCH}" in each directory where it exists. Also, sources will be found in each subdirectory "${MACHINE_ARCH}" that exists. This is all taken care of automatically by the top level "Makefile.inc0". This all seems to work right for the i386 now. I have also converted those alpha pieces already present to the new schema as best I could. Also: change the BINDIR on the i386 to /usr/libexec/elf for "ar" and "ranlib". They are not object format independent enough to put into /usr/bin.
Notes
svn path=/head/; revision=34495
Diffstat (limited to 'gnu/usr.bin/binutils/ar')
-rw-r--r--gnu/usr.bin/binutils/ar/Makefile3
-rw-r--r--gnu/usr.bin/binutils/ar/Makefile.i3865
2 files changed, 7 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils/ar/Makefile b/gnu/usr.bin/binutils/ar/Makefile
index 86f0ddf37e32..7374a727fa56 100644
--- a/gnu/usr.bin/binutils/ar/Makefile
+++ b/gnu/usr.bin/binutils/ar/Makefile
@@ -1,5 +1,5 @@
#
-# $Id$
+# $Id: Makefile,v 1.1.1.1 1998/03/01 23:40:51 jdp Exp $
#
.include "../Makefile.inc0"
@@ -8,6 +8,7 @@
PROG= ar
SRCS= ar.c not-ranlib.c
+CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils
CFLAGS+= -I${SRCDIR}/binutils
CFLAGS+= -I${SRCDIR}/bfd
LDADD+= -L${RELTOP}/libbinutils -lbinutils
diff --git a/gnu/usr.bin/binutils/ar/Makefile.i386 b/gnu/usr.bin/binutils/ar/Makefile.i386
new file mode 100644
index 000000000000..a23f65695926
--- /dev/null
+++ b/gnu/usr.bin/binutils/ar/Makefile.i386
@@ -0,0 +1,5 @@
+#
+# $Id$
+#
+
+BINDIR= /usr/libexec/elf