source:
trunk/binutils/makefile.vms@
2747
| Last change on this file since 2747 was 10, checked in by , 23 years ago | |
|---|---|
|
|
| File size: 1.1 KB | |
| Line | |
|---|---|
| 1 | # |
| 2 | # makefile for bfd, binutils and gas |
| 3 | # |
| 4 | # Created by Klaus K"ampf ([email protected]) |
| 5 | # |
| 6 | # You must use Version 3.76 of GNU Make |
| 7 | # |
| 8 | # |
| 9 | |
| 10 | ifeq ($(ARCH),ALPHA) |
| 11 | CC = gcc |
| 12 | GASCC = $(CC) |
| 13 | else |
| 14 | CC = cc |
| 15 | GASCC = gcc |
| 16 | endif |
| 17 | |
| 18 | ifeq ($(CC),cc) |
| 19 | CHECK-COMPILER = check_compiler |
| 20 | else |
| 21 | CHECK-COMPILER = |
| 22 | endif |
| 23 | |
| 24 | all: check_cc $(CHECK-COMPILER) [.binutils]makefile.vms |
| 25 | $(CD) [.bfd] |
| 26 | @gmake "CC=$(CC)" |
| 27 | $(CD) [-.opcodes] |
| 28 | @gmake "CC=$(CC)" |
| 29 | $(CD) [-.libiberty] |
| 30 | @gmake "CC=$(CC)" |
| 31 | $(CD) [-.binutils] |
| 32 | @gmake "CC=$(CC)" |
| 33 | $(CD) [-.gas] |
| 34 | @gmake "CC=$(GASCC)" |
| 35 | $(CD) [-] |
| 36 | |
| 37 | check_cc: |
| 38 | ifeq ($CC,) |
| 39 | @$(ECHO) "Please edit MAKEFILE.VMS and select a C Compiler." |
| 40 | stop |
| 41 | endif |
| 42 | |
| 43 | check_compiler: |
