mirror of
https://review.haiku-os.org/buildtools
synced 2026-02-04 07:53:14 +01:00
Initial revision
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9568 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
71
binutils/makefile.vms
Normal file
71
binutils/makefile.vms
Normal file
@@ -0,0 +1,71 @@
|
||||
#
|
||||
# makefile for bfd, binutils and gas
|
||||
#
|
||||
# Created by Klaus K"ampf (kkaempf@rmi.de)
|
||||
#
|
||||
# You must use Version 3.76 of GNU Make
|
||||
#
|
||||
#
|
||||
|
||||
ifeq ($(ARCH),ALPHA)
|
||||
CC = gcc
|
||||
GASCC = $(CC)
|
||||
else
|
||||
CC = cc
|
||||
GASCC = gcc
|
||||
endif
|
||||
|
||||
ifeq ($(CC),cc)
|
||||
CHECK-COMPILER = check_compiler
|
||||
else
|
||||
CHECK-COMPILER =
|
||||
endif
|
||||
|
||||
all: check_cc $(CHECK-COMPILER) [.binutils]makefile.vms
|
||||
$(CD) [.bfd]
|
||||
@gmake "CC=$(CC)"
|
||||
$(CD) [-.opcodes]
|
||||
@gmake "CC=$(CC)"
|
||||
$(CD) [-.libiberty]
|
||||
@gmake "CC=$(CC)"
|
||||
$(CD) [-.binutils]
|
||||
@gmake "CC=$(CC)"
|
||||
$(CD) [-.gas]
|
||||
@gmake "CC=$(GASCC)"
|
||||
$(CD) [-]
|
||||
|
||||
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"
|
||||
|
||||
[.binutils]makefile.vms:
|
||||
$(CD) [.binutils]
|
||||
$$ @configure
|
||||
$(CD) [-]
|
||||
|
||||
install: all
|
||||
$(CD) [.binutils]
|
||||
@gmake "CC=$(CC)" install
|
||||
$(CD) [-]
|
||||
$(CD) [.gas]
|
||||
@gmake "CC=$(GASCC)" install
|
||||
$(CD) [-]
|
||||
|
||||
clean:
|
||||
$(CD) [.bfd]
|
||||
@gmake clean
|
||||
$(CD) [-.opcodes]
|
||||
@gmake clean
|
||||
$(CD) [-.libiberty]
|
||||
@gmake clean
|
||||
$(CD) [-.binutils]
|
||||
@gmake clean
|
||||
$(CD) [-.gas]
|
||||
@gmake clean
|
||||
$(CD) [-]
|
||||
|
||||
Reference in New Issue
Block a user