1997-02-14 04:06:09 +01:00
|
|
|
#
|
|
|
|
# makefile for bfd, binutils and gas
|
|
|
|
#
|
|
|
|
# Created by Klaus K"ampf (kkaempf@progis.de)
|
|
|
|
#
|
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
|
|
|
#
|
|
|
|
#
|
1997-10-20 21:30:47 +02:00
|
|
|
CC =
|
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
|
|
|
|
|
|
|
|
all: check_cc $(CHECK-COMPILER)
|
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]
|
1997-10-20 21:30:47 +02:00
|
|
|
@gmake "CC=$(CC)"
|
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"
|
|
|
|
|
1997-02-14 04:06:09 +01:00
|
|
|
clean:
|
|
|
|
$(CD) [.bfd]
|
|
|
|
gmake clean
|
|
|
|
$(CD) [-.opcodes]
|
|
|
|
gmake clean
|
|
|
|
$(CD) [-.libiberty]
|
|
|
|
gmake clean
|
|
|
|
$(CD) [-.binutils]
|
|
|
|
gmake clean
|
|
|
|
$(CD) [-.gas]
|
|
|
|
gmake clean
|
|
|
|
$(CD) [-]
|
|
|
|
|