aboutsummaryrefslogtreecommitdiff
path: root/makefile.vms
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1997-10-20 19:30:47 +0000
committerIan Lance Taylor <ian@airs.com>1997-10-20 19:30:47 +0000
commit2319b893ee80ecc4b59234dd3044145e35f19e1a (patch)
tree4a4f42cede2805bf42164739913f95a3e6e4ce3f /makefile.vms
parent412222d910b7776967c56d97482e863fcd6c7aa0 (diff)
downloadgdb-2319b893ee80ecc4b59234dd3044145e35f19e1a.zip
gdb-2319b893ee80ecc4b59234dd3044145e35f19e1a.tar.gz
gdb-2319b893ee80ecc4b59234dd3044145e35f19e1a.tar.bz2
Mon Oct 20 15:28:49 1997 Klaus K"ampf <kkaempf@progis.de>
* makefile.vms: Fix to work with DEC C.
Diffstat (limited to 'makefile.vms')
-rw-r--r--makefile.vms32
1 files changed, 23 insertions, 9 deletions
diff --git a/makefile.vms b/makefile.vms
index 164b57a..01b54d0 100644
--- a/makefile.vms
+++ b/makefile.vms
@@ -3,25 +3,39 @@
#
# Created by Klaus K"ampf (kkaempf@progis.de)
#
-# You must use Version 3.75p (proGIS enhanced) of GNU Make
+# You must use Version 3.76 of GNU Make
#
#
-CC = gcc
+CC =
-all:
- $$ @setup
+ifeq ($(CC),cc)
+ CHECK-COMPILER = check_compiler
+else
+ CHECK-COMPILER =
+endif
+
+all: check_cc $(CHECK-COMPILER)
$(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=$(CC)"
$(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"
+
clean:
$(CD) [.bfd]
gmake clean