source: trunk/libs/newlib/src/makefile.vms @ 457

Last change on this file since 457 was 444, checked in by satin@…, 7 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 1.1 KB
RevLine 
[444]1#
2# makefile for bfd, binutils and gas
3#
4# Created by Klaus K"ampf (kkaempf@rmi.de)
5#
6# You must use Version 3.76 of GNU Make
7#
8#
9
10ifeq ($(ARCH),ALPHA)
11CC = gcc
12GASCC = $(CC)
13else
14CC = cc
15GASCC = gcc
16endif
17
18ifeq ($(CC),cc)
19  CHECK-COMPILER = check_compiler
20else
21  CHECK-COMPILER =
22endif
23
24all:    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
37check_cc:
38ifeq ($CC,)
39        @$(ECHO) "Please edit MAKEFILE.VMS and select a C Compiler."
40        stop
41endif
42
43check_compiler:
44        @$(ECHO) "Perform a '$$ @setup' before starting make"
45
46[.binutils]makefile.vms:
47        $(CD) [.binutils]
48        $$ @configure
49        $(CD) [-]
50
51install: all
52        $(CD) [.binutils]
53        @gmake "CC=$(CC)" install
54        $(CD) [-]
55        $(CD) [.gas]
56        @gmake "CC=$(GASCC)" install
57        $(CD) [-]
58
59clean:
60        $(CD) [.bfd]
61        @gmake clean
62        $(CD) [-.opcodes]
63        @gmake clean
64        $(CD) [-.libiberty]
65        @gmake clean
66        $(CD) [-.binutils]
67        @gmake clean
68        $(CD) [-.gas]
69        @gmake clean
70        $(CD) [-]
71
Note: See TracBrowser for help on using the repository browser.