VirtualBox

source: kBuild/trunk/src/gmake/makefile.vms@ 684

Last change on this file since 684 was 503, checked in by bird, 18 years ago

Untested merge with GNU Make v3.81 (vendor/gnumake/2005-05-16 -> vendor/gnumake/current).

  • Property svn:eol-style set to native
File size: 4.8 KB
Line 
1# -*-Makefile-*- to build GNU make on VMS
2#
3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
4# 2006 Free Software Foundation, Inc.
5# This file is part of GNU Make.
6#
7# GNU Make is free software; you can redistribute it and/or modify it under the
8# terms of the GNU General Public License as published by the Free Software
9# Foundation; either version 2, or (at your option) any later version.
10#
11# GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
12# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
13# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License along with
16# GNU Make; see the file COPYING. If not, write to the Free Software
17# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18
19# VMS extensions from GNU Make 3.60 imported by
20# Klaus Kämpf ([email protected])
21# Modified for version 3.78.1 by [email protected].
22# Modified for version 3.80 by [email protected]
23# Modified for version 3.81 by Hartmut Becker
24
25CC = cc
26CP = copy
27
28%.obj: %.c
29 $(CC) $(CFLAGS)/obj=$@ $<
30#
31# Makefile for GNU Make
32#
33
34ifeq ($(CC),cc)
35CFLAGS = $(defines) /include=([],[.glob])/prefix=(all,except=(glob,globfree))/standard=relaxed/warn=(disable=questcompare)
36else
37CFLAGS = $(defines) /include=([],[.glob])
38endif
39#LDFLAGS = /deb
40LDFLAGS =
41
42ifeq ($(CC),cc)
43defines = /define=("unlink=remove","HAVE_CONFIG_H","VMS","allocated_variable_expand_for_file=alloc_var_expand_for_file")
44else
45ifeq ($(ARCH),VAX)
46defines = /define=("HAVE_CONFIG_H","GCC_IS_NATIVE","VAX")
47else
48defines = /define=("HAVE_CONFIG_H","GCC_IS_NATIVE")
49endif
50endif
51
52LOAD_AVG = /define="NO_LDAV"
53
54# If you don't want archive support, comment these out.
55ARCHIVES = ,ar.obj,arscan.obj
56ARCHIVES_SRC = ar.c arscan.c
57
58# If your system needs extra libraries loaded in, define them here.
59# System V probably need -lPW for alloca.
60# if on vax, uncomment the following line
61#LOADLIBES = ,c.opt/opt
62ifeq ($(CC),cc)
63#LOADLIBES =,sys$$library:vaxcrtl.olb/lib
64CRT0 =
65else
66LOADLIBES =,gnu_cc_library:libgcc.olb/lib
67endif
68
69# If your system doesn't have alloca, or the one provided is bad,
70# get it from the Emacs distribution and define these.
71#ALLOCA = ,alloca.obj
72#ALLOCASRC = alloca.c
73
74# If there are remote execution facilities defined,
75# enable them with switches here (see remote-*.c).
76REMOTE =
77
78# Any extra object files your system needs.
79extras = ,signame.obj,remote-stub.obj,vmsfunctions.obj,vmsify.obj
80#,directory.obj
81# as an alternative:
82glob = ,[.glob]glob.obj,[.glob]fnmatch.obj
83getopt = ,getopt.obj,getopt1.obj
84# Directory to install `make' in.
85bindir = []
86# Directory to install the man page in.
87mandir = []
88# Number to put on the man page filename.
89manext = 1
90
91objs = commands.obj,job.obj,dir.obj,file.obj,misc.obj,hash.obj,\
92 main.obj,read.obj,remake.obj,rule.obj,implicit.obj,\
93 default.obj,variable.obj,expand.obj,function.obj,strcache.obj,\
94 vpath.obj,version.obj$(ARCHIVES)$(ALLOCA)$(extras)$(getopt)$(glob)
95srcs = commands.c job.c dir.c file.c misc.c hash.c \
96 main.c read.c remake.c rule.c implicit.c \
97 default.c variable.c expand.c function.c strcache.c \
98 vpath.c version.c vmsfunctions.c vmsify.c $(ARCHIVES_SRC) $(ALLOCASRC) \
99 commands.h dep.h filedef.h job.h make.h rule.h variable.h
100
101
102.PHONY: all doc
103all: config.h make.exe
104
105doc: make.info make.dvi
106
107
108make.exe: $(objs)
109 $(LD)$(LDFLAGS)/exe=$@ $^$(LOADLIBES)$(CRT0)
110
111.PHONY: clean realclean
112clean:
113 $$ purge [...]
114 -$(RM) make.exe;,*.obj;
115 -$(RM) [.glob]*.obj;
116
117# Automatically generated dependencies.
118commands.obj: commands.c make.h dep.h commands.h filedef.h variable.h job.h
119job.obj: job.c vmsjobs.c make.h commands.h job.h filedef.h variable.h
120dir.obj: dir.c make.h
121file.obj: file.c make.h commands.h dep.h filedef.h variable.h
122misc.obj: misc.c make.h dep.h
123hash.obj: hash.c make.h hash.h
124strcache.obj: strcache.c make.h hash.h
125main.obj: main.c make.h commands.h dep.h filedef.h variable.h job.h
126read.obj: read.c make.h commands.h dep.h filedef.h variable.h
127remake.obj: remake.c make.h commands.h job.h dep.h filedef.h
128rule.obj: rule.c make.h commands.h dep.h filedef.h variable.h rule.h
129implicit.obj: implicit.c make.h rule.h dep.h filedef.h
130default.obj: default.c make.h rule.h dep.h filedef.h commands.h variable.h
131variable.obj: variable.c make.h commands.h variable.h dep.h filedef.h
132expand.obj: expand.c make.h commands.h filedef.h variable.h
133function.obj: function.c make.h variable.h dep.h commands.h job.h
134vpath.obj: vpath.c make.h filedef.h variable.h
135version.obj: version.c config.h
136arscan.obj: arscan.c
137ar.obj: ar.c make.h filedef.h
138signame.obj: signame.c
139remote-stub.obj: remote-stub.c
140[.glob]glob.obj: [.glob]glob.c
141[.glob]fnmatch.obj: [.glob]fnmatch.c
142getopt.obj: getopt.c
143getopt1.obj: getopt1.c
144vmsfunctions.obj: vmsfunctions.c make.h vmsdir.h
145vmsify.obj: vmsify.c make.h
146
147config.h: config.h-vms
148 $(CP) $< $@
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette