summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils/makefile.vms
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2000-09-12 14:48:46 +0000
committerMarc Espie <espie@cvs.openbsd.org>2000-09-12 14:48:46 +0000
commit62531eff7138b73da2a6d2b382959964d67d4269 (patch)
tree176edf1a30027217d6fcff6f9f1c049d990d75cf /gnu/usr.bin/binutils/makefile.vms
parent9ba342053c015a9be4f7f1ad1efdf21220329946 (diff)
Import binutils-2.10
- only the binutils package (no gdb here) - don't import libiberty and texinfo, they are elsewhere - remove all .info* generated files
Diffstat (limited to 'gnu/usr.bin/binutils/makefile.vms')
-rw-r--r--gnu/usr.bin/binutils/makefile.vms62
1 files changed, 48 insertions, 14 deletions
diff --git a/gnu/usr.bin/binutils/makefile.vms b/gnu/usr.bin/binutils/makefile.vms
index 164b57a0725..a9e363403b5 100644
--- a/gnu/usr.bin/binutils/makefile.vms
+++ b/gnu/usr.bin/binutils/makefile.vms
@@ -1,37 +1,71 @@
#
# makefile for bfd, binutils and gas
#
-# Created by Klaus K"ampf (kkaempf@progis.de)
+# Created by Klaus K"ampf (kkaempf@rmi.de)
#
-# You must use Version 3.75p (proGIS enhanced) of GNU Make
+# You must use Version 3.76 of GNU Make
#
#
+
+ifeq ($(ARCH),ALPHA)
CC = gcc
+GASCC = $(CC)
+else
+CC = cc
+GASCC = gcc
+endif
+
+ifeq ($(CC),cc)
+ CHECK-COMPILER = check_compiler
+else
+ CHECK-COMPILER =
+endif
-all:
- $$ @setup
+all: check_cc $(CHECK-COMPILER) [.binutils]makefile.vms
$(CD) [.bfd]
- gmake "CC=$(CC)"
+ @gmake "CC=$(CC)"
$(CD) [-.opcodes]
- gmake "CC=$(CC)"
+ @gmake "CC=$(CC)"
$(CD) [-.libiberty]
- gmake "CC=$(CC)"
+ @gmake "CC=$(CC)"
$(CD) [-.binutils]
- gmake "CC=$(CC)"
+ @gmake "CC=$(CC)"
$(CD) [-.gas]
- gmake "CC=$(CC)"
+ @gmake "CC=$(GASCC)"
+ $(CD) [-]
+
+check_cc:
+ifeq ($CC,)
+ @$(ECHO) "Please edit MAKEFILE.VMS and select a C Compiler."
+ stop
+endif
+
+check_compiler:
+ @$(ECHO) "Perform a '$$ @setup' before starting make"
+
+[.binutils]makefile.vms:
+ $(CD) [.binutils]
+ $$ @configure
+ $(CD) [-]
+
+install: all
+ $(CD) [.binutils]
+ @gmake "CC=$(CC)" install
+ $(CD) [-]
+ $(CD) [.gas]
+ @gmake "CC=$(GASCC)" install
$(CD) [-]
clean:
$(CD) [.bfd]
- gmake clean
+ @gmake clean
$(CD) [-.opcodes]
- gmake clean
+ @gmake clean
$(CD) [-.libiberty]
- gmake clean
+ @gmake clean
$(CD) [-.binutils]
- gmake clean
+ @gmake clean
$(CD) [-.gas]
- gmake clean
+ @gmake clean
$(CD) [-]