1
# Copyright (C) 1988, 1989, 1996, 1997 Free Software Foundation, Inc.
2
# This file is part of GNU Make.
4
# VMS extensions from GNU Make 3.60 imported by
5
# Klaus K�mpf (kkaempf@progis.de) of proGIS Software, Aachen, Germany
7
# GNU Make is free software; you can redistribute it and/or modify
8
# it under the terms of the GNU General Public License as published by
9
# the Free Software Foundation; either version 2, or (at your option)
12
# GNU Make is distributed in the hope that it will be useful,
13
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
# GNU General Public License for more details.
17
# You should have received a copy of the GNU General Public License
18
# along with GNU Make; see the file COPYING. If not, write to
19
# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20
# Boston, MA 02111-1307, USA.
26
$(CC) $(CFLAGS)/obj=$@ $<
28
# Makefile for GNU Make
31
CFLAGS = $(defines) /debug/noopt/include=([],[.glob])
35
defines = /define=("unlink=remove","HAVE_CONFIG_H","VMS","allocated_variable_expand_for_file=alloc_var_expand_for_file")
37
LOAD_AVG = /define="NO_LDAV"
39
# If you don't want archive support, comment these out.
40
ARCHIVES = ,ar.obj,arscan.obj
41
ARCHIVES_SRC = ar.c arscan.c
43
# If your system needs extra libraries loaded in, define them here.
44
# System V probably need -lPW for alloca.
45
# if on vax, uncomment the following line
46
#LOADLIBES = ,c.opt/opt
47
LOADLIBES =,sys$$library:vaxcrtl.olb/lib
49
# If your system doesn't have alloca, or the one provided is bad,
50
# get it from the Emacs distribution and define these.
54
# If there are remote execution facilities defined,
55
# enable them with switches here (see remote-*.c).
58
# Any extra object files your system needs.
59
extras = ,signame.obj,remote-stub.obj,vmsfunctions.obj,vmsify.obj
62
glob = ,[.glob]glob.obj,[.glob]fnmatch.obj
63
getopt = ,getopt.obj,getopt1.obj
64
# Directory to install `make' in.
66
# Directory to install the man page in.
68
# Number to put on the man page filename.
71
objs = commands.obj,job.obj,dir.obj,file.obj,misc.obj,\
72
main.obj,read.obj,remake.obj,rule.obj,implicit.obj,\
73
default.obj,variable.obj,expand.obj,function.obj,\
74
vpath.obj,version.obj$(ARCHIVES)$(ALLOCA)$(extras)$(getopt)$(glob)
75
srcs = commands.c job.c dir.c file.c misc.c \
76
main.c read.c remake.c rule.c implicit.c \
77
default.c variable.c expand.c function.c \
78
vpath.c version.c vmsfunctions.c vmsify.c $(ARCHIVES_SRC) $(ALLOCASRC) \
79
commands.h dep.h filedef.h job.h make.h rule.h variable.h
83
all: config.h make.exe
85
doc: make.info make.dvi
89
$(LD)$(LDFLAGS)/exe=$@ $^$(LOADLIBES)
91
.PHONY: clean realclean
93
-$(RM) make.exe;,*.obj;*
95
# Automatically generated dependencies.
96
commands.obj: commands.c make.h dep.h commands.h filedef.h variable.h job.h
97
job.obj: job.c make.h commands.h job.h filedef.h variable.h
99
file.obj: file.c make.h commands.h dep.h filedef.h variable.h
100
misc.obj: misc.c make.h dep.h
101
main.obj: main.c make.h commands.h dep.h filedef.h variable.h job.h
102
read.obj: read.c make.h commands.h dep.h filedef.h variable.h
103
remake.obj: remake.c make.h commands.h job.h dep.h filedef.h
104
rule.obj: rule.c make.h commands.h dep.h filedef.h variable.h rule.h
105
implicit.obj: implicit.c make.h rule.h dep.h filedef.h
106
default.obj: default.c make.h rule.h dep.h filedef.h commands.h variable.h
107
variable.obj: variable.c make.h commands.h variable.h dep.h filedef.h
108
expand.obj: expand.c make.h commands.h filedef.h variable.h
109
function.obj: function.c make.h variable.h dep.h commands.h job.h
110
vpath.obj: vpath.c make.h filedef.h variable.h
111
version.obj: version.c
113
ar.obj: ar.c make.h filedef.h
114
signame.obj: signame.c
115
remote-stub.obj: remote-stub.c
116
[.glob]glob.obj: [.glob]glob.c
117
[.glob]fnmatch.obj: [.glob]fnmatch.c
119
getopt1.obj: getopt1.c
121
config.h: config.h-vms