1 # -*-Makefile-*- to build GNU make on VMS
3 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
4 # This file is part of GNU Make.
6 # GNU Make is free software; you can redistribute it and/or modify it under
7 # the terms of the GNU General Public License as published by the Free Software
8 # Foundation; either version 3 of the License, or (at your option) any later
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
13 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
16 # You should have received a copy of the GNU General Public License along with
17 # this program. If not, see <http://www.gnu.org/licenses/>.
19 # VMS extensions from GNU Make 3.60 imported by
20 # Klaus Kämpf (kkaempf@rmi.de)
21 # Modified for version 3.78.1 by Hartmut.Becker@compaq.com.
22 # Modified for version 3.80 by zinser@decus.de
23 # Modified for versions 3.81, 3.99.90 by Hartmut Becker
29 $(CC) $(CFLAGS)/obj=$@ $<
31 # Makefile for GNU Make
35 CFLAGS = $(defines) /include=([],[.glob])/prefix=(all,except=(glob,globfree))/standard=relaxed/warn=(disable=questcompare)
37 CFLAGS = $(defines) /include=([],[.glob])
43 defines = /define=("unlink=remove","HAVE_CONFIG_H","VMS","allocated_variable_expand_for_file=alloc_var_expand_for_file")
46 defines = /define=("HAVE_CONFIG_H","GCC_IS_NATIVE","VAX")
48 defines = /define=("HAVE_CONFIG_H","GCC_IS_NATIVE")
52 LOAD_AVG = /define="NO_LDAV"
54 # If you don't want archive support, comment these out.
55 ARCHIVES = ,ar.obj,arscan.obj
56 ARCHIVES_SRC = ar.c arscan.c
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
63 #LOADLIBES =,sys$$library:vaxcrtl.olb/lib
66 LOADLIBES =,gnu_cc_library:libgcc.olb/lib
69 # If your system doesn't have alloca, or the one provided is bad,
70 # get it from the Emacs distribution and define these.
74 # If there are remote execution facilities defined,
75 # enable them with switches here (see remote-*.c).
78 # Any extra object files your system needs.
79 extras = ,signame.obj,remote-stub.obj,vmsfunctions.obj,vmsify.obj
82 glob = ,[.glob]glob.obj,[.glob]fnmatch.obj
83 getopt = ,getopt.obj,getopt1.obj
84 # Directory to install 'make' in.
86 # Directory to install the man page in.
88 # Number to put on the man page filename.
93 objs = commands.obj,job.obj,output.obj,dir.obj,file.obj,misc.obj,hash.obj,\
94 load.obj,main.obj,read.obj,remake.obj,rule.obj,implicit.obj,\
95 default.obj,variable.obj,expand.obj,function.obj,strcache.obj,\
96 vpath.obj,version.obj\
97 $(ARCHIVES)$(ALLOCA)$(extras)$(getopt)$(glob)$(guile)
99 srcs = commands.c job.c output.c dir.c file.c misc.c guile.c hash.c \
100 load.c main.c read.c remake.c rule.c implicit.c \
101 default.c variable.c expand.c function.c strcache.c \
102 vpath.c version.c vmsfunctions.c vmsify.c $(ARCHIVES_SRC) $(ALLOCASRC) \
103 commands.h dep.h filedef.h job.h output.h makeint.h rule.h variable.h
107 all: config.h make.exe
109 doc: make.info make.dvi
113 $(LD)$(LDFLAGS)/exe=$@ $^$(LOADLIBES)$(CRT0)
115 .PHONY: clean realclean
118 -$(RM) make.exe;,*.obj;
121 # Automatically generated dependencies.
122 # makeint.h: config.h gnumake.h gettext.h
124 ar.obj: ar.c makeint.h filedef.h dep.h [.glob]fnmatch.h
125 arscan.obj: arscan.c makeint.h
126 commands.obj: commands.c makeint.h dep.h commands.h filedef.h variable.h job.h
127 default.obj: default.c makeint.h rule.h dep.h job.h filedef.h commands.h variable.h
128 dir.obj: dir.c makeint.h hash.h [.glob]glob.h
129 expand.obj: expand.c makeint.h commands.h filedef.h job.h rule.h variable.h
130 file.obj: file.c makeint.h commands.h dep.h filedef.h variable.h job.h debug.h
131 function.obj: function.c makeint.h variable.h dep.h commands.h filedef.h debug.h job.h
132 getopt.obj: getopt.c getopt.h config.h gettext.h
133 getopt1.obj: getopt1.c getopt.h config.h
134 guile.obj: guile.c makeint.h debug.h dep.h gmk-default.h
135 hash.obj: hash.c makeint.h hash.h
136 implicit.obj: implicit.c makeint.h rule.h dep.h filedef.h debug.h variable.h job.h commands.h
137 job.obj: job.c vmsjobs.c makeint.h commands.h job.h filedef.h variable.h debug.h
138 output.obj: output.c vmsjobs.c makeint.h output.h filedef.h debug.h
139 load.obj: load.c makeint.h debug.h filedef.h variable.h
140 main.obj: main.c makeint.h commands.h dep.h filedef.h variable.h job.h rule.h debug.h getopt.h
141 misc.obj: misc.c makeint.h dep.h debug.h
142 read.obj: read.c makeint.h commands.h dep.h filedef.h variable.h [.glob]glob.h debug.h rule.h job.h
143 remake.obj: remake.c makeint.h commands.h job.h dep.h filedef.h variable.h debug.h
144 remote-stub.obj: remote-stub.c makeint.h filedef.h job.h commands.h
145 rule.obj: rule.c makeint.h commands.h dep.h filedef.h variable.h rule.h job.h
146 signame.obj: signame.c makeint.h
147 strcache.obj: strcache.c makeint.h hash.h
148 variable.obj: variable.c makeint.h commands.h variable.h dep.h filedef.h job.h rule.h
149 version.obj: version.c config.h
150 vmsfunctions.obj: vmsfunctions.c makeint.h vmsdir.h debug.h job.h
152 vpath.obj: vpath.c makeint.h filedef.h variable.h
153 [.glob]fnmatch.obj: [.glob]fnmatch.c [.glob]fnmatch.h config.h
154 [.glob]glob.obj: [.glob]glob.c [.glob]glob.h [.glob]fnmatch.h config.h
156 config.h: config.h-vms