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