File: descrip.mms

package info (click to toggle)
vile 9.7ze-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 8,372 kB
  • ctags: 9,314
  • sloc: ansic: 95,840; lex: 11,395; sh: 3,416; perl: 3,200; cpp: 3,180; makefile: 982; awk: 271; sed: 14
file content (337 lines) | stat: -rw-r--r-- 7,979 bytes parent folder | download | duplicates (6)
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
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
#
# VMS makefile for vile.  Requires "MMS"
#
# To change screen driver modules, change SCREEN and SCRDEF below, OR edit
# estruct.h to make sure the correct one is #defined as "1", and the others
# all as "0".
#
# $Header: /usr/build/vile/vile/RCS/descrip.mms,v 1.50 2009/02/06 00:50:28 tom Exp $

# Editor Configuration Note
# -------------------------
# If you elect to build both vile and xvile from the same source
# directory, be sure to execute this command prior to each build:
#
#   $ mms clean
#

.IFDEF __XMVILE__

# for building the Motif version (untested):
SCREEN = x11
TARGET = xvile.exe
SCRDEF = "MOTIF_WIDGETS","XTOOLKIT","DISP_X11","scrn_chosen"
MENUS  = menu.obj,x11menu.obj,

.ELSE
.IFDEF __XVILE__

# for building the X-toolkit version:
SCREEN = x11
TARGET = xvile.exe
SCRDEF = "NO_WIDGETS","XTOOLKIT","DISP_X11","scrn_chosen"
MENUS  =

.ELSE

# for regular vile, use these:
SCREEN = vmsvt
TARGET = vile.exe
SCRDEF = "DISP_VMSVT","scrn_chosen"
MENUS  =

.ENDIF # __XVILE__
.ENDIF # __XMVILE__

# can also use /Debug
LINKFLAGS = /MAP=$(MMS$TARGET_NAME)/CROSS_REFERENCE/EXEC=$(MMS$TARGET_NAME).EXE

INCS = []

MKTBLS = mktbls.EXE


SRC =	main.c \
	$(SCREEN).c \
	basic.c \
	bind.c \
	blist.c \
	btree.c \
	buffer.c \
	csrch.c \
	display.c \
	dumbterm.c \
	eval.c \
	exec.c \
	externs.c \
	fences.c \
	file.c \
	filec.c \
	fileio.c \
	finderr.c \
	glob.c \
	globals.c \
	history.c \
	input.c \
	insert.c \
	isearch.c \
	itbuff.c \
	line.c \
	map.c \
	menu.c \
	modes.c \
	msgs.c \
	npopen.c \
	nullterm.c \
	oneliner.c \
	opers.c \
	path.c \
	random.c \
	regexp.c \
	region.c \
	search.c \
	select.c \
	spawn.c \
	statevar.c \
	tags.c \
	tbuff.c \
	termio.c \
	ucrypt.c \
	undo.c \
	version.c \
	vl_ctype.c \
	vms2unix.c \
	vmspipe.c \
	watch.c \
	window.c \
	word.c \
	wordmov.c

OBJ =	$(MENUS)main.obj,\
	$(SCREEN).obj,\
	basic.obj,\
	bind.obj,\
	blist.obj,\
	btree.obj,\
	buffer.obj,\
	csrch.obj,\
	display.obj,\
	dumbterm.obj,\
	eval.obj,\
	exec.obj,\
	externs.obj,\
	fences.obj,\
	file.obj,\
	filec.obj,\
	fileio.obj,\
	finderr.obj,\
	glob.obj, \
	globals.obj,\
	history.obj,\
	input.obj,\
	insert.obj,\
	isearch.obj,\
	itbuff.obj,\
	line.obj,\
	map.obj, \
	modes.obj,\
	msgs.obj,\
	npopen.obj,\
	nullterm.obj,\
	oneliner.obj,\
	opers.obj,\
	path.obj,\
	random.obj,\
	regexp.obj,\
	region.obj,\
	search.obj,\
	select.obj,\
	spawn.obj,\
	statevar.obj,\
	tags.obj,\
	tbuff.obj,\
	termio.obj,\
	ucrypt.obj,\
	undo.obj,\
	version.obj, \
	vl_ctype.obj, \
	vms2unix.obj,\
	vmspipe.obj,\
	watch.obj,\
	window.obj,\
	word.obj,\
	wordmov.obj

all :

	$(MMS)$(MMSQUALIFIERS) $(TARGET)

#
# I've built on an Alpha with CC_OPTIONS set to
#	CC_OPTIONS = /STANDARD=VAXC		(for VAX-C compatibility)
#	CC_OPTIONS = /PREFIX_LIBRARY_ENTRIES=ALL_ENTRIES	(DEC-C)
# The latter (DEC-C) gives better type-checking -- T.Dickey
#
# But on a VAX, the DEC-C compiler and/or its run-time library cause
# vile to change the "Revised time" of every file the editor _reads_.
# You won't like this when using mms or a make clone.  The VAXC
# compiler does not suffer from this problem.
#
# Configuration where problem was observed:
#	DEC C V5.6-003 on OpenVMS VAX V7.1
#                                                    --C. Morgan
#
.IFDEF __IA64__
CC_OPTIONS = /PREFIX_LIBRARY_ENTRIES=ALL_ENTRIES
CC_DEFS = ,HAVE_ALARM,HAVE_STRERROR,USE_IEEE_FLOAT
.ELSE
.IFDEF __ALPHA__
CC_OPTIONS = /PREFIX_LIBRARY_ENTRIES=ALL_ENTRIES
CC_DEFS = ,HAVE_ALARM,HAVE_STRERROR
.ELSE
.IFDEF __DECC__
CC_OPTIONS = /DECC /PREFIX_LIBRARY_ENTRIES=ALL_ENTRIES
CC_DEFS = ,HAVE_ALARM,HAVE_STRERROR
.ELSE
CC_OPTIONS = /VAXC
CC_DEFS = ,HAVE_STRERROR
.ENDIF
.ENDIF
.ENDIF

nebind.h \
nefkeys.h \
nefunc.h \
neproto.h \
nename.h :	cmdtbl $(MKTBLS)
	MKTBLS cmdtbl

nevars.h \
nemode.h :	modetbl $(MKTBLS)
	MKTBLS modetbl

# install to DESTDIR1 if it's writable, else DESTDIR2
install :
	@ WRITE SYS$ERROR "** no rule for $@"

clean :
	@- if f$search("*.obj") .nes. "" then delete *.obj;*
	@- if f$search("*.bak") .nes. "" then delete *.bak;*
	@- if f$search("*.lis") .nes. "" then delete *.lis;*
	@- if f$search("*.log") .nes. "" then delete *.log;*
	@- if f$search("*.map") .nes. "" then delete *.map;*
	@- if f$search("*.opt") .nes. "" then delete *.opt;*
	@- if f$search("ne*.h") .nes. "" then delete ne*.h;*
	@- if f$search("$(MKTBLS)") .nes. "" then delete $(MKTBLS);

clobber : clean
	@- if f$search("vile.com") .nes. "" then delete vile.com;*
	@- if f$search("xvile.com") .nes. "" then delete xvile.com;*
	@- if f$search("*.exe") .nes. "" then delete *.exe;*

$(OBJ) : estruct.h nemode.h nefkeys.h edef.h proto.h

bind.obj :	nefunc.h
eval.obj :	nevars.h
exec.obj :	nefunc.h
externs.obj :	nebind.h nename.h neproto.h nefunc.h
filec.obj :	dirstuff.h
glob.obj :	dirstuff.h
globals.obj :	nefunc.h
main.obj :	chgdfunc.h nevars.h
modes.obj :	chgdfunc.h
opers.obj :	nefunc.h
path.obj :	dirstuff.h
random.obj :	nefunc.h
select.obj :	nefunc.h
spawn.obj :	nefunc.h
termio.obj :	nefunc.h
version.obj :	patchlev.h
vl_ctype.obj :	vl_ctype.h
vms2unix.obj :	dirstuff.h
word.obj :	nefunc.h

.first :
	@ MKTBLS :== $SYS$DISK:'F$DIRECTORY()$(MKTBLS)	! make a foreign command

.last :
	@- if f$search("*.dia") .nes. "" then delete *.dia;*
	@- if f$search("*.lis") .nes. "" then purge *.lis
	@- if f$search("*.obj") .nes. "" then purge *.obj
	@- if f$search("*.map") .nes. "" then purge *.map
	@- if f$search("*.exe") .nes. "" then purge *.exe
	@- if f$search("*.log") .nes. "" then purge *.log
	@- if f$search("*.opt") .nes. "" then purge *.opt

# used /G_FLOAT with vaxcrtlg/share in vms_link.opt
# can also use /Debug /Listing /Show=All
CFLAGS =-
	$(CC_OPTIONS)/Diagnostics /Define=("os_chosen",$(SCRDEF)$(CC_DEFS)) -
	/Object=$@ /Include=($(INCS))

.C.OBJ :
	$(CC) $(CFLAGS) $(MMS$SOURCE)
	@- delete $(MMS$TARGET_NAME).dia;*

$(MKTBLS) : mktbls.obj $(OPTFILE)
	$(LINK) $(LINKFLAGS) mktbls.obj $(OPTIONS)

$(TARGET) : $(OBJ), vms_link.opt, descrip.mms $(OPTFILE)
	$(LINK) $(LINKFLAGS) main.obj, $(SCREEN).obj, vms_link/opt

vms_link.opt :
	@vmsbuild vms_link_opt

# test-drivers

test_btree.obj :	btree.c
	$(CC) $(CFLAGS) /Define=("DEBUG_BTREE") btree.c
test_btree.exe :	test_btree.obj
	$(LINK) $(LINKFLAGS) test_btree.obj $(OPTIONS)

test_regexp.obj :	regexp.c
	$(CC) $(CFLAGS) /Define=("DEBUG_REGEXP") regexp.c
test_regexp.exe :	test_regexp.obj
	$(LINK) $(LINKFLAGS) test_regexp.obj $(OPTIONS)

TEST_IO_OBJS	= \
	$(SCREEN).obj, \
	nullterm.obj, \
	test_io.obj

test_io.exe :	$(TEST_IO_OBJS)
	$(LINK) $(LINKFLAGS) $(TEST_IO_OBJS) $(OPTIONS)

# Runs VILE from the current directory (used for testing)
vile.com :
	@- if "''f$search("$@")'" .nes. "" then delete $@;*
	@- copy nl: $@
	@ open/append  test_script $@
	@ write test_script "$ temp = f$environment(""procedure"")"
	@ write test_script "$ temp = temp -"
	@ write test_script "		- f$parse(temp,,,""version"",""syntax_only"") -"
	@ write test_script "		- f$parse(temp,,,""type"",""syntax_only"")"
	@ write test_script "$ vile :== $ 'temp'.exe"
	@ write test_script "$ define/user_mode sys$input  sys$command"
	@ write test_script "$ define/user_mode sys$output sys$command"
	@ write test_script "$ vile 'p1 'p2 'p3 'p4 'p5 'p6 'p7 'p8"
	@ close test_script
	@ write sys$output "** made $@"

# Runs XVILE from the current directory (used for testing)
xvile.com :
	@- if "''f$search("$@")'" .nes. "" then delete $@;*
	@- copy nl: $@
	@ open/append  test_script $@
	@ write test_script "$ temp = f$environment(""procedure"")"
	@ write test_script "$ temp = temp -"
	@ write test_script "		- f$parse(temp,,,""name"",""syntax_only"") -"
	@ write test_script "		- f$parse(temp,,,""version"",""syntax_only"") -"
	@ write test_script "		- f$parse(temp,,,""type"",""syntax_only"")"
	@ write test_script "$ xvile :== $ 'temp'xvile.exe"
	@ write test_script "$ define/user_mode sys$input  sys$command"
	@ write test_script "$ define/user_mode sys$output sys$command"
	@ write test_script "$ xvile 'p1 'p2 'p3 'p4 'p5 'p6 'p7 'p8"
	@ close test_script
	@ write sys$output "** made $@"