1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
|
# Make RCS.
# Id: Makefile.in,v 5.26 1995/06/16 06:19:24 eggert Exp
# Copyright 1982, 1988, 1989 Walter Tichy
# Copyright 1990, 1991, 1992, 1993, 1994, 1995 Paul Eggert
# Distributed under license by the Free Software Foundation, Inc.
#
# This file is part of RCS.
#
# RCS is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# RCS is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with RCS; see the file COPYING.
# If not, write to the Free Software Foundation,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
# Report problems and direct all questions to:
#
# rcs-bugs@cs.purdue.edu
# default target
default :: all
# See the file INSTALL.RCS for more information on the configuration section.
# ----- start of configuration section -----
#(Unix
srcdir = @srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
CC = @CC@
CPPFLAGS = @CPPFLAGS@
CFLAGS = @CFLAGS@
DEFS = @DEFS@
DIFF = @DIFF@
DIFF3 = @DIFF3@
DIFF3_BIN = @DIFF3_BIN@
DIFFFLAGS = @DIFFFLAGS@
DIFF_L = @DIFF_L@
DIFF_FAILURE = @DIFF_FAILURE@
DIFF_SUCCESS = @DIFF_SUCCESS@
DIFF_TROUBLE = @DIFF_TROUBLE@
ED = @ED@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
SENDMAIL = @SENDMAIL@
# The following definitions can be tailored by hand;
# this shouldn't be needed for ordinary installations.
bindir = $(exec_prefix)/bin
ALL_CFLAGS = $(CPPFLAGS) -Dhas_conf_h $(DEFS) -I. -I$(srcdir) $(CFLAGS)
COMPAT2 = 0
#COMPAT2 = 1
LIBOBJS =
LINK = $(CC) $(LDFLAGS) $(CFLAGS)
LINT = lint -abchx# traditional and BSD lint
#LINT = lint# System V lint
#RCSPREFIX should end in `/' if it is not empty.
RCSPREFIX = $(bindir)/
REMOVE = rm -f
o = .o
#o = .s# Minix/PC with ACK cc
x =
#)
# On non-Unix hosts you must manually create and edit conf.h from conf.heg.
# ----- end of configuration section -----
# You shouldn't have to change anything past this point.
# Avoid brain damage in some versions of 'make'.
SHELL = /bin/sh
PROGRAMS = ci$x co$x ident$x merge$x \
rcs$x rcsclean$x rcsdiff$x rcsmerge$x rlog$x
all :: $(PROGRAMS)
.SUFFIXES :
.SUFFIXES : .c $o
.c$o :
$(CC) -c $(ALL_CFLAGS) $<
installdirs :: ../mkinstalldirs
$(srcdir)/../mkinstalldirs $(bindir)
install :: all installdirs
for p in $(PROGRAMS); do \
$(INSTALL_PROGRAM) $$p $(bindir)/$$p; \
done
uninstall ::
for p in $(PROGRAMS); do \
$(REMOVE) $(bindir)/$$p; \
done
# Install RCS and (if applicable) GNU diff before running these tests.
# To test RCS before installing it, see the file INSTALL.RCS.
RCSTEST = \
ALL_CFLAGS='$(ALL_CFLAGS)' CC='$(CC)' DIFF='$(DIFF)' \
LDFLAGS='$(LDFLAGS)' LIBS='$(LIBS)' \
PATH=$(bindir):$$PATH \
sh $(srcdir)/rcstest
installcheck ::
$(RCSTEST)
installdebug ::
$(RCSTEST) -v
clean ::
$(REMOVE) a.* RCS/a.*
$(REMOVE) *$o
$(REMOVE) $(PROGRAMS)
$(REMOVE) conf.err core core.* *.core
mostlyclean :: clean
distclean :: mostlyclean
$(REMOVE) conf.h Makefile
maintainer-clean :: distclean
@echo "This command is intended for maintainers to use;"
@echo "it deletes files that may require special tools to rebuild."
$(REMOVE) TAGS
#(Unix
conf.h : conf.sh Makefile
$(REMOVE) a.*
ALL_CFLAGS='$(ALL_CFLAGS)' \
CC='$(CC)' \
COMPAT2='$(COMPAT2)' \
DIFF3='$(DIFF3)' DIFF3_BIN='$(DIFF3_BIN)' \
DIFF='$(DIFF)' DIFFFLAGS='$(DIFFFLAGS)' DIFF_L='$(DIFF_L)' \
DIFF_SUCCESS='$(DIFF_SUCCESS)' \
DIFF_FAILURE='$(DIFF_FAILURE)' \
DIFF_TROUBLE='$(DIFF_TROUBLE)' \
ED='$(ED)' \
LDFLAGS='$(LDFLAGS)' LIBS='$(LIBS)' \
RCSPREFIX='$(RCSPREFIX)' \
SENDMAIL='$(SENDMAIL)' \
$(SHELL) -x $(srcdir)/conf.sh 3>&1 >a.h 2>conf.err
mv a.h $@
$(REMOVE) a.* core core.* *.core
#)
ci = ci$o rcslex$o rcssyn$o rcsgen$o rcsedit$o rcskeys$o rcsmap$o \
rcsrev$o rcsutil$o rcsfnms$o maketime$o partime$o rcstime$o rcskeep$o \
rcsfcmp$o version$o $(LIBOBJS)
ci$x : $(ci)
$(LINK) $(ci) -o $@ $(LIBS)
co = co$o rcslex$o rcssyn$o rcsgen$o rcsedit$o rcskeys$o rcsmap$o \
rcsrev$o rcsutil$o rcsfnms$o maketime$o partime$o rcstime$o rcskeep$o \
version$o $(LIBOBJS)
co$x : $(co)
$(LINK) $(co) -o $@ $(LIBS)
ident = ident$o rcsmap$o version$o $(LIBOBJS)
ident$x : $(ident)
$(LINK) $(ident) -o $@ $(LIBS)
merge = merge$o merger$o rcsfnms$o rcslex$o \
rcsmap$o rcsrev$o rcssyn$o rcsutil$o \
rcskeep$o rcskeys$o maketime$o partime$o rcstime$o version$o \
$(LIBOBJS)
merge$x : $(merge)
$(LINK) $(merge) -o $@ $(LIBS)
rlog = rlog$o rcslex$o rcsmap$o rcssyn$o rcsrev$o rcsutil$o \
maketime$o partime$o rcstime$o rcsfnms$o rcskeep$o rcskeys$o \
version$o $(LIBOBJS)
rlog$x : $(rlog)
$(LINK) $(rlog) -o $@ $(LIBS)
rcs = rcs$o rcslex$o rcssyn$o rcsrev$o rcsutil$o rcsgen$o \
rcsedit$o rcskeys$o rcsmap$o rcsfnms$o rcskeep$o \
maketime$o partime$o rcstime$o version$o $(LIBOBJS)
rcs$x : $(rcs)
$(LINK) $(rcs) -o $@ $(LIBS)
rcsclean = rcsclean$o rcsedit$o rcsfcmp$o rcsfnms$o rcsgen$o rcskeys$o \
rcslex$o rcsmap$o rcsrev$o rcssyn$o rcsutil$o rcskeep$o \
maketime$o partime$o rcstime$o version$o $(LIBOBJS)
rcsclean$x : $(rcsclean)
$(LINK) $(rcsclean) -o $@ $(LIBS)
rcsdiff = rcsdiff$o rcsutil$o rcsfnms$o rcsmap$o rcsrev$o rcssyn$o \
rcslex$o maketime$o partime$o rcstime$o rcskeep$o rcskeys$o \
version$o $(LIBOBJS)
rcsdiff$x : $(rcsdiff)
$(LINK) $(rcsdiff) -o $@ $(LIBS)
rcsmerge = rcsmerge$o merger$o rcsutil$o rcsfnms$o rcsmap$o rcsrev$o \
rcssyn$o rcslex$o rcskeep$o rcskeys$o \
maketime$o partime$o rcstime$o version$o $(LIBOBJS)
rcsmerge$x : $(rcsmerge)
$(LINK) $(rcsmerge) -o $@ $(LIBS)
SOURCE= ci.c co.c ident.c maketime.c merge.c merger.c partime.c rcs.c \
rcsclean.c rcsdiff.c rcsedit.c rcsfcmp.c rcsfnms.c rcsgen.c \
rcskeep.c rcskeys.c rcslex.c rcsmap.c rcsmerge.c rcsrev.c rcssyn.c \
rcstime.c rcsutil.c rlog.c version.c
OBJECT= ci$o co$o ident$o maketime$o merge$o merger$o partime$o rcs$o \
rcsclean$o rcsdiff$o rcsedit$o rcsfcmp$o rcsfnms$o rcsgen$o \
rcskeep$o rcskeys$o rcslex$o rcsmap$o rcsmerge$o rcsrev$o rcssyn$o \
rcstime$o rcsutil$o rlog$o version$o
lint :: conf.h
$(LINT) -DRCS_lint=1 $(ALL_CFLAGS) $(SOURCE)
TAGS : $(SOURCE)
etags $(SOURCE)
dvi info ::
conf_h = conf.h
$(OBJECT) : $(conf_h) rcsbase.h
maketime$o partime$o rcstime$o : partime.h
maketime$o rcstime$o : maketime.h
|