[r2191]: interpreter-3.x / releases / 3.2.0 / trunk / Makefile.am  Maximize  Restore  History

Download this file

891 lines (839 with data), 39.2 kB

  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
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
#/*----------------------------------------------------------------------------*/
#/* */
#/* Copyright (c) 2005-2006 Rexx Language Association. All rights reserved. */
#/* */
#/* This program and the accompanying materials are made available under */
#/* the terms of the Common Public License v1.0 which accompanies this */
#/* distribution. A copy is also available at the following address: */
#/* http://www.oorexx.org/license.html */
#/* */
#/* Redistribution and use in source and binary forms, with or */
#/* without modification, are permitted provided that the following */
#/* conditions are met: */
#/* */
#/* Redistributions of source code must retain the above copyright */
#/* notice, this list of conditions and the following disclaimer. */
#/* Redistributions in binary form must reproduce the above copyright */
#/* notice, this list of conditions and the following disclaimer in */
#/* the documentation and/or other materials provided with the distribution. */
#/* */
#/* Neither the name of Rexx Language Association nor the names */
#/* of its contributors may be used to endorse or promote products */
#/* derived from this software without specific prior written permission. */
#/* */
#/* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS */
#/* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT */
#/* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS */
#/* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT */
#/* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, */
#/* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED */
#/* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, */
#/* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY */
#/* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING */
#/* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS */
#/* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
#/* */
#/*----------------------------------------------------------------------------*/
AUTOMAKE_OPTIONS = foreign dist-zip
MAINTAINERCLEANFILES = Makefile.in aclocal.m4 configure config.guess config.sub \
depcomp install-sh ltmain.sh missing mkinstalldirs config.h.in \
compile @REXXCAT@ rexx.img \
stamp-h.in cscope.files cscope.out $(distdir).tar.gz
SUBDIRS = samples
DIST_SUBDIRS = samples
########## start of new ##########
# get version details
include $(top_srcdir)/oorexx.ver
VERSION = $(ORX_MAJOR).$(ORX_MINOR).$(ORX_MOD_LVL)
#driver_name = orexx-$(ORX_MAJOR).$(ORX_MINOR).$(ORX_MOD_LVL).0-$(ORX_BLD_LVL)
# Please note that the version-info has nothing to do with the release version.
# You need to know exactly what you are doing in order to get this correct.
VERSION_INFO = -version-info ${ORX_CURRENT}:${ORX_REVISION}:${ORX_AGE}
platform_dir = $(top_srcdir)/platform
platform_unix_dir = $(platform_dir)/unix
platform_windows_dir = $(platform_dir)/windows
build_platform_unix_dir = platform/unix
rexxapi_dir = $(top_srcdir)/rexxapi
rexxapi_unix_dir = $(rexxapi_dir)/unix
rexxapi_windows_dir = $(rexxapi_dir)/windows
kernel_dir = $(top_srcdir)/kernel
kernel_platform_unix_dir = $(kernel_dir)/platform/unix
kernel_platform_windows_dir = $(kernel_dir)/platform/windows
kernel_main_dir = $(kernel_dir)/main
kernel_platform_common_dir = $(kernel_dir)/platform/common
som_dir = $(kernel_dir)/SOM
classes_dir = $(kernel_dir)/classes
expression_dir = $(kernel_dir)/expression
instructions_dir = $(kernel_dir)/instructions
parser_dir = $(kernel_dir)/parser
runtime_dir = $(kernel_dir)/runtime
streamlibrary_dir = $(kernel_dir)/streamLibrary
messages_dir = $(kernel_dir)/messages
lib_dir = $(top_srcdir)/lib
rexutils_dir = $(top_srcdir)/rexutils
rexutils_unix_dir = $(rexutils_dir)/unix
rexutils_windows_dir = $(rexutils_dir)/windows
rxregexp_dir = $(top_srcdir)/rxregexp
rexxclasses_dir = $(kernel_dir)/RexxClasses
samples_dir = $(top_srcdir)/samples
samples_windows_dir = $(top_srcdir)/samples/windows
samples_unix_dir = $(top_srcdir)/samples/unix
catdir = $(prefix)/bin
COMMON_CPPFLAGS = -DORX_VER=$(ORX_MAJOR) -DORX_REL=$(ORX_MINOR) -DORX_MOD=$(ORX_MOD_LVL) -DORX_FIX=0 \
-DORX_SYS_STR=\"@ORX_SYS_STR@\" \
-DORX_CATDIR=\"$(catdir)\" \
-DORX_SHARED_LIBRARY_EXT=\"@ORX_SHARED_LIBRARY_EXT@\" \
-DHIGHTID
messageXML = $(messages_dir)/rexxmsg.xml
#
# header files for source distribution
#
errorHeaders = $(messages_dir)/RexxMessageNumbers.h \
$(messages_dir)/RexxErrorCodes.h \
$(messages_dir)/RexxMessageTable.h
somHeaders = $(som_dir)/SOMUtilities.h \
$(som_dir)/orxcls.h
classesHeaders = $(classes_dir)/ASCIIDBCSStrings.hpp \
$(classes_dir)/ArrayClass.hpp \
$(classes_dir)/ClassClass.hpp \
$(classes_dir)/DirectoryClass.hpp \
$(classes_dir)/IntegerClass.hpp \
$(classes_dir)/ListClass.hpp \
$(classes_dir)/MessageClass.hpp \
$(classes_dir)/MethodClass.hpp \
$(classes_dir)/MutableBufferClass.hpp \
$(classes_dir)/NumberStringClass.hpp \
$(classes_dir)/NumberStringMath.hpp \
$(classes_dir)/ObjectClass.hpp \
$(classes_dir)/QueueClass.hpp \
$(classes_dir)/RelationClass.hpp \
$(classes_dir)/StackClass.hpp \
$(classes_dir)/StemClass.hpp \
$(classes_dir)/StringClass.hpp \
$(classes_dir)/SupplierClass.hpp \
$(classes_dir)/TableClass.hpp
expressionHeaders = $(expression_dir)/BuiltinFunctions.hpp \
$(expression_dir)/ExpressionBaseVariable.hpp \
$(expression_dir)/ExpressionCompoundVariable.hpp \
$(expression_dir)/ExpressionDotVariable.hpp \
$(expression_dir)/ExpressionFunction.hpp \
$(expression_dir)/ExpressionMessage.hpp \
$(expression_dir)/ExpressionOperator.hpp \
$(expression_dir)/ExpressionStack.hpp \
$(expression_dir)/ExpressionStem.hpp \
$(expression_dir)/ExpressionVariable.hpp \
$(expression_dir)/IndirectVariableReference.hpp \
$(expression_dir)/ExpressionLogical.hpp
instructionsHeaders = $(instructions_dir)/AddressInstruction.hpp \
$(instructions_dir)/AssignmentInstruction.hpp \
$(instructions_dir)/CallInstruction.hpp \
$(instructions_dir)/CommandInstruction.hpp \
$(instructions_dir)/DoBlock.hpp \
$(instructions_dir)/DoInstruction.hpp \
$(instructions_dir)/DropInstruction.hpp \
$(instructions_dir)/ElseInstruction.hpp \
$(instructions_dir)/EndIf.hpp \
$(instructions_dir)/EndInstruction.hpp \
$(instructions_dir)/ExitInstruction.hpp \
$(instructions_dir)/ExposeInstruction.hpp \
$(instructions_dir)/ForwardInstruction.hpp \
$(instructions_dir)/GuardInstruction.hpp \
$(instructions_dir)/IfInstruction.hpp \
$(instructions_dir)/InterpretInstruction.hpp \
$(instructions_dir)/LabelInstruction.hpp \
$(instructions_dir)/LeaveInstruction.hpp \
$(instructions_dir)/MessageInstruction.hpp \
$(instructions_dir)/NopInstruction.hpp \
$(instructions_dir)/NumericInstruction.hpp \
$(instructions_dir)/OptionsInstruction.hpp \
$(instructions_dir)/OtherwiseInstruction.hpp \
$(instructions_dir)/ParseInstruction.hpp \
$(instructions_dir)/ParseTarget.hpp \
$(instructions_dir)/ParseTrigger.hpp \
$(instructions_dir)/ProcedureInstruction.hpp \
$(instructions_dir)/QueueInstruction.hpp \
$(instructions_dir)/RaiseInstruction.hpp \
$(instructions_dir)/ReplyInstruction.hpp \
$(instructions_dir)/ReturnInstruction.hpp \
$(instructions_dir)/RexxInstruction.hpp \
$(instructions_dir)/SayInstruction.hpp \
$(instructions_dir)/SelectInstruction.hpp \
$(instructions_dir)/SignalInstruction.hpp \
$(instructions_dir)/ThenInstruction.hpp \
$(instructions_dir)/TraceInstruction.hpp \
$(instructions_dir)/UseInstruction.hpp \
$(instructions_dir)/UseStrictInstruction.hpp
parserHeaders = $(parser_dir)/Clause.hpp \
$(parser_dir)/SourceFile.hpp \
$(parser_dir)/Token.hpp
platformHeaders = $(kernel_platform_unix_dir)/APIDefinitions.h \
$(kernel_platform_unix_dir)/PlatformDefinitions.h \
$(kernel_platform_unix_dir)/SharedMemorySupport.h \
$(kernel_platform_unix_dir)/SystemCommands.h \
$(kernel_platform_unix_dir)/SystemSemaphores.h \
$(kernel_platform_unix_dir)/ThreadSupport.hpp
platformcommonHeaders = $(kernel_platform_common_dir)/ActivityTable.hpp
runtimeHeaders = $(runtime_dir)/DeadObject.hpp \
$(runtime_dir)/GlobalNames.h \
$(runtime_dir)/MemorySegment.hpp \
$(runtime_dir)/MemoryStats.hpp \
$(runtime_dir)/NativeMethods.h \
$(runtime_dir)/Numerics.hpp \
$(runtime_dir)/PrimitiveClasses.h \
$(runtime_dir)/RexxActivation.hpp \
$(runtime_dir)/RexxActivationStack.hpp \
$(runtime_dir)/RexxActivity.hpp \
$(runtime_dir)/RexxBehaviour.hpp \
$(runtime_dir)/RexxBuffer.hpp \
$(runtime_dir)/RexxBuiltinFunctions.h \
$(runtime_dir)/RexxCode.hpp \
$(runtime_dir)/RexxCollection.hpp \
$(runtime_dir)/RexxCompoundElement.hpp \
$(runtime_dir)/RexxCompoundTable.hpp \
$(runtime_dir)/RexxCompoundTail.hpp \
$(runtime_dir)/RexxConstants.hpp \
$(runtime_dir)/RexxCore.h \
$(runtime_dir)/RexxDateTime.hpp \
$(runtime_dir)/RexxEnvelope.hpp \
$(runtime_dir)/RexxHashTable.hpp \
$(runtime_dir)/RexxInternalStack.hpp \
$(runtime_dir)/RexxListTable.hpp \
$(runtime_dir)/RexxLocalVariables.hpp \
$(runtime_dir)/RexxMemory.hpp \
$(runtime_dir)/RexxMisc.hpp \
$(runtime_dir)/RexxNativeAPI.h \
$(runtime_dir)/RexxNativeActivation.hpp \
$(runtime_dir)/RexxNativeMethod.hpp \
$(runtime_dir)/RexxSOMCode.hpp \
$(runtime_dir)/RexxSOMProxy.hpp \
$(runtime_dir)/RexxSmartBuffer.hpp \
$(runtime_dir)/RexxVariable.hpp \
$(runtime_dir)/RexxVariableDictionary.hpp
streamlibraryHeaders = $(streamlibrary_dir)/StreamCommandParser.h \
$(streamlibrary_dir)/StreamNative.h
libHeaders = $(lib_dir)/RexxLibrary.h \
$(lib_dir)/RexxPlatformDefinitions.h \
$(lib_dir)/RexxPlatformInterface.h
rexxapiHeaders = $(rexxapi_dir)/APIUtil.h \
$(rexxapi_dir)/ASCIIDBCS.h \
$(rexxapi_dir)/ASCIISymbols.h \
$(rexxapi_dir)/Characters.h \
$(rexxapi_dir)/CodePageTables.h
rexxapiunixHeaders = $(rexxapi_unix_dir)/APIUtilities.h \
$(rexxapi_unix_dir)/RexxAPIManager.h \
$(rexxapi_unix_dir)/SubcommandAPI.h
rxregexpHeaders = $(rxregexp_dir)/automaton.hpp \
$(rxregexp_dir)/dblqueue.cpp \
$(rxregexp_dir)/dblqueue.hpp \
$(rxregexp_dir)/regexp.hpp
rexutilsHeaders = $(rexutils_dir)/rxsock.h
aixExportFiles = $(rexutils_unix_dir)/*.exp \
$(rexutils_dir)/*.exp \
$(rexxapi_dir)/*.exp \
$(rxregexp_dir)/*.exp
windowsDefFiles = $(kernel_dir)/*.def \
$(kernel_platform_windows_dir)/*.def \
$(lib_dir)/*.def \
$(rexutils_dir)/*.def \
$(rxregexp_dir)/*.def
miscFiles = $(top_srcdir)/CPLv1.0.txt \
$(top_srcdir)/CHANGES \
$(top_srcdir)/CONTRIBUTORS \
$(top_srcdir)/oorexx.ver \
$(aixExportFiles) \
$(platform_unix_dir)/oorexx.spec \
$(platform_unix_dir)/makepkg.rex \
$(rxregexp_dir)/*.cls \
$(rexutils_dir)/*.cls \
$(samples_dir)/*.rex \
$(samples_windows_dir)/* \
$(samples_dir)/readme
windowsFiles = \
$(top_srcdir)/makeorx.bat \
$(top_srcdir)/orxdb.bat \
$(top_srcdir)/windows-build.txt \
$(lib_dir)/*.mak \
$(kernel_platform_windows_dir)/*.cpp \
$(kernel_platform_windows_dir)/*.h \
$(kernel_platform_windows_dir)/*.rc \
$(kernel_platform_windows_dir)/*.xsl \
$(kernel_platform_windows_dir)/*.orx \
$(kernel_dir)/*.mak \
$(rexxapi_dir)/*.mak \
$(rexutils_dir)/*.mak \
$(rxregexp_dir)/*.mak \
$(rexxapi_windows_dir)/* \
$(rexutils_windows_dir)/* \
$(platform_windows_dir)/*
#
# These error message files are built BEFORE any other target
#
BUILT_SOURCES = $(errorHeaders) \
rexx.img @REXXCAT@
#
# Binary targets
#
bin_PROGRAMS = rexx rexxc rxmigrate rxqueue rxsubcom rxdelipc
#
# Shared library targets
#
pkglib_LTLIBRARIES = librexxapi.la librexx.la librexxutil.la librxmath.la librxregexp.la librxsock.la
#
# Scripts to install
#
pkgdata_SCRIPTS = $(platform_unix_dir)/rexx.sh $(platform_unix_dir)/rexx.csh
#
# headers to install
#
include_HEADERS = $(rexxapi_unix_dir)/rexx.h
#
# man pages to install
#
man_MANS = $(platform_unix_dir)/rexx.1 \
$(platform_unix_dir)/rexxc.1 \
$(platform_unix_dir)/rxmigrate.1 \
$(platform_unix_dir)/rxsubcom.1 \
$(platform_unix_dir)/rxqueue.1
#################### librexx.so ##########################
# Sources for librexxapi.so
#
librexxapi_la_SOURCES = $(rexxapi_unix_dir)/SubcommandAPI.cpp \
$(rexxapi_unix_dir)/RexxAPIManager.cpp \
$(kernel_platform_unix_dir)/SystemSemaphores.cpp \
$(kernel_platform_unix_dir)/SharedMemorySupport.cpp \
$(rexxapi_unix_dir)/MacroSpace.cpp \
$(rexxapi_unix_dir)/QueuesAPI.cpp
#
# Preprocessor flags for librexxapi.so
#
librexxapi_la_CXXFLAGS = $(COMMON_CPPFLAGS) \
-I$(lib_dir) \
-I$(kernel_dir) \
-I$(expression_dir) \
-I$(instructions_dir) \
-I$(classes_dir) \
-I$(runtime_dir) \
-I$(parser_dir) \
-I$(messages_dir) \
-I$(kernel_platform_common_dir) \
-I$(kernel_platform_unix_dir) \
-I$(rexxapi_dir) \
-I$(rexxapi_unix_dir)
librexxapi_la_LDFLAGS = $(VERSION_INFO)
#################### librexx.so ##########################
# Sources for librexx.so
#
SOM_sources = $(som_dir)/SOMObjectNative.cpp \
$(som_dir)/SOMProxyNative.cpp \
$(som_dir)/SOMUtilities.cpp
classes_sources = $(classes_dir)/ASCIIDBCSStrings.cpp \
$(classes_dir)/ArrayClass.cpp \
$(classes_dir)/ClassClass.cpp \
$(classes_dir)/DirectoryClass.cpp \
$(classes_dir)/IntegerClass.cpp \
$(classes_dir)/ListClass.cpp \
$(classes_dir)/MessageClass.cpp \
$(classes_dir)/MethodClass.cpp \
$(classes_dir)/MutableBufferClass.cpp \
$(classes_dir)/NumberStringClass.cpp \
$(classes_dir)/NumberStringMath.cpp \
$(classes_dir)/NumberStringMath2.cpp \
$(classes_dir)/ObjectClass.cpp \
$(classes_dir)/QueueClass.cpp \
$(classes_dir)/RelationClass.cpp \
$(classes_dir)/StackClass.cpp \
$(classes_dir)/StemClass.cpp \
$(classes_dir)/StringClass.cpp \
$(classes_dir)/StringClassBit.cpp \
$(classes_dir)/StringClassConversion.cpp \
$(classes_dir)/StringClassMisc.cpp \
$(classes_dir)/StringClassSub.cpp \
$(classes_dir)/StringClassUtil.cpp \
$(classes_dir)/StringClassWord.cpp \
$(classes_dir)/SupplierClass.cpp \
$(classes_dir)/TableClass.cpp
expression_sources = $(expression_dir)/BuiltinFunctions.cpp \
$(expression_dir)/ExpressionCompoundVariable.cpp \
$(expression_dir)/ExpressionDotVariable.cpp \
$(expression_dir)/ExpressionFunction.cpp \
$(expression_dir)/ExpressionMessage.cpp \
$(expression_dir)/ExpressionOperator.cpp \
$(expression_dir)/ExpressionStack.cpp \
$(expression_dir)/ExpressionStem.cpp \
$(expression_dir)/ExpressionVariable.cpp \
$(expression_dir)/IndirectVariableReference.cpp \
$(expression_dir)/ExpressionLogical.cpp
instructions_sources = $(instructions_dir)/AddressInstruction.cpp \
$(instructions_dir)/AssignmentInstruction.cpp \
$(instructions_dir)/CallInstruction.cpp \
$(instructions_dir)/CommandInstruction.cpp \
$(instructions_dir)/DoBlock.cpp \
$(instructions_dir)/DoInstruction.cpp \
$(instructions_dir)/DropInstruction.cpp \
$(instructions_dir)/ElseInstruction.cpp \
$(instructions_dir)/EndIf.cpp \
$(instructions_dir)/EndInstruction.cpp \
$(instructions_dir)/ExitInstruction.cpp \
$(instructions_dir)/ExposeInstruction.cpp \
$(instructions_dir)/ForwardInstruction.cpp \
$(instructions_dir)/GuardInstruction.cpp \
$(instructions_dir)/IfInstruction.cpp \
$(instructions_dir)/InterpretInstruction.cpp \
$(instructions_dir)/LabelInstruction.cpp \
$(instructions_dir)/LeaveInstruction.cpp \
$(instructions_dir)/MessageInstruction.cpp \
$(instructions_dir)/NopInstruction.cpp \
$(instructions_dir)/NumericInstruction.cpp \
$(instructions_dir)/OptionsInstruction.cpp \
$(instructions_dir)/OtherwiseInstruction.cpp \
$(instructions_dir)/ParseInstruction.cpp \
$(instructions_dir)/ParseTarget.cpp \
$(instructions_dir)/ParseTrigger.cpp \
$(instructions_dir)/ProcedureInstruction.cpp \
$(instructions_dir)/QueueInstruction.cpp \
$(instructions_dir)/RaiseInstruction.cpp \
$(instructions_dir)/ReplyInstruction.cpp \
$(instructions_dir)/ReturnInstruction.cpp \
$(instructions_dir)/RexxInstruction.cpp \
$(instructions_dir)/SayInstruction.cpp \
$(instructions_dir)/SelectInstruction.cpp \
$(instructions_dir)/SignalInstruction.cpp \
$(instructions_dir)/ThenInstruction.cpp \
$(instructions_dir)/TraceInstruction.cpp \
$(instructions_dir)/UseInstruction.cpp \
$(instructions_dir)/UseStrictInstruction.cpp
parser_sources = $(parser_dir)/Clause.cpp \
$(parser_dir)/InstructionParser.cpp \
$(parser_dir)/Scanner.cpp \
$(parser_dir)/SourceFile.cpp \
$(parser_dir)/Token.cpp
kernel_platform_common_sources = $(kernel_platform_common_dir)/ActivityTable.cpp
# SharedMemorySupport.cpp
# SystemSemaphores.cpp
platform_sources = $(kernel_platform_unix_dir)/DBCSSupport.cpp \
$(kernel_platform_unix_dir)/ErrorMessages.cpp \
$(kernel_platform_unix_dir)/ExternalFunctions.cpp \
$(kernel_platform_unix_dir)/FileSystem.cpp \
$(kernel_platform_unix_dir)/MemorySupport.cpp \
$(kernel_platform_unix_dir)/MiscSystem.cpp \
$(kernel_platform_unix_dir)/RexxMain.cpp \
$(kernel_platform_unix_dir)/RexxQueues.cpp \
$(kernel_platform_unix_dir)/StoredMetaData.cpp \
$(kernel_platform_unix_dir)/SystemCommands.cpp \
$(kernel_platform_unix_dir)/ThreadSupport.cpp \
$(kernel_platform_unix_dir)/TimeSupport.cpp \
$(kernel_platform_unix_dir)/UseridFunction.cpp \
$(kernel_platform_unix_dir)/ValueFunction.cpp \
$(kernel_platform_unix_dir)/VariablePool.cpp
# $(runtime_dir)/RexxVariableDictionary2.cpp
runtime_sources = $(runtime_dir)/DeadObject.cpp \
$(runtime_dir)/FloatUtilities.cpp \
$(runtime_dir)/GlobalData.cpp \
$(runtime_dir)/GlobalNames.cpp \
$(runtime_dir)/Initialization.cpp \
$(runtime_dir)/MemorySegment.cpp \
$(runtime_dir)/MemoryStats.cpp \
$(runtime_dir)/NativeRoot.cpp \
$(runtime_dir)/Numerics.cpp \
$(runtime_dir)/RexxActivation.cpp \
$(runtime_dir)/RexxActivationStack.cpp \
$(runtime_dir)/RexxActivity.cpp \
$(runtime_dir)/RexxBehaviour.cpp \
$(runtime_dir)/RexxBuffer.cpp \
$(runtime_dir)/RexxCode.cpp \
$(runtime_dir)/RexxCollection.cpp \
$(runtime_dir)/RexxCompoundElement.cpp \
$(runtime_dir)/RexxCompoundTable.cpp \
$(runtime_dir)/RexxCompoundTail.cpp \
$(runtime_dir)/RexxConstants.cpp \
$(runtime_dir)/RexxDateTime.cpp \
$(runtime_dir)/RexxEnvelope.cpp \
$(runtime_dir)/RexxHashTable.cpp \
$(runtime_dir)/RexxInternalStack.cpp \
$(runtime_dir)/RexxListTable.cpp \
$(runtime_dir)/RexxLocalVariables.cpp \
$(runtime_dir)/RexxMemory.cpp \
$(runtime_dir)/RexxMisc.cpp \
$(runtime_dir)/RexxNativeActivation.cpp \
$(runtime_dir)/RexxNativeMethod.cpp \
$(runtime_dir)/RexxSOMCode.cpp \
$(runtime_dir)/RexxSOMProxy.cpp \
$(runtime_dir)/RexxSmartBuffer.cpp \
$(runtime_dir)/RexxStartup.cpp \
$(runtime_dir)/RexxVariable.cpp \
$(runtime_dir)/RexxVariableDictionary.cpp \
$(runtime_dir)/Setup.cpp \
$(runtime_dir)/Utilities.cpp \
$(runtime_dir)/Version.cpp
streamlibrary_sources = $(streamlibrary_dir)/StreamCommandParser.cpp \
$(streamlibrary_dir)/StreamNative.cpp
lib_sources = $(lib_dir)/LocalProcessData.cpp
librexx_la_SOURCES = $(SOM_sources) \
$(classes_sources) \
$(expression_sources) \
$(instructions_sources) \
$(parser_sources) \
$(kernel_platform_common_sources) \
$(platform_sources) \
$(runtime_sources) \
$(streamlibrary_sources) \
$(lib_sources)
core_classes = $(rexxclasses_dir)/CoreClasses.orx \
$(rexxclasses_dir)/StreamClasses.orx \
$(rexxclasses_dir)/SystemMethods.orx
core_platform_classes = $(kernel_platform_unix_dir)/PlatformObjects.orx \
$(kernel_platform_unix_dir)/UnixMethods.orx
#
# Preprocessor flags for librexx.so
#
librexx_la_CXXFLAGS = $(COMMON_CPPFLAGS) \
-I$(lib_dir) \
-I$(kernel_dir) \
-I$(expression_dir) \
-I$(instructions_dir) \
-I$(classes_dir) \
-I$(runtime_dir) \
-I$(parser_dir) \
-I$(messages_dir) \
-I$(streamlibrary_dir) \
-I$(som_dir) \
-I$(kernel_platform_common_dir) \
-I$(kernel_platform_unix_dir) \
-I$(rexxapi_unix_dir)
librexx_la_LDFLAGS = $(VERSION_INFO)
#################### rexx ##########################
# Sources for rexx
#
rexx_SOURCES = $(platform_unix_dir)/rexx.cpp
#
# Preprocessor flags for rexx
#
rexx_CXXFLAGS = $(COMMON_CPPFLAGS) \
-I$(lib_dir) \
-I$(messages_dir) \
-I$(kernel_platform_unix_dir) \
-I$(rexxapi_unix_dir)
#
# Extra libraries for rexx
#
rexx_LDADD = librexx.la librexxapi.la @ORX_LDADD_EXECUTABLE@
rexx_LDFLAGS = @ORX_LDFLAGS_EXECUTABLE@
#################### rexxc #########################
# Sources for rexxc
#
rexxc_SOURCES = $(platform_unix_dir)/RexxCompiler.cpp
#
# Preprocessor flags for rexxc
#
rexxc_CXXFLAGS = $(COMMON_CPPFLAGS) \
-I$(lib_dir) \
-I$(messages_dir) \
-I$(kernel_platform_unix_dir) \
-I$(rexxapi_unix_dir)
# -I$(top_srcdir)/kernel/messages
#
# Extra libraries for rexxc
#
rexxc_LDADD = librexx.la librexxapi.la @ORX_LDADD_EXECUTABLE@
rexxc_LDFLAGS = @ORX_LDFLAGS_EXECUTABLE@
#################### rxmigrate #########################
# Sources for rxmigrate
#
rxmigrate_SOURCES = $(kernel_platform_common_dir)/RexxMigration.cpp
#
# Preprocessor flags for rxmigrate
#
rxmigrate_CXXFLAGS = $(COMMON_CPPFLAGS) \
-I$(lib_dir) \
-I$(kernel_dir) \
-I$(expression_dir) \
-I$(instructions_dir) \
-I$(classes_dir) \
-I$(runtime_dir) \
-I$(parser_dir) \
-I$(messages_dir) \
-I$(streamlibrary_dir) \
-I$(som_dir) \
-I$(kernel_platform_common_dir) \
-I$(kernel_platform_unix_dir) \
-I$(rexxapi_unix_dir)
# -I$(top_srcdir)/kernel/messages
#
# Extra libraries for rxmigrate
#
rxmigrate_LDADD = librexx.la librexxapi.la @ORX_LDADD_EXECUTABLE@
rxmigrate_LDFLAGS = @ORX_LDFLAGS_EXECUTABLE@
#################### rxqueue #########################
# Sources for rxqueue
#
rxqueue_SOURCES = $(rexxapi_unix_dir)/QueueCommand.cpp
#
# Preprocessor flags for rxqueue
#
rxqueue_CXXFLAGS = $(COMMON_CPPFLAGS) \
-I$(lib_dir) \
-I$(kernel_platform_unix_dir) \
-I$(messages_dir) \
-I$(rexxapi_unix_dir)
#
# Extra libraries for rxqueue
#
rxqueue_LDADD = librexx.la librexxapi.la @ORX_LDADD_EXECUTABLE@
rxqueue_LDFLAGS = @ORX_LDFLAGS_EXECUTABLE@
#################### rxsubcom #########################
# Sources for rxsubcom
#
rxsubcom_SOURCES = $(rexxapi_unix_dir)/SUBCOMCommand.cpp
#
# Preprocessor flags for rxsubcom
#
rxsubcom_CXXFLAGS = $(COMMON_CPPFLAGS) \
-I$(lib_dir) \
-I$(kernel_platform_unix_dir) \
-I$(messages_dir) \
-I$(rexxapi_unix_dir)
#
# Extra libraries for rxsubcom
#
rxsubcom_LDADD = librexx.la librexxapi.la @ORX_LDADD_EXECUTABLE@
rxsubcom_LDFLAGS = @ORX_LDFLAGS_EXECUTABLE@
#################### rxdelipc #########################
# Sources for rxdelipc
#
rxdelipc_SOURCES = $(rexxapi_unix_dir)/APIManagerShutdown.cpp
#
# Preprocessor flags for rxdelipc
#
rxdelipc_CXXFLAGS = $(COMMON_CPPFLAGS)
# -I$(top_srcdir)/lib \
# -I$(kernel_platform_unix_dir) \
# -I$(top_srcdir)/kernel/messages
#
# Extra libraries for rxdelipc
#
rxdelipc_LDADD = librexx.la librexxapi.la @ORX_LDADD_EXECUTABLE@
rxdelipc_LDFLAGS = @ORX_LDFLAGS_EXECUTABLE@
#################### librexxutil.so ################
# Preprocessor flags for librexxutil.so
#
librexxutil_la_CXXFLAGS = $(COMMON_CPPFLAGS) \
-I$(lib_dir) \
-I$(kernel_dir) \
-I$(messages_dir) \
-I$(kernel_platform_common_dir) \
-I$(kernel_platform_unix_dir) \
-I$(rexxapi_unix_dir)
#
# Sources for librexxutil.so
#
librexxutil_la_SOURCES = $(rexutils_unix_dir)/rexxutil.cpp
#
# Extra libraries for librexxutil.so (maybe)
#
librexxutil_la_LIBADD = @ORX_LIBADD_LIBRARY@
librexxutil_la_LDFLAGS = $(VERSION_INFO) @ORX_LDFLAGS_LIBRARY@
#################### librxmath.so ################
# Preprocessor flags for librxmath.so
#
librxmath_la_CXXFLAGS = $(COMMON_CPPFLAGS) \
-I$(top_srcdir)/lib \
-I$(kernel_dir) \
-I$(messages_dir) \
-I$(kernel_platform_common_dir) \
-I$(runtime_dir) \
-I$(kernel_platform_unix_dir) \
-I$(rexxapi_unix_dir)
#
# Sources for librxmath.so
#
librxmath_la_SOURCES = $(rexutils_dir)/rxmath.cpp
#
# Extra libraries for librxmath.so (maybe)
#
librxmath_la_LIBADD = @ORX_LIBADD_LIBRARY@
librxmath_la_LDFLAGS = $(VERSION_INFO) @ORX_LDFLAGS_LIBRARY@
#################### librxsock.so ################
# Preprocessor flags for librxsock.so
#
librxsock_la_CFLAGS = $(COMMON_CPPFLAGS) \
-I$(rexxapi_unix_dir)
#
# Sources for librxsock.so
#
librxsock_la_SOURCES = $(rexutils_dir)/rxsock.c \
$(rexutils_dir)/rxsockfn.c
#
# Extra libraries for librxsock.so (maybe)
#
librxsock_la_LIBADD = @ORX_LIBADD_LIBRARY@
librxsock_la_LDFLAGS = $(VERSION_INFO) @ORX_LDFLAGS_LIBRARY@
#################### librxregexp.so ################
# Preprocessor flags for librxregexp.so
#
librxregexp_la_CXXFLAGS = $(COMMON_CPPFLAGS) \
-I$(top_srcdir)/lib \
-I$(kernel_dir) \
-I$(expression_dir) \
-I$(classes_dir) \
-I$(messages_dir) \
-I$(kernel_platform_common_dir) \
-I$(runtime_dir) \
-I$(kernel_platform_unix_dir) \
-I$(rexxapi_unix_dir)
#
# Sources for librxregexp.so
#
librxregexp_la_SOURCES = $(rxregexp_dir)/automaton.cpp \
$(rxregexp_dir)/dblqueue.cpp \
$(rxregexp_dir)/rxregexp.cpp
#
# Extra libraries for librxregexp.so (maybe)
#
librxregexp_la_LIBADD = @ORX_LIBADD_LIBRARY@
librxregexp_la_LDFLAGS = $(VERSION_INFO) @ORX_LDFLAGS_LIBRARY@
#
# explicit targets:
#
rexx.cat: $(messages_dir)/gencat.inp
-gencat $(@) $(messages_dir)/gencat.inp
$(messages_dir)/RexxMessageNumbers.h: $(messages_dir)/RexxMessageNumbers.xsl $(messageXML)
sh ./xsl.sh $(@) $(messageXML) $(messages_dir)/RexxMessageNumbers.xsl
$(messages_dir)/RexxErrorCodes.h: $(messages_dir)/RexxErrorCodes.xsl $(messageXML)
sh ./xsl.sh $(@) $(messageXML) $(messages_dir)/RexxErrorCodes.xsl
$(messages_dir)/RexxMessageTable.h: $(messages_dir)/RexxMessageTable.xsl $(messageXML)
sh ./xsl.sh $(@) $(messageXML) $(messages_dir)/RexxMessageTable.xsl
$(messages_dir)/gencat.inp: $(kernel_platform_unix_dir)/UnixGencat.xsl $(messageXML)
sh ./xsl.sh $(@) $(messageXML) $(kernel_platform_unix_dir)/UnixGencat.xsl
rexx.img: rexx librexxutil.la $(core_classes) $(core_platform_classes)
cp $(rexxclasses_dir)/*.orx .
cp $(kernel_platform_unix_dir)/*.orx .
./rexx -i
rm -f *.orx
#
# distribution files
#
EXTRA_DIST = $(messages_dir)/RexxMessageNumbers.xsl \
$(messages_dir)/RexxErrorCodes.xsl \
$(messages_dir)/RexxMessageTable.xsl \
$(messages_dir)/DocBookErrors.xsl \
$(messages_dir)/DocErrorMessages.sgml \
$(messages_dir)/gencat.inp \
$(messageXML) \
$(kernel_platform_unix_dir)/UnixGencat.xsl \
$(errorHeaders) \
$(platform_unix_dir)/rexx.sh \
$(platform_unix_dir)/rexx.csh \
$(rxregexp_dir)/rxregexp.cls \
$(kernel_platform_unix_dir)/UnixMethods.orx \
$(kernel_platform_unix_dir)/PlatformObjects.orx \
$(rexxclasses_dir) \
$(somHeaders) \
$(classesHeaders) \
$(expressionHeaders) \
$(instructionsHeaders) \
$(parserHeaders) \
$(platformHeaders) \
$(platformcommonHeaders) \
$(runtimeHeaders) \
$(streamlibraryHeaders) \
$(libHeaders) \
$(rexxapiHeaders) \
$(rexxapiunixHeaders) \
$(rxregexpHeaders) \
$(rexutilsHeaders) \
$(man_MANS) \
$(miscFiles) \
$(windowsFiles) \
$(windowsDefFiles)
dist-hook:
rm -fr `find $(distdir) -name .svn`
rm -fr `find $(distdir) -name CVS`
rm -fr `find $(distdir) -name "*.bak"`
rm -fr `find $(distdir) -name "*.o"`
rm -fr `find $(distdir) -name "*.lo"`
#
# Force the timestamp of the message headers and the input to gencat
# to have a later date than the source XML, so Xalan is not needed to
# be executed by the user
touch $(distdir)/kernel/messages/*.h
touch $(distdir)/kernel/messages/DocErrorMessages.sgml
touch $(distdir)/kernel/messages/gencat.inp
#
# Add oorexx.ver.incl, a file used by the Windows build, to the source
# distribution.
sed -e '/ORX_BLD_LVL/s/1$$/$(SVN_REV)/;/ORX_VER_STR/s/\.1\"$$/.$(SVN_REV)\"/' oorexx.ver > oorexx.ver.incl
echo 'SVN_REVSION=$(SVN_REV)' >> oorexx.ver.incl
cp $(top_srcdir)/oorexx.ver.incl $(distdir)
rm -f oorexx.ver.incl
clean-local: am_config_clean-local
am_config_clean-local:
rm -fr $(PACKAGE)-*.tar.gz
rm -fr $(PACKAGE)-*.zip
rm -fr $(top_srcdir)/rpm
install-exec-local:
echo $(DESTDIR) is destdir
echo $(prefix) is prefix
echo $(install_sh_PROGRAM)
$(install_sh_SCRIPT) rexx.img $(DESTDIR)$(prefix)/bin/rexx.img
if test -z "$(GENCAT)"; then \
echo "No rexx.cat to install"; \
else \
$(install_sh_SCRIPT) rexx.cat $(DESTDIR)$(catdir)/rexx.cat; \
fi
$(install_sh_SCRIPT) $(build_platform_unix_dir)/oorexx-config $(DESTDIR)$(prefix)/bin/oorexx-config
$(install_sh_SCRIPT) $(rxregexp_dir)/rxregexp.cls $(DESTDIR)$(prefix)/bin/rxregexp.cls
$(install_sh_SCRIPT) $(rexutils_dir)/rxftp.cls $(DESTDIR)$(prefix)/bin/rxftp.cls
for a in $(samples_dir)/*.rex; do \
bn=`basename $$a`; \
$(install_sh_SCRIPT) $$a $(DESTDIR)$(prefix)/share/ooRexx/$$bn; \
done;
$(install_sh_SCRIPT) $(samples_dir)/readme $(DESTDIR)$(prefix)/share/ooRexx/readme
package:
./rexx $(top_srcdir)/platform/unix/makepkg.rex @PACKAGETYPE@ $(ORX_MAJOR).$(ORX_MINOR).$(ORX_MOD_LVL) $(target) $(prefix) $(DESTDIR)
rpm: dist
rm -fr $(top_srcdir)/rpm
mkdir rpm
mkdir rpm/BUILD
mkdir rpm/RPMS
mkdir rpm/SOURCES
mkdir rpm/SPECS
mkdir rpm/SRPMS
rpmbuild -ba platform/unix/oorexx.spec < /dev/null;
deb:
rm -fr $(top_srcdir)/debian
mkdir $(top_srcdir)/debian
# Generate a current change log in the required Debian format
# sed -n -e '1,2p' $(top_srcdir)/platform/unix/debian/changelog > ${top_srcdir}/debian/changelog
# sed -e 's/.*/ &/' CHANGES >> ${top_srcdir}/debian/changelog
# sed -e "1,3d; 4,6s/date/`date -R`/" $(top_srcdir)/platform/unix/debian/changelog >> ${top_srcdir}/debian/changelog
# Just copy the rest of the files
cp $(top_srcdir)/platform/unix/debian/changelog ${top_srcdir}/debian
cp $(top_srcdir)/platform/unix/debian/compat ${top_srcdir}/debian
cp $(top_srcdir)/platform/unix/debian/control ${top_srcdir}/debian
cp $(top_srcdir)/platform/unix/debian/copyright ${top_srcdir}/debian
cp $(top_srcdir)/platform/unix/debian/dirs ${top_srcdir}/debian
cp $(top_srcdir)/platform/unix/debian/docs ${top_srcdir}/debian
cp $(top_srcdir)/platform/unix/debian/postinst ${top_srcdir}/debian
cp $(top_srcdir)/platform/unix/debian/postrm ${top_srcdir}/debian
cp $(top_srcdir)/platform/unix/debian/prerm ${top_srcdir}/debian
cp $(top_srcdir)/platform/unix/debian/rules ${top_srcdir}/debian
# Make the binaries
make all
# Install into the debian package directory
fakeroot dh_clean -k
fakeroot dh_installdirs
fakeroot make install DESTDIR=`pwd`/debian/oorexx
# Do the packaging steps
fakeroot dh_installchangelogs CHANGES
fakeroot dh_installdocs
fakeroot dh_installexamples
fakeroot dh_installman
fakeroot dh_link
fakeroot dh_strip
fakeroot dh_compress
fakeroot dh_fixperms
fakeroot dh_installdeb
fakeroot dh_shlibdeps
fakeroot dh_gencontrol
fakeroot dh_md5sums
fakeroot dh_builddeb

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks