1997-02-14 04:06:09 +01:00
|
|
|
#
|
|
|
|
# makefile for bfd, binutils and gas
|
|
|
|
#
|
1998-07-02 21:03:37 +02:00
|
|
|
# Created by Klaus K"ampf (kkaempf@rmi.de)
|
1997-02-14 04:06:09 +01:00
|
|
|
#
|
1997-10-20 21:30:47 +02:00
|
|
|
# You must use Version 3.76 of GNU Make
|
1997-02-14 04:06:09 +01:00
|
|
|
#
|
|
|
|
#
|
1998-07-02 21:03:37 +02:00
|
|
|
|
|
|
|
ifeq ($(ARCH),ALPHA)
|
|
|
|
CC = gcc
|
|
|
|
GASCC = $(CC)
|
|
|
|
else
|
|
|
|
CC = cc
|
|
|
|
GASCC = gcc
|
|
|
|
endif
|
1997-02-14 04:06:09 +01:00
|
|
|
|
1997-10-20 21:30:47 +02:00
|
|
|
ifeq ($(CC),cc)
|
|
|
|
CHECK-COMPILER = check_compiler
|
|
|
|
else
|
|
|
|
CHECK-COMPILER =
|
|
|
|
endif
|
|
|
|
|
1998-07-02 21:03:37 +02:00
|
|
|
all: check_cc $(CHECK-COMPILER) [.binutils]makefile.vms
|
1997-02-14 04:06:09 +01:00
|
|
|
$(CD) [.bfd]
|
1997-10-20 21:30:47 +02:00
|
|
|
@gmake "CC=$(CC)"
|
1997-02-14 04:06:09 +01:00
|
|
|
$(CD) [-.opcodes]
|
1997-10-20 21:30:47 +02:00
|
|
|
@gmake "CC=$(CC)"
|
1997-02-14 04:06:09 +01:00
|
|
|
$(CD) [-.libiberty]
|
1997-10-20 21:30:47 +02:00
|
|
|
@gmake "CC=$(CC)"
|
1997-02-14 04:06:09 +01:00
|
|
|
$(CD) [-.binutils]
|
1997-10-20 21:30:47 +02:00
|
|
|
@gmake "CC=$(CC)"
|
1997-02-14 04:06:09 +01:00
|
|
|
$(CD) [-.gas]
|
1998-07-02 21:03:37 +02:00
|
|
|
@gmake "CC=$(GASCC)"
|
1997-02-14 04:06:09 +01:00
|
|
|
$(CD) [-]
|
|
|
|
|
1997-10-20 21:30:47 +02:00
|
|
|
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"
|
|
|
|
|
1998-07-02 21:03:37 +02:00
|
|
|
[.binutils]makefile.vms:
|
|
|
|
$(CD) [.binutils]
|
|
|
|
$$ @configure
|
|
|
|
$(CD) [-]
|
|
|
|
|
|
|
|
install: all
|
|
|
|
$(CD) [.binutils]
|
|
|
|
@gmake "CC=$(CC)" install
|
|
|
|
$(CD) [-]
|
|
|
|
$(CD) [.gas]
|
|
|
|
@gmake "CC=$(GASCC)" install
|
|
|
|
$(CD) [-]
|
|
|
|
|
1997-02-14 04:06:09 +01:00
|
|
|
clean:
|
|
|
|
$(CD) [.bfd]
|
1998-07-02 21:03:37 +02:00
|
|
|
@gmake clean
|
1997-02-14 04:06:09 +01:00
|
|
|
$(CD) [-.opcodes]
|
1998-07-02 21:03:37 +02:00
|
|
|
@gmake clean
|
1997-02-14 04:06:09 +01:00
|
|
|
$(CD) [-.libiberty]
|
1998-07-02 21:03:37 +02:00
|
|
|
@gmake clean
|
1997-02-14 04:06:09 +01:00
|
|
|
$(CD) [-.binutils]
|
1998-07-02 21:03:37 +02:00
|
|
|
@gmake clean
|
1997-02-14 04:06:09 +01:00
|
|
|
$(CD) [-.gas]
|
1998-07-02 21:03:37 +02:00
|
|
|
@gmake clean
|
1997-02-14 04:06:09 +01:00
|
|
|
$(CD) [-]
|
|
|
|
|