X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=makefile.vms;h=a9e363403b5ba0cc2f7c75864654390f4a3b6177;hb=7d7167ce1b93f8bb151daa2572314987eaeb9e3c;hp=164b57a07256783fcd5449b36b570540ad354a95;hpb=21ac2bc790a5c1fdb18c91c02667cd2d62921325;p=deliverable%2Fbinutils-gdb.git diff --git a/makefile.vms b/makefile.vms index 164b57a072..a9e363403b 100644 --- a/makefile.vms +++ b/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) [-]