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