Debian Codegraph @

makefile.win32.lcc

raw
1 #
2 # Makefile for Regina REXX Interpreter
3 # FIXME, FGC: How set set "unsigned char" as default char type?
4 # FIXME: MH: How to pass env variable to lcc make?
5 # FIXME: MH: How to "include" regina.ver in this makefile?
6 # FIXME: MH: Add GCI support
7 #
8 # Using lcc-win32 compiler under Win32
9 # Usage:
10 # make -f [DEBUG=Y [TRACEMEM=Y]] [FLISTS=N] [SOCKET=nnnn]
11 #
12 # generated files without giving a target on the command line:
13 # rexx.exe statically bounded REXX interpreter
14 # rexx.lib static link library of the REXX interpreter, place anywhere
15 # in a directory of your LIB-variable.
16 # regina.lib link file for regina.dll, place anywhere in a directory of
17 # your LIB-variable.
18 # regina.dll dynamic link library of the REXX interpreter, place anywhere
19 # in a directory of your PATH.
20 # regina.exe dynamically bound REXX interpreter
21 #
22 # rxstack.exe daemon process that provides external queues
23 #
24 # rxqueue.exe program to access external queues
25 #
26 SRCDIR=$(REGINA_SRCDIR)
27 #
28 # USER CONFIGURABLE VARIABLES
29 #
30 # Please specify the current directory of the sources:
31 #
32 SRCDIR=d:\regina
33 COMMONSRCDIR=$(SRCDIR)\common
34
35 #include $(SRCDIR)\regina.ver
36 #VERDOT = $(VER_DOT)
37 #VERDATE = $(VER_DATE)
38
39 VER=34
40 VERDOT=3.4
41 VER_MAJOR=3
42 VER_MINOR=4
43 VERDATE="15 Feb 2006"
44 VER_SUPP=""
45
46 CC = lcc
47
48 #DEBUGFLAG = -g5
49 #OPTIMIZE =
50 DEBUGFLAG = -DNDEBUG
51 OPTIMIZE = -O
52
53 THREADING =
54
55 DYN_COMP = -DDYNAMIC
56
57 LIBS = advapi32.lib user32.lib #libc.lib
58 WINSOCK = wsock32.lib
59 SERVICELIBS = libc.lib kernel32.lib advapi32.lib shell32.lib
60 # seems that lcc can't create thread-safe DLLs ???
61 SHL_TARGETS= regina.exe rxtest1.dll rxtest2.dll
62 LD = lcclnk
63 LIBFLAGS = /out:rexx.lib
64 LIBLINK = regina.lib
65 LINKSHL = regina.lib
66 LD_RXLIBPRE=$(LD) -DLL -o $@
67 LD_RXLIB1= test1_lcc_dll.def
68 LD_RXLIB2= test2_lcc_dll.def
69 MV= -ren
70 #
71 CEXTRA = -DWIN32 $(REXXSOCKET) -DREGINA_VERSION_DATE=\"$(VERDATE)\" -DREGINA_VERSION_MAJOR=\"$(VER_MAJOR)\" -DREGINA_VERSION_MINOR=\"$(VER_MINOR)\" -DREGINA_VERSION_SUPP=\"$(VER_SUPP)\"
72
73 CC2O=-Fo$@
74 #
75 # Include the common rules for the interpreter
76 #
77
78 #
79 # Some settings that you may wish to change, these are used only
80 # for the 'install' target:
81 #
82 # TOPDIR The top of the directory hierarchy in which to install
83 # BINDIR Where to install the compiled 'rexx' program
84 # LIBDIR Where to install the 'regina' library
85 # MANEXT The extention of the manual page
86 # MANDIR Where to install the manual page
87 # PROGNAME What to call the compiled program
88 #
89 BINDIR = $(TOPDIR)\bin
90 LIBDIR = $(TOPDIR)\lib
91
92 COPT = $(OPTIMIZE) $(DEBUGFLAG) $(CEXTRA) -I$(SRCDIR) $(MEMTRACE) $(NOFLISTS)
93 LINKOPT = $(EEXTRA) -version $(VERDOT)
94 OTHERCOPT = $(OPTIMIZE) $(DEBUGFLAG) $(CEXTRA) -I$(SRCDIR) $(MEMTRACE) $(NOFLISTS)
95
96 README = $(SRCDIR)/README.??? $(SRCDIR)/COPYING-LIB $(SRCDIR)/BUGS $(SRCDIR)/yaccsrc.bound
97
98 CSRCFILES = $(SRCDIR)\funcs.c $(SRCDIR)\builtin.c $(SRCDIR)\error.c $(SRCDIR)\variable.c \
99 $(SRCDIR)\interprt.c $(SRCDIR)\debug.c $(SRCDIR)\dbgfuncs.c $(SRCDIR)\memory.c $(SRCDIR)\parsing.c $(SRCDIR)\files.c \
100 $(SRCDIR)\misc.c $(SRCDIR)\unxfuncs.c $(SRCDIR)\arxfuncs.c $(SRCDIR)\cmsfuncs.c $(SRCDIR)\os2funcs.c $(SRCDIR)\shell.c $(SRCDIR)\rexxext.c $(SRCDIR)\stack.c \
101 $(SRCDIR)\tracing.c $(SRCDIR)\interp.c $(SRCDIR)\cmath.c $(SRCDIR)\convert.c $(SRCDIR)\strengs.c $(SRCDIR)\library.c \
102 $(SRCDIR)\strmath.c $(SRCDIR)\signals.c $(SRCDIR)\macros.c $(SRCDIR)\envir.c $(SRCDIR)\expr.c $(SRCDIR)\rexxbif.c \
103 $(SRCDIR)\wrappers.c $(SRCDIR)\options.c $(SRCDIR)\os_win.c $(SRCDIR)\extstack.c \
104 $(SRCDIR)\mt_notmt.c $(SRCDIR)\mt_win32.c $(SRCDIR)\mt_posix.c $(SRCDIR)\nosaa.c \
105 $(SRCDIR)\ntservice\service.c $(SRCDIR)\os_other.c
106
107 OFILES = funcs.obj builtin.obj error.obj variable.obj \
108 interprt.obj debug.obj dbgfuncs.obj memory.obj parsing.obj files.obj \
109 misc.obj unxfuncs.obj arxfuncs.obj cmsfuncs.obj os2funcs.obj shell.obj rexxext.obj stack.obj extstack.obj \
110 tracing.obj interp.obj cmath.obj convert.obj strengs.obj library.obj \
111 strmath.obj signals.obj macros.obj envir.obj expr.obj instore.obj rexxbif.obj \
112 yaccsrc.obj lexsrc.obj options.obj os_win.obj wrappers.obj mt_notmt.obj os_other.obj
113
114 SHOFILES = funcs.sho.obj builtin.sho.obj error.sho.obj variable.sho.obj extstack.sho.obj rexxbif.sho.obj \
115 interprt.sho.obj debug.sho.obj dbgfuncs.sho.obj memory.sho.obj parsing.sho.obj files.sho.obj \
116 misc.sho.obj unxfuncs.sho.obj arxfuncs.sho.obj cmsfuncs.sho.obj os2funcs.sho.obj shell.sho.obj rexxext.sho.obj stack.sho.obj \
117 tracing.sho.obj interp.sho.obj cmath.sho.obj convert.sho.obj strengs.sho.obj library.sho.obj \
118 strmath.sho.obj signals.sho.obj macros.sho.obj envir.sho.obj expr.sho.obj instore.sho.obj \
119 yaccsrc.sho.obj lexsrc.sho.obj wrappers.sho.obj options.sho.obj os_win.sho.obj \
120 rexx.sho.obj client.sho.obj rexxsaa.sho.obj mt_notmt.sho.obj os_other.sho.obj
121 #mt_win32.sho.obj
122
123 DEMODIR = $(SRCDIR)\demo
124 DEMOFILES = $(DEMODIR)\*
125 TRIPDIR = $(SRCDIR)\trip
126 TRIPFILES = $(TRIPDIR)\*
127 UNIXFILES = $(SRCDIR)\*.in $(SRCDIR)\configure $(SRCDIR)\config.sub \
128 $(SRCDIR)\config.guess $(SRCDIR)\aclocal.m4 $(SRCDIR)\install-sh \
129 $(SRCDIR)\INSTALL $(SRCDIR)\yaccsrc.y $(SRCDIR)\lexsrc.l
130
131 ALLSRC = $(CFILES) $(HFILES)
132
133 HFILES = $(SRCDIR)\rexx.h $(SRCDIR)\defs.h $(SRCDIR)\extern.h $(SRCDIR)\regina_t.h \
134 $(SRCDIR)\config.h $(SRCDIR)\strengs.h $(SRCDIR)\configur.h $(SRCDIR)\yaccsrc.h \
135 $(SRCDIR)\rxiface.h $(SRCDIR)\rexxsaa.h $(SRCDIR)\utsname.h \
136 $(SRCDIR)\mt.h $(SRCDIR)\mt_notmt.h $(SRCDIR)\mt_win32.h $(SRCDIR)\mt_posix.h \
137 $(SRCDIR)\ntservice\service.h
138 CFILES = $(SRCDIR)\yaccsrc.c $(SRCDIR)\lexsrc.c $(CSRCFILES) $(SRCDIR)\execiser.c \
139 $(SRCDIR)\rexxsaa.c $(SRCDIR)\rexx.c $(SRCDIR)\regina.c $(SRCDIR)\client.c \
140 $(SRCDIR)\r2perl.c $(SRCDIR)\test1.c $(SRCDIR)\test2.c
141
142 MTSSRC = $(SRCDIR)\en.mts $(SRCDIR)\pt.mts $(SRCDIR)\no.mts \
143 $(SRCDIR)\de.mts $(SRCDIR)\es.mts $(SRCDIR)\pl.mts \
144 $(SRCDIR)\tr.mts $(SRCDIR)\sv.mts
145
146 #.SUFFIXES: .sho $(SUFFIXES)
147 #
148 # Do not use default suffixes rule
149 #
150 .SUFFIXES:
151
152 all : rexx.exe rexx.lib execiser.exe $(SHL_TARGETS) rxstack.exe rxqueue.exe mtb_files #threader.exe
153
154 $(CSRCFILES) : $(SRCDIR)/rexx.h
155
156 $(SRCDIR)/rexx.h : $(SRCDIR)/extern.h $(SRCDIR)/strengs.h $(SRCDIR)/defs.h $(SRCDIR)/regina_t.h $(SRCDIR)/mt.h
157
158 rexx.exe : $(OFILES) rexx.obj rexxw32exe.res nosaa.obj
159 $(LD) $(LINKOPT) $(STATIC_LDFLAGS) -o rexx.exe $(OFILES) rexx.obj rexxw32exe.res nosaa.obj $(LIBS) $(WINSOCK)
160
161 regina.exe : regina.dll regina.obj reginaw32exe.res
162 $(LD) $(LINKOPT) $(DYNAMIC_LDFLAGS) -o regina.exe regina.obj reginaw32exe.res $(LINKSHL) $(LIBS) $(WINSOCK)
163
164 execiser.exe : execiser.obj regina.dll
165 $(LD) $(LINKOPT) -o execiser.exe execiser.obj $(LIBLINK)
166
167 rxqueue.exe : rxqueue.obj erexxbif.obj eextstack.obj rxqueuew32exe.res
168 $(LD) $(LINKOPT) -o rxqueue.exe rxqueue.obj erexxbif.obj eextstack.obj rxqueuew32exe.res $(WINSOCK)
169
170 rxstack.exe : rxstack.obj erexxbif_mt.obj eextstack_mt.obj service.obj rxstackw32exe.res
171 $(LD) $(LINKOPT) -o rxstack.exe rxstack.obj erexxbif_mt.obj eextstack_mt.obj service.obj rxstackw32exe.res $(WINSOCK) $(SERVICELIBS)
172
173 threader.exe : threader.obj regina.dll
174 $(LD) $(LINKOPT) -o threader.exe threader.obj $(LIBLINK)
175
176 rexx.lib: $(OFILES) client.obj drexx.obj rexxsaa.obj
177 lcclib $(LIBFLAGS) $(OFILES) client.obj drexx.obj rexxsaa.obj
178
179 regina.dll: $(SHOFILES) reginaw32dll.res regina_lcc_dll.def
180 $(LD) $(LINKOPT) -nounderscores -DLL -o regina.dll regina_lcc_dll.def reginaw32dll.res *.sho.obj $(LIBS) $(WINSOCK)
181
182 regina_lcc_dll.def: $(SRCDIR)\regina_w32_dll.def rexx.exe
183 rexx $(SRCDIR)\vcdef2lccdef.rexx $(SRCDIR)\regina_w32_dll.def regina_lcc_dll.def
184
185 #
186 # Convert .mts to .mtb
187 #
188 mtb_files: msgcmp.exe $(MTSSRC)
189 msgcmp $(MTSSRC)
190
191 msgcmp.exe: msgcmp.obj
192 $(LD) $(LINKOPT) -o msgcmp.exe msgcmp.obj
193
194 msgcmp.obj: $(SRCDIR)/msgcmp.c
195 $(CC) $(COPT) $(CC2O) -c $(SRCDIR)/msgcmp.c
196
197 #
198 # Rules for static objects
199 #
200 funcs.obj : $(SRCDIR)/funcs.c
201 $(CC) $(COPT) $(CC2O) -c $(SRCDIR)/funcs.c
202
203 builtin.obj : $(SRCDIR)/builtin.c
204 $(CC) $(COPT) $(CC2O) -c $(SRCDIR)/builtin.c
205
206 error.obj : $(SRCDIR)/error.c
207 $(CC) $(COPT) $(CC2O) -c $(SRCDIR)/error.c
208
209 variable.obj :$(SRCDIR)/variable.c
210 $(CC) $(COPT) $(CC2O) -c $(SRCDIR)/variable.c
211
212 interprt.obj :$(SRCDIR)/interprt.c
213 $(CC) $(COPT) $(CC2O) -c $(SRCDIR)/interprt.c
214
215 debug.obj : $(SRCDIR)/debug.c
216 $(CC) $(COPT) $(CC2O) -c $(SRCDIR)/debug.c
217
218 dbgfuncs.obj :$(SRCDIR)/dbgfuncs.c
219 $(CC) $(COPT) $(CC2O) -c $(SRCDIR)/dbgfuncs.c
220
221 memory.obj : $(SRCDIR)/memory.c
222 $(CC) $(COPT) $(CC2O) -c $(SRCDIR)/memory.c
223
224 parsing.obj : $(SRCDIR)/parsing.c
225 $(CC) $(COPT) $(CC2O) -c $(SRCDIR)/parsing.c
226
227 files.obj : $(SRCDIR)/files.c
228 $(CC) $(COPT) $(CC2O) -c $(SRCDIR)/files.c
229
230 misc.obj : $(SRCDIR)/misc.c
231 $(CC) $(COPT) $(CC2O) -c $(SRCDIR)/misc.c
232
233 unxfuncs.obj :$(SRCDIR)/unxfuncs.c
234 $(CC) $(COPT) $(CC2O) -c $(SRCDIR)/unxfuncs.c
235
236 arxfuncs.obj :$(SRCDIR)/arxfuncs.c
237 $(CC) $(COPT) $(CC2O) -c $(SRCDIR)/arxfuncs.c
238
239 os2funcs.obj :$(SRCDIR)/os2funcs.c
240 $(CC) $(COPT) $(CC2O) -c $(SRCDIR)/os2funcs.c
241
242 cmsfuncs.obj :$(SRCDIR)/cmsfuncs.c
243 $(CC) $(COPT) $(CC2O) -c $(SRCDIR)/cmsfuncs.c
244
245 shell.obj : $(SRCDIR)/shell.c
246 $(CC) $(COPT) $(CC2O) -c $(SRCDIR)/shell.c
247
248 rexxext.obj : $(SRCDIR)/rexxext.c
249 $(CC) $(COPT) $(CC2O) -c $(SRCDIR)/rexxext.c
250
251 stack.obj : $(SRCDIR)/stack.c
252 $(CC) $(COPT) $(CC2O) -c $(SRCDIR)/stack.c
253
254 tracing.obj : $(SRCDIR)/tracing.c
255 $(CC) $(COPT) $(CC2O) -c $(SRCDIR)/tracing.c
256
257 interp.obj : $(SRCDIR)/interp.c
258 $(CC) $(COPT) $(CC2O) -c $(SRCDIR)/interp.c
259
260 cmath.obj : $(SRCDIR)/cmath.c
261 $(CC) $(COPT) $(CC2O) -c $(SRCDIR)/cmath.c
262
263 convert.obj : $(SRCDIR)/convert.c
264 $(CC) $(COPT) $(CC2O) -c $(SRCDIR)/convert.c
265
266 strengs.obj : $(SRCDIR)/strengs.c
267 $(CC) $(COPT) $(CC2O) -c $(SRCDIR)/strengs.c
268
269 library.obj : $(SRCDIR)/library.c
270 $(CC) $(COPT) $(CC2O) -c $(SRCDIR)/library.c
271
272 strmath.obj : $(SRCDIR)/strmath.c
273 $(CC) $(COPT) $(CC2O) -c $(SRCDIR)/strmath.c
274
275 signals.obj : $(SRCDIR)/signals.c
276 $(CC) $(COPT) $(CC2O) -c $(SRCDIR)/signals.c
277
278 macros.obj : $(SRCDIR)/macros.c
279 $(CC) $(COPT) $(CC2O) -c $(SRCDIR)/macros.c
280
281 envir.obj : $(SRCDIR)/envir.c
282 $(CC) $(COPT) $(CC2O) -c $(SRCDIR)/envir.c
283
284 expr.obj : $(SRCDIR)/expr.c
285 $(CC) $(COPT) $(CC2O) -c $(SRCDIR)/expr.c
286
287 wrappers.obj :$(SRCDIR)/wrappers.c
288 $(CC) $(COPT) $(CC2O) -c $(SRCDIR)/wrappers.c
289
290 options.obj : $(SRCDIR)/options.c
291 $(CC) $(COPT) $(CC2O) -c $(SRCDIR)/options.c
292
293 os_win.obj : $(SRCDIR)/os_win.c
294 $(CC) $(COPT) $(CC2O) -c $(SRCDIR)/os_win.c
295
296 os_other.obj : $(SRCDIR)/os_other.c
297 $(CC) $(COPT) $(CC2O) -c $(SRCDIR)/os_other.c
298
299 rexx.obj : $(SRCDIR)/rexx.c
300 $(CC) $(COPT) $(CC2O) -c $(SRCDIR)/rexx.c
301
302 client.obj : $(SRCDIR)/client.c
303 $(CC) $(COPT) $(CC2O) -c $(SRCDIR)/client.c
304
305 rexxsaa.obj : $(SRCDIR)/rexxsaa.c $(SRCDIR)\rexxsaa.h
306 $(CC) $(COPT) $(CC2O) -c $(SRCDIR)/rexxsaa.c
307
308 regina.obj : $(SRCDIR)/regina.c
309 $(CC) $(COPT) $(CC2O) -c $(SRCDIR)/regina.c
310
311 drexx.obj : $(SRCDIR)/rexx.c
312 $(CC) $(COPT) -c -DRXLIB $(CC2O) $(SRCDIR)/rexx.c
313
314 mt_notmt.obj : $(SRCDIR)/mt_notmt.c
315 $(CC) $(COPT) -c $(CC2O) $(SRCDIR)/mt_notmt.c
316
317 mt_win32.obj : $(SRCDIR)/mt_win32.c
318 $(CC) $(COPT) -c $(CC2O) $(SRCDIR)/mt_win32.c
319
320 nosaa.obj : $(SRCDIR)/nosaa.c
321 $(CC) $(COPT) -c $(CC2O) $(SRCDIR)/nosaa.c
322
323 instore.obj : $(SRCDIR)/instore.c
324 $(CC) $(COPT) -c $(CC2O) $(SRCDIR)/instore.c
325
326 lexsrc.obj : $(SRCDIR)/lexsrc.c $(SRCDIR)/rexx.h $(SRCDIR)/yaccsrc.h
327 $(CC) $(OTHERCOPT) $(CC2O) -c $(SRCDIR)/lexsrc.c
328
329 yaccsrc.obj : $(SRCDIR)/yaccsrc.c $(SRCDIR)/defs.h $(SRCDIR)/rexx.h
330 $(CC) $(OTHERCOPT) $(CC2O) -c -DYYMAXDEPTH=10000 $(SRCDIR)/yaccsrc.c
331
332 extstack.obj : $(SRCDIR)/extstack.c $(SRCDIR)/rexx.h
333 $(CC) $(COPT) $(CC2O) -c $(SRCDIR)/extstack.c
334
335 execiser.obj : $(SRCDIR)/execiser.c $(SRCDIR)/rexx.h
336 $(CC) $(COPT) $(CC2O) -c $(SRCDIR)/execiser.c
337
338 rxqueue.obj : $(SRCDIR)/rxqueue.c $(SRCDIR)/rexx.h
339 $(CC) -DEXTERNAL_TO_REGINA $(COPT) $(CC2O) -c $(SRCDIR)/rxqueue.c
340
341 rxstack.obj : $(SRCDIR)/rxstack.c $(SRCDIR)/rexx.h $(SRCDIR)/ntservice/service.h
342 $(CC) -DEXTERNAL_TO_REGINA -DBUILD_NT_SERVICE -I$(SRCDIR) -I$(SRCDIR)/ntservice $(TSCOPT) $(CC2O) -c $(SRCDIR)/rxstack.c
343
344 service.obj : $(SRCDIR)/ntservice/service.c $(SRCDIR)/ntservice/service.h
345 $(CC) -I$(SRCDIR)/ntservice $(TSCOPT) $(CC2O) -c $(SRCDIR)/ntservice/service.c
346
347 rexxbif.obj : $(SRCDIR)/rexxbif.c $(SRCDIR)/rexxbif.h
348 $(CC) $(COPT) $(CC2O) -c $(SRCDIR)/rexxbif.c
349
350 rexxbif_mt.obj : $(SRCDIR)/rexxbif.c $(SRCDIR)/rexxbif.h
351 $(CC) $(COPT) $(CC2O) -c $(SRCDIR)/rexxbif.c
352
353 erexxbif.obj : $(SRCDIR)/rexxbif.c $(SRCDIR)/rexxbif.h
354 $(CC) -DEXTERNAL_TO_REGINA $(COPT) $(CC2O) -c $(SRCDIR)/rexxbif.c
355
356 erexxbif_mt.obj : $(SRCDIR)/rexxbif.c $(SRCDIR)/rexxbif.h
357 $(CC) -DEXTERNAL_TO_REGINA $(COPT) $(CC2O) -c $(SRCDIR)/rexxbif.c
358
359 eextstack.obj : $(SRCDIR)/extstack.c $(SRCDIR)/rexx.h
360 $(CC) -DEXTERNAL_TO_REGINA $(COPT) $(CC2O) -c $(SRCDIR)/extstack.c
361
362 eextstack_mt.obj : $(SRCDIR)/extstack.c $(SRCDIR)/rexx.h
363 $(CC) -DEXTERNAL_TO_REGINA $(COPT) $(CC2O) -c $(SRCDIR)/extstack.c
364
365 #
366 # Rules for shared objects
367 #
368 funcs.sho.obj : $(SRCDIR)/funcs.c
369 $(CC) $(COPT) $(CC2O) $(DYN_COMP) -c $(SRCDIR)/funcs.c
370
371 builtin.sho.obj : $(SRCDIR)/builtin.c
372 $(CC) $(COPT) $(CC2O) $(DYN_COMP) -c $(SRCDIR)/builtin.c
373
374 error.sho.obj : $(SRCDIR)/error.c
375 $(CC) $(COPT) $(CC2O) $(DYN_COMP) -c $(SRCDIR)/error.c
376
377 variable.sho.obj :$(SRCDIR)/variable.c
378 $(CC) $(COPT) $(CC2O) $(DYN_COMP) -c $(SRCDIR)/variable.c
379
380 interprt.sho.obj :$(SRCDIR)/interprt.c
381 $(CC) $(COPT) $(CC2O) $(DYN_COMP) -c $(SRCDIR)/interprt.c
382
383 debug.sho.obj : $(SRCDIR)/debug.c
384 $(CC) $(COPT) $(CC2O) $(DYN_COMP) -c $(SRCDIR)/debug.c
385
386 dbgfuncs.sho.obj :$(SRCDIR)/dbgfuncs.c
387 $(CC) $(COPT) $(CC2O) $(DYN_COMP) -c $(SRCDIR)/dbgfuncs.c
388
389 memory.sho.obj : $(SRCDIR)/memory.c
390 $(CC) $(COPT) $(CC2O) $(DYN_COMP) -c $(SRCDIR)/memory.c
391
392 parsing.sho.obj : $(SRCDIR)/parsing.c
393 $(CC) $(COPT) $(CC2O) $(DYN_COMP) -c $(SRCDIR)/parsing.c
394
395 files.sho.obj : $(SRCDIR)/files.c
396 $(CC) $(COPT) $(CC2O) $(DYN_COMP) -c $(SRCDIR)/files.c
397
398 misc.sho.obj : $(SRCDIR)/misc.c
399 $(CC) $(COPT) $(CC2O) $(DYN_COMP) -c $(SRCDIR)/misc.c
400
401 unxfuncs.sho.obj :$(SRCDIR)/unxfuncs.c
402 $(CC) $(COPT) $(CC2O) $(DYN_COMP) -c $(SRCDIR)/unxfuncs.c
403
404 arxfuncs.sho.obj :$(SRCDIR)/arxfuncs.c
405 $(CC) $(COPT) $(CC2O) $(DYN_COMP) -c $(SRCDIR)/arxfuncs.c
406
407 os2funcs.sho.obj :$(SRCDIR)/os2funcs.c
408 $(CC) $(COPT) $(CC2O) $(DYN_COMP) -c $(SRCDIR)/os2funcs.c
409
410 cmsfuncs.sho.obj :$(SRCDIR)/cmsfuncs.c
411 $(CC) $(COPT) $(CC2O) $(DYN_COMP) -c $(SRCDIR)/cmsfuncs.c
412
413 shell.sho.obj : $(SRCDIR)/shell.c
414 $(CC) $(COPT) $(CC2O) $(DYN_COMP) -c $(SRCDIR)/shell.c
415
416 rexxext.sho.obj : $(SRCDIR)/rexxext.c
417 $(CC) $(COPT) $(CC2O) $(DYN_COMP) -c $(SRCDIR)/rexxext.c
418
419 stack.sho.obj : $(SRCDIR)/stack.c
420 $(CC) $(COPT) $(CC2O) $(DYN_COMP) -c $(SRCDIR)/stack.c
421
422 tracing.sho.obj : $(SRCDIR)/tracing.c
423 $(CC) $(COPT) $(CC2O) $(DYN_COMP) -c $(SRCDIR)/tracing.c
424
425 interp.sho.obj : $(SRCDIR)/interp.c
426 $(CC) $(COPT) $(CC2O) $(DYN_COMP) -c $(SRCDIR)/interp.c
427
428 cmath.sho.obj : $(SRCDIR)/cmath.c
429 $(CC) $(COPT) $(CC2O) $(DYN_COMP) -c $(SRCDIR)/cmath.c
430
431 convert.sho.obj : $(SRCDIR)/convert.c
432 $(CC) $(COPT) $(CC2O) $(DYN_COMP) -c $(SRCDIR)/convert.c
433
434 strengs.sho.obj : $(SRCDIR)/strengs.c
435 $(CC) $(COPT) $(CC2O) $(DYN_COMP) -c $(SRCDIR)/strengs.c
436
437 library.sho.obj : $(SRCDIR)/library.c
438 $(CC) $(COPT) $(CC2O) $(DYN_COMP) -c $(SRCDIR)/library.c
439
440 strmath.sho.obj : $(SRCDIR)/strmath.c
441 $(CC) $(COPT) $(CC2O) $(DYN_COMP) -c $(SRCDIR)/strmath.c
442
443 signals.sho.obj : $(SRCDIR)/signals.c
444 $(CC) $(COPT) $(CC2O) $(DYN_COMP) -c $(SRCDIR)/signals.c
445
446 macros.sho.obj : $(SRCDIR)/macros.c
447 $(CC) $(COPT) $(CC2O) $(DYN_COMP) -c $(SRCDIR)/macros.c
448
449 envir.sho.obj : $(SRCDIR)/envir.c
450 $(CC) $(COPT) $(CC2O) $(DYN_COMP) -c $(SRCDIR)/envir.c
451
452 expr.sho.obj : $(SRCDIR)/expr.c
453 $(CC) $(COPT) $(CC2O) $(DYN_COMP) -c $(SRCDIR)/expr.c
454
455 wrappers.sho.obj :$(SRCDIR)/wrappers.c
456 $(CC) $(COPT) $(CC2O) $(DYN_COMP) -c $(SRCDIR)/wrappers.c
457
458 options.sho.obj : $(SRCDIR)/options.c
459 $(CC) $(COPT) $(CC2O) $(DYN_COMP) -c $(SRCDIR)/options.c
460
461 os_win.sho.obj : $(SRCDIR)/os_win.c
462 $(CC) $(COPT) $(CC2O) $(DYN_COMP) -c $(SRCDIR)/os_win.c
463
464 os_other.sho.obj : $(SRCDIR)/os_other.c
465 $(CC) $(COPT) $(CC2O) $(DYN_COMP) -c $(SRCDIR)/os_other.c
466
467 client.sho.obj : $(SRCDIR)/client.c
468 $(CC) $(COPT) $(CC2O) $(DYN_COMP) -c $(SRCDIR)/client.c
469
470 rexxsaa.sho.obj : $(SRCDIR)/rexxsaa.c $(SRCDIR)\rexxsaa.h
471 $(CC) $(COPT) $(CC2O) $(DYN_COMP) -c $(SRCDIR)/rexxsaa.c
472
473 rexx.sho.obj : $(SRCDIR)/rexx.c
474 $(CC) $(COPT) $(CC2O) $(DYN_COMP) -c -DRXLIB $(SRCDIR)/rexx.c
475
476 instore.sho.obj : $(SRCDIR)/instore.c
477 $(CC) $(COPT) $(CC2O) $(DYN_COMP) -c $(SRCDIR)/instore.c
478
479 mt_notmt.sho.obj :$(SRCDIR)/mt_notmt.c
480 $(CC) $(COPT) $(CC2O) $(DYN_COMP) -c $(SRCDIR)/mt_notmt.c
481
482 mt_win32.sho.obj : $(SRCDIR)/mt_win32.c
483 $(CC) $(COPT) -c $(CC2O) $(DYN_COMP) $(SRCDIR)/mt_win32.c
484
485 lexsrc.sho.obj : $(SRCDIR)/lexsrc.c $(SRCDIR)/rexx.h $(SRCDIR)/yaccsrc.h
486 $(CC) $(OTHERCOPT) $(CC2O) $(DYN_COMP) -c $(SRCDIR)/lexsrc.c
487
488 yaccsrc.sho.obj : $(SRCDIR)/yaccsrc.c $(SRCDIR)/defs.h $(SRCDIR)/rexx.h
489 $(CC) $(OTHERCOPT) $(CC2O) $(DYN_COMP) -c -DYYMAXDEPTH=10000 $(SRCDIR)/yaccsrc.c
490
491 extstack.sho.obj : $(SRCDIR)/extstack.c $(SRCDIR)/rexx.h
492 $(CC) $(OTHERCOPT) $(CC2O) $(DYN_COMP) -c $(SRCDIR)/extstack.c
493
494 rexxbif.sho.obj : $(SRCDIR)/rexxbif.c $(SRCDIR)/rexx.h
495 $(CC) $(OTHERCOPT) $(CC2O) $(DYN_COMP) -c $(SRCDIR)/rexxbif.c
496
497 #
498 # Rules for sample programs
499 #
500 test1.obj: $(SRCDIR)/test1.c
501 $(CC) -c $(COPT) $(CC2O) $(DYN_COMP) $(SRCDIR)/test1.c
502
503 rxtest1.dll: test1.obj regina.dll test1_lcc_dll.def
504 $(LD_RXLIBPRE) -nounderscores $(LD_RXLIB1) test1.obj $(LINKSHL)
505
506 test2.obj: $(SRCDIR)/test2.c
507 $(CC) -c $(COPT) $(CC2O) $(DYN_COMP) $(SRCDIR)/test2.c
508
509 rxtest2.dll: test2.obj regina.dll test2_lcc_dll.def
510 $(LD_RXLIBPRE) -nounderscores $(LD_RXLIB2) test2.obj $(LINKSHL)
511
512 test1_lcc_dll.def: $(SRCDIR)\test1_w32_dll.def rexx.exe
513 rexx $(SRCDIR)\vcdef2lccdef.rexx $(SRCDIR)\test1_w32_dll.def test1_lcc_dll.def
514
515 test2_lcc_dll.def: $(SRCDIR)\test2_w32_dll.def rexx.exe
516 rexx $(SRCDIR)\vcdef2lccdef.rexx $(SRCDIR)\test2_w32_dll.def test2_lcc_dll.def
517
518 #
519 # Rules for resource files and version details
520 # We assume we have an already functional regina.exe
521 #
522 reginaw32dll.rc: $(SRCDIR)\regina.ver $(SRCDIR)\reginaw32dll.rc
523 regina $(COMMONSRCDIR)\fixrc.rexx $(SRCDIR)\reginaw32dll.rc .\reginaw32dll.rc $(VERDOT) $(VERDATE)
524 reginaw32exe.rc: $(SRCDIR)\regina.ver $(SRCDIR)\reginaw32exe.rc
525 regina $(COMMONSRCDIR)\fixrc.rexx $(SRCDIR)\reginaw32exe.rc .\reginaw32exe.rc $(VERDOT) $(VERDATE)
526 rxstackw32exe.rc: $(SRCDIR)\regina.ver $(SRCDIR)\rxstackw32exe.rc
527 regina $(COMMONSRCDIR)\fixrc.rexx $(SRCDIR)\rxstackw32exe.rc .\rxstackw32exe.rc $(VERDOT) $(VERDATE)
528 rxqueuew32exe.rc: $(SRCDIR)\regina.ver $(SRCDIR)\rxqueuew32exe.rc
529 regina $(COMMONSRCDIR)\fixrc.rexx $(SRCDIR)\rxqueuew32exe.rc .\rxqueuew32exe.rc $(VERDOT) $(VERDATE)
530 rexxw32exe.rc: $(SRCDIR)\regina.ver $(SRCDIR)\rexxw32exe.rc
531 regina $(COMMONSRCDIR)\fixrc.rexx $(SRCDIR)\rexxw32exe.rc .\rexxw32exe.rc $(VERDOT) $(VERDATE)
532
533 #
534 # Rules for resources
535 #
536 reginaw32dll.res: reginaw32dll.rc
537 -copy $(SRCDIR)\reginaw32.ico .
538 lrc /r /foreginaw32dll.res /i$(SRCDIR) .\reginaw32dll.rc
539 #
540 reginaw32exe.res: reginaw32exe.rc
541 -copy $(SRCDIR)\reginaw32.ico .
542 lrc /r /foreginaw32exe.res /i$(SRCDIR)\ .\reginaw32exe.rc
543 #
544 rexxw32exe.res: rexxw32exe.rc
545 -copy $(SRCDIR)\reginaw32.ico .
546 lrc /r /forexxw32exe.res /i$(SRCDIR)\ .\rexxw32exe.rc
547 #
548 rxstackw32exe.res: rxstackw32exe.rc
549 -copy $(SRCDIR)\reginaw32.ico .
550 lrc /r /forxstackw32exe.res /i$(SRCDIR)\ .\rxstackw32exe.rc
551 #
552 rxqueuew32exe.res: rxqueuew32exe.rc
553 -copy $(SRCDIR)\reginaw32.ico .
554 lrc /r /forxqueuew32exe.res /i$(SRCDIR)\ .\rxqueuew32exe.rc
555 #
556
557 ARCHIVE_FILES = $(ALLSRC) $(README) $(SRCDIR)/makefile.* $(SRCDIR)/oldmakefiles/makefile* \
558 $(SRCDIR)/oldmakefiles/README $(SRCDIR)/*.rsp $(DEMOFILES) $(TRIPFILES) \
559 $(CONFFILES) $(SRCDIR)/*.def $(SRCDIR)/*.ico $(SRCDIR)/*.rc \
560 $(SRCDIR)/file_id* $(SRCDIR)/*.bat $(SRCDIR)/*.cmd $(YACCLEX_FILES) \
561 $(SRCDIR)/*.rexx $(UNIXFILES)
562
563 zip:
564 zip regna$(VER) $(ARCHIVE_FILES)
565
566 #
567 # Build NSIS package...
568 #
569 dist: all
570 copy $(SRCDIR)\regina_ss.ini .
571 copy $(SRCDIR)\regina_fa.ini .
572 makensis /DVERSION=$(VERDOT) /DNODOTVER=$(VER) ..\regina.nsi