aboutsummaryrefslogtreecommitdiff
path: root/makefile.vms
blob: 01b54d0cb1402998d3726859a36e8e55f0621f55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#
# makefile for bfd, binutils and gas
#
# Created by Klaus K"ampf (kkaempf@progis.de)
#
# You must use Version 3.76 of GNU Make
#
#
CC =

ifeq ($(CC),cc)
  CHECK-COMPILER = check_compiler
else
  CHECK-COMPILER =
endif

all:	check_cc $(CHECK-COMPILER)
	$(CD) [.bfd]
	@gmake "CC=$(CC)"
	$(CD) [-.opcodes]
	@gmake "CC=$(CC)"
	$(CD) [-.libiberty]
	@gmake "CC=$(CC)"
	$(CD) [-.binutils]
	@gmake "CC=$(CC)"
	$(CD) [-.gas]
	@gmake "CC=$(CC)"
	$(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"

clean:
	$(CD) [.bfd]
	gmake clean
	$(CD) [-.opcodes]
	gmake clean
	$(CD) [-.libiberty]
	gmake clean
	$(CD) [-.binutils]
	gmake clean
	$(CD) [-.gas]
	gmake clean
	$(CD) [-]