1fddef416Sniklas# 2fddef416Sniklas# makefile for bfd, binutils and gas 3fddef416Sniklas# 4*f7cc78ecSespie# Created by Klaus K"ampf (kkaempf@rmi.de) 5fddef416Sniklas# 6*f7cc78ecSespie# You must use Version 3.76 of GNU Make 7fddef416Sniklas# 8fddef416Sniklas# 9fddef416Sniklas 10*f7cc78ecSespieifeq ($(ARCH),ALPHA) 11*f7cc78ecSespieCC = gcc 12*f7cc78ecSespieGASCC = $(CC) 13*f7cc78ecSespieelse 14*f7cc78ecSespieCC = cc 15*f7cc78ecSespieGASCC = gcc 16*f7cc78ecSespieendif 17*f7cc78ecSespie 18*f7cc78ecSespieifeq ($(CC),cc) 19*f7cc78ecSespie CHECK-COMPILER = check_compiler 20*f7cc78ecSespieelse 21*f7cc78ecSespie CHECK-COMPILER = 22*f7cc78ecSespieendif 23*f7cc78ecSespie 24*f7cc78ecSespieall: check_cc $(CHECK-COMPILER) [.binutils]makefile.vms 25fddef416Sniklas $(CD) [.bfd] 26*f7cc78ecSespie @gmake "CC=$(CC)" 27fddef416Sniklas $(CD) [-.opcodes] 28*f7cc78ecSespie @gmake "CC=$(CC)" 29fddef416Sniklas $(CD) [-.libiberty] 30*f7cc78ecSespie @gmake "CC=$(CC)" 31fddef416Sniklas $(CD) [-.binutils] 32*f7cc78ecSespie @gmake "CC=$(CC)" 33fddef416Sniklas $(CD) [-.gas] 34*f7cc78ecSespie @gmake "CC=$(GASCC)" 35*f7cc78ecSespie $(CD) [-] 36*f7cc78ecSespie 37*f7cc78ecSespiecheck_cc: 38*f7cc78ecSespieifeq ($CC,) 39*f7cc78ecSespie @$(ECHO) "Please edit MAKEFILE.VMS and select a C Compiler." 40*f7cc78ecSespie stop 41*f7cc78ecSespieendif 42*f7cc78ecSespie 43*f7cc78ecSespiecheck_compiler: 44*f7cc78ecSespie @$(ECHO) "Perform a '$$ @setup' before starting make" 45*f7cc78ecSespie 46*f7cc78ecSespie[.binutils]makefile.vms: 47*f7cc78ecSespie $(CD) [.binutils] 48*f7cc78ecSespie $$ @configure 49*f7cc78ecSespie $(CD) [-] 50*f7cc78ecSespie 51*f7cc78ecSespieinstall: all 52*f7cc78ecSespie $(CD) [.binutils] 53*f7cc78ecSespie @gmake "CC=$(CC)" install 54*f7cc78ecSespie $(CD) [-] 55*f7cc78ecSespie $(CD) [.gas] 56*f7cc78ecSespie @gmake "CC=$(GASCC)" install 57fddef416Sniklas $(CD) [-] 58fddef416Sniklas 59fddef416Sniklasclean: 60fddef416Sniklas $(CD) [.bfd] 61*f7cc78ecSespie @gmake clean 62fddef416Sniklas $(CD) [-.opcodes] 63*f7cc78ecSespie @gmake clean 64fddef416Sniklas $(CD) [-.libiberty] 65*f7cc78ecSespie @gmake clean 66fddef416Sniklas $(CD) [-.binutils] 67*f7cc78ecSespie @gmake clean 68fddef416Sniklas $(CD) [-.gas] 69*f7cc78ecSespie @gmake clean 70fddef416Sniklas $(CD) [-] 71fddef416Sniklas 72