summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-11-30 23:13:42 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-11-30 23:13:42 +0000
commit790b0f250ac42a3db554ceea3083caee84cc7958 (patch)
tree0ca2fb21c27359dd9708c6b22b583e2d01ab8925
parentaf5b6e1fd02b1f2daf21ee8108e7437d0c2e27df (diff)
A stab at controlling SUBDIRS per arch, still problematic, but works
as commentary for the moment
-rw-r--r--gnu/usr.bin/binutils/Makefile.bsd-wrapper27
1 files changed, 20 insertions, 7 deletions
diff --git a/gnu/usr.bin/binutils/Makefile.bsd-wrapper b/gnu/usr.bin/binutils/Makefile.bsd-wrapper
index a4a4182fdad..dcfd24c721a 100644
--- a/gnu/usr.bin/binutils/Makefile.bsd-wrapper
+++ b/gnu/usr.bin/binutils/Makefile.bsd-wrapper
@@ -1,11 +1,24 @@
-# $OpenBSD: Makefile.bsd-wrapper,v 1.7 1996/11/23 03:32:21 niklas Exp $
-
-MAN= binutils/ar.1 binutils/nlmconv.1 binutils/nm.1 binutils/objcopy.1 \
- binutils/objdump.1 binutils/ranlib.1 binutils/size.1 \
- binutils/strings.1 binutils/strip.1 gas/doc/as.1 ld/ld.1
-
+# $OpenBSD: Makefile.bsd-wrapper,v 1.8 1996/11/30 23:13:41 niklas Exp $
+
+MAN= binutils/ar.1 binutils/nlmconv.1 binutils/nm.1 \
+ binutils/objcopy.1 binutils/objdump.1 binutils/ranlib.1 \
+ binutils/size.1 binutils/strings.1 binutils/strip.1 \
+ gas/doc/as.1 ld/ld.1
+
+SUBDIRS= libiberty opcodes bfd
+# When enabling gdb, enable these too
+.if (${MACHINE_ARCH} != "mips") && (${MACHINE_ARCH} != "alpha")
+SUBDIRS+= mmalloc readline
+.endif
+SUBDIRS+= binutils ld gas
+# GDB not ready yet
+.if (${MACHINE_ARCH} != "mips") && (${MACHINE_ARCH} != "alpha")
+SUBDIRS+= gdb
+.endif
+
all: config.status
- ${MAKE} LDFLAGS=${LDSTATIC}
+ ${MAKE} CC="${CC}" CFLAGS="${CFLAGS} ${COPTS}" LDFLAGS=${LDSTATIC} \
+ SUBDIRS="${SUBDIRS}"
.FORCE: .IGNORE