VirtualBox

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

Last change on this file since 287 was 281, checked in by bird, 20 years ago

This commit was generated by cvs2svn to compensate for changes in r280,
which included commits to RCS files with non-trunk default branches.

  • Property svn:eol-style set to native
File size: 4.7 KB
Line 
1# Copyright (C) 1988, 1989, 1996, 1997 Free Software Foundation, Inc.
2# This file is part of GNU Make.
3#
4# VMS extensions from GNU Make 3.60 imported by
5# Klaus Kämpf ([email protected])
6# Modified for version 3.78.1 by [email protected].
7# Modified for version 3.80 by [email protected]
8# Modified for version 3.81 by Hartmut Becker
9#
10# GNU Make is free software; you can redistribute it and/or modify
11# it under the terms of the GNU General Public License as published by
12# the Free Software Foundation; either version 2, or (at your option)
13# any later version.
14#
15# GNU Make is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18# GNU General Public License for more details.
19#
20# You should have received a copy of the GNU General Public License
21# along with GNU Make; see the file COPYING. If not, write to
22# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23# Boston, MA 02111-1307, USA.
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
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,\
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 \
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 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
124main.obj: main.c make.h commands.h dep.h filedef.h variable.h job.h
125read.obj: read.c make.h commands.h dep.h filedef.h variable.h
126remake.obj: remake.c make.h commands.h job.h dep.h filedef.h
127rule.obj: rule.c make.h commands.h dep.h filedef.h variable.h rule.h
128implicit.obj: implicit.c make.h rule.h dep.h filedef.h
129default.obj: default.c make.h rule.h dep.h filedef.h commands.h variable.h
130variable.obj: variable.c make.h commands.h variable.h dep.h filedef.h
131expand.obj: expand.c make.h commands.h filedef.h variable.h
132function.obj: function.c make.h variable.h dep.h commands.h job.h
133vpath.obj: vpath.c make.h filedef.h variable.h
134version.obj: version.c config.h
135arscan.obj: arscan.c
136ar.obj: ar.c make.h filedef.h
137signame.obj: signame.c
138remote-stub.obj: remote-stub.c
139[.glob]glob.obj: [.glob]glob.c
140[.glob]fnmatch.obj: [.glob]fnmatch.c
141getopt.obj: getopt.c
142getopt1.obj: getopt1.c
143vmsfunctions.obj: vmsfunctions.c make.h vmsdir.h
144vmsify.obj: vmsify.c make.h
145
146config.h: config.h-vms
147 $(CP) $< $@
Note: See TracBrowser for help on using the repository browser.

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