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