summaryrefslogtreecommitdiff
path: root/makefile.vms
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>1999-05-03 07:29:06 +0000
committerRichard Henderson <rth@redhat.com>1999-05-03 07:29:06 +0000
commit860acaebec6b57ce27e244cc02a58e6651a4b6c3 (patch)
treeeff5420756a4bd56b40b74c2b828b261f327610b /makefile.vms
parentf9c53ad2d7cb541cbe821d645b90437ac063e5db (diff)
downloadgdb-860acaebec6b57ce27e244cc02a58e6651a4b6c3.tar.gz
Initial revision
Diffstat (limited to 'makefile.vms')
-rw-r--r--makefile.vms71
1 files changed, 71 insertions, 0 deletions
diff --git a/makefile.vms b/makefile.vms
new file mode 100644
index 00000000000..a9e363403b5
--- /dev/null
+++ b/makefile.vms
@@ -0,0 +1,71 @@
+#
+# makefile for bfd, binutils and gas
+#
+# Created by Klaus K"ampf (kkaempf@rmi.de)
+#
+# 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: check_cc $(CHECK-COMPILER) [.binutils]makefile.vms
+ $(CD) [.bfd]
+ @gmake "CC=$(CC)"
+ $(CD) [-.opcodes]
+ @gmake "CC=$(CC)"
+ $(CD) [-.libiberty]
+ @gmake "CC=$(CC)"
+ $(CD) [-.binutils]
+ @gmake "CC=$(CC)"
+ $(CD) [-.gas]
+ @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
+ $(CD) [-.opcodes]
+ @gmake clean
+ $(CD) [-.libiberty]
+ @gmake clean
+ $(CD) [-.binutils]
+ @gmake clean
+ $(CD) [-.gas]
+ @gmake clean
+ $(CD) [-]
+