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