.
[make.git] / makefile.vms
blob86b852424689212f245c7be22e7318e9c22c0748
1 # Copyright (C) 1988, 1989 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@didymus.rmi.de)
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 1, or (at your option)
10 # any later version.
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.
16
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, 675 Mass Ave, Cambridge, MA 02139, USA.
21 CC = cc/warn
22 CP = copy
24 %.obj: %.c
25         $(CC) $(CFLAGS)/obj=$@ $<
27 #       Makefile for GNU Make
30 CFLAGS = $(defines) /debug/noopt/include=([],[.glob])
31 #LDFLAGS = /deb
32 LDFLAGS = 
34 defines = /define=("unlink=remove","HAVE_CONFIG_H","VMS","NO_ARCHIVES","allocated_variable_expand_for_file=alloc_var_expand_for_file")
36 LOAD_AVG = /define="NO_LDAV"
38 # If you don't want archive support, comment these out.
39 #ARCHIVES = ,ar.obj,arscan.obj
40 #ARCHIVES_SRC = ar.c arscan.c
42 # If your system needs extra libraries loaded in, define them here.
43 # System V probably need -lPW for alloca.
44 # if on vax, uncomment the following line
45 #LOADLIBES = ,c.opt/opt
46 LOADLIBES =,sys$$library:vaxcrtl.obl/lib
48 # If your system doesn't have alloca, or the one provided is bad,
49 # get it from the Emacs distribution and define these.
50 ALLOCA = ,alloca.obj
51 ALLOCASRC = alloca.c
53 # If there are remote execution facilities defined,
54 # enable them with switches here (see remote-*.c).
55 REMOTE =
57 # Any extra object files your system needs.
58 extras = ,signame.obj,remote-stub.obj,vmsfunctions.obj,vmsify.obj
59 #,directory.obj
60 # as an alternative: 
61 glob = ,[.glob]glob.obj,[.glob]fnmatch.obj
62 getopt = ,getopt.obj,getopt1.obj
63 # Directory to install `make' in.
64 bindir = []
65 # Directory to install the man page in.
66 mandir = []
67 # Number to put on the man page filename.
68 manext = 1
70 objs = commands.obj,job.obj,dir.obj,file.obj,misc.obj,\
71        main.obj,read.obj,remake.obj,rule.obj,implicit.obj,\
72        default.obj,variable.obj,expand.obj,function.obj,\
73        vpath.obj,version.obj$(ARCHIVES)$(ALLOCA)$(extras)$(getopt)$(glob)
74 srcs = commands.c job.c dir.c file.c misc.c \
75         main.c read.c remake.c rule.c implicit.c \
76         default.c variable.c expand.c function.c \
77         vpath.c version.c vmsfunctions.c vmsify.c $(ARCHIVES_SRC) $(ALLOCASRC) \
78         commands.h dep.h filedef.h job.h make.h rule.h variable.h
81 .PHONY: all doc
82 all: config.h make.exe
84 doc: make.info make.dvi
87 make.exe: $(objs)
88         $(LD)$(LDFLAGS)/exe=$@ $^$(LOADLIBES)
90 .PHONY: clean realclean
91 clean:
92         -$(RM) make.exe;,*.obj;*
94 # Automatically generated dependencies.
95 commands.obj: commands.c make.h dep.h commands.h filedef.h variable.h job.h 
96 job.obj: job.c make.h commands.h job.h filedef.h variable.h 
97 dir.obj: dir.c make.h 
98 file.obj: file.c make.h commands.h dep.h filedef.h variable.h 
99 misc.obj: misc.c make.h dep.h 
100 main.obj: main.c make.h commands.h dep.h filedef.h variable.h job.h 
101 read.obj: read.c make.h commands.h dep.h filedef.h variable.h 
102 remake.obj: remake.c make.h commands.h job.h dep.h filedef.h 
103 rule.obj: rule.c make.h commands.h dep.h filedef.h variable.h rule.h 
104 implicit.obj: implicit.c make.h rule.h dep.h filedef.h 
105 default.obj: default.c make.h rule.h dep.h filedef.h commands.h variable.h 
106 variable.obj: variable.c make.h commands.h variable.h dep.h filedef.h 
107 expand.obj: expand.c make.h commands.h filedef.h variable.h 
108 function.obj: function.c make.h variable.h dep.h commands.h job.h 
109 vpath.obj: vpath.c make.h filedef.h variable.h 
110 version.obj: version.c 
111 arscan.obj: arscan.c 
112 ar.obj: ar.c make.h filedef.h 
113 signame.obj: signame.c
114 remote-stub.obj: remote-stub.c
115 [.glob]glob.obj: [.glob]glob.c
116 [.glob]fnmatch.obj: [.glob]fnmatch.c
117 getopt.obj: getopt.c
118 getopt1.obj: getopt1.c
120 config.h: config.h-vms
121         $(CP) $< $@