VirtualBox

source: kBuild/vendor/gnumake/current/makefile.vms@ 2596

Last change on this file since 2596 was 2596, checked in by bird, 12 years ago

gnumake/current -> 3.82-cvs.

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