-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.devel
2776 lines (2464 loc) · 117 KB
/
Makefile.devel
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
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# This is the developer's -*- Makefile -*-, not the user's Makefile.
# Do not use it unless you know exactly what you are doing!
# Expects GNU make
# Some important programs:
SHELL = /bin/sh
# Don't set MAKE here. Instead use the value of the environment variable 'MAKE'
# or, if that is not set, the name of the current program.
# MAKE = make
CPP = gcc -E
PERL = perl
GROFF = nroff -man
# GROFF = groff -mandoc
RM = rm -f
RMRF = rm -rf
CP = cp -afv
WGET = wget --execute netrc=off --no-verbose --retry-connrefused --timeout=60
GIT = git
# http://ctags.sourceforge.net
CTAGS = ctags
# Shortcut (evaluated by make once only).
CURDIR=$(shell pwd)
# List of targets that do not correspond to files on disk.
.PHONY : all build-prerequisites htmldoc makefiles configures check-configures \
update-ansi-tests update-asdf update-gmalloc potfiles fixperms \
view-man view-html check-sbcl install-gcc \
multibuild-linux-x86 multibuild-darwin-powerpc \
build-aux-update gnulib-imported distrib release pre-release \
upload upload-ssh upload-sf upload-gnu \
src-distrib doc-distrib gnu-distrib tag-release tp-mail
# ==============================================================================
# Targets that create files for use in the distribution. Run at any moment.
all : build-prerequisites makefiles potfiles htmldoc
# ------------------------------------------------------------------------------
# Create files that are necessary for building CLISP.
build-prerequisites : check-configures fixperms \
src/version.h \
src/ari_asm_arm-macro.c \
src/ari_asm_hppa-macro.c \
src/ari_asm_i386-macro.c src/sp_asm_i386-macro.c \
src/sp_asm_m68k-macro.c \
src/ari_asm_mips-macro.c src/sp_asm_mips-macro.c \
src/ari_asm_mips64-macro.c \
src/ari_asm_sparc-macro.c src/sp_asm_sparc-macro.c \
src/ari_asm_sparc64-macro.c src/sp_asm_sparc64-macro.c
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Create the configure files.
MODULES=berkeley-db clx/new-clx dirkey fastcgi i18n oracle pari pcre dbus \
postgresql rawsock readline regexp syscalls zlib gtk2 gdbm libsvm
CONFIG_H_IN = src/config.h.in $(patsubst %,modules/%/config.h.in,$(MODULES))
MOD_CONFIGURES=$(patsubst %,modules/%/configure,$(MODULES))
CONFIGURES=src/configure $(MOD_CONFIGURES)
configures : $(CONFIGURES) $(CONFIG_H_IN) src/gllib/Makefile.in
src/aclocal.m4 : $(wildcard src/m4/*.m4) $(wildcard src/glm4/*.m4) \
$(addsuffix .in,$(CONFIGURES))
$(RM) src/configure.ac
$(CP) src/configure.in src/configure.ac
cat $(addsuffix .in,$(MOD_CONFIGURES)) | \
egrep -v -e 'AC_(INIT|PREREQ|CANONICAL_|GNU_SOURCE|CONFIG_HEADER|OUTPUT)' \
-e 'AC_CONFIG_FILE.*(Makefile|link\.sh)' >> src/configure.ac
cd src && aclocal --output=aclocal.m4 -I $(CURDIR)/src/m4 -I $(CURDIR)/src/glm4
$(RM) src/configure.ac
AUTOCONF_FILES = src/aclocal.m4
AUTOCONF_CACHE = autom4te.cache
$(CONFIGURES) : %/configure : %/configure.in $(AUTOCONF_FILES) version.sh
# Need to remove $(AUTOCONF_CACHE) before running autotonf, otherwise
# changes to version.sh are not taken into account.
cd $* && $(RMRF) $(AUTOCONF_CACHE) && autoconf --include=$(CURDIR)/src
$(CONFIG_H_IN) : %/config.h.in : %/configure.in $(AUTOCONF_FILES)
cd $* && autoheader --include=$(CURDIR)/src
src/gllib/Makefile.in : src/gllib/Makefile.am src/configure.in src/aclocal.m4
cd src && automake --gnits gllib/Makefile && \
sed -i -e 's,$$(top_srcdir)/src/build-aux,$$(top_srcdir)/build-aux,' \
gllib/Makefile.in
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Syntax check of the configure files.
check-configures : configures
set -e; for f in $(CONFIGURES); do bash -x -n $$f; done
$(RMRF) `find . -name $(AUTOCONF_CACHE)`;
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Fix execution permissions of files.
fixperms :
./utils/fix-perms.sh
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Create src/version.h.
src/version.h: version.sh
. ./version.sh ; { \
echo "/* generated by Makefile.devel from version.sh */" ; \
echo "#define PACKAGE_NAME \"GNU CLISP\"" ; \
echo "#define PACKAGE_TARNAME \"clisp\"" ; \
echo "#define PACKAGE_VERSION \"$$VERSION_NUMBER ($$RELEASE_DATE)\"" ; \
echo "#define PACKAGE_STRING \"GNU CLISP $$VERSION_NUMBER ($$RELEASE_DATE)\"" ; \
echo "#define PACKAGE_BUGREPORT \"http://clisp.org/\""; \
} > src/version.h
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Translate Linux assembler syntax to portable (macro-ized) assembler syntax.
src/ari_asm_alpha-macro.c : src/ari_asm_alpha.d src/asm-alpha.sh
cd src \
&& sed -f ../utils/comment5.sed ari_asm_alpha.d | $(CPP) - | grep -v '^#' | grep -v '^ *#line' | sed -e 's,% ,%,g' -e 's,\. ,.,g' > ari_asm_alpha-linux.s \
&& { ./asm-alpha.sh < ari_asm_alpha-linux.s; cat noexecstack.h; } > ari_asm_alpha-macro.c \
&& rm -f ari_asm_alpha-linux.s
src/sp_asm_alpha-macro.c : src/sp_asm_alpha.d src/asm-alpha.sh
cd src \
&& sed -f ../utils/comment5.sed sp_asm_alpha.d | $(CPP) - | grep -v '^#' | grep -v '^ *#line' | sed -e 's,% ,%,g' -e 's,\. ,.,g' > sp_asm_alpha-linux.s \
&& { ./asm-alpha.sh < sp_asm_alpha-linux.s; cat noexecstack.h; } > sp_asm_alpha-macro.c \
&& rm -f sp_asm_alpha-linux.s
src/ari_asm_arm-macro.c : src/ari_asm_arm.d src/asm-arm.sh
cd src \
&& sed -f ../utils/comment5.sed ari_asm_arm.d | $(CPP) - | grep -v '^#' | grep -v '^ *#line' | sed -e 's,% ,%,g' -e 's,\. ,.,g' > ari_asm_arm-linux.s \
&& { echo '#include "asm-arm.h"'; ./asm-arm.sh < ari_asm_arm-linux.s | sed -e 's,%%,#,g'; cat noexecstack-arm.h; } > ari_asm_arm-macro.c \
&& rm -f ari_asm_arm-linux.s
src/sp_asm_arm-macro.c : src/sp_asm_arm.d src/asm-arm.sh
cd src \
&& sed -f ../utils/comment5.sed sp_asm_arm.d | $(CPP) - | grep -v '^#' | grep -v '^ *#line' | sed -e 's,% ,%,g' -e 's,\. ,.,g' > sp_asm_arm-linux.s \
&& { echo '#include "asm-arm.h"'; ./asm-arm.sh < sp_asm_arm-linux.s | sed -e 's,%%,#,g'; cat noexecstack-arm.h; } > sp_asm_arm-macro.c \
&& rm -f sp_asm_arm-linux.s
src/ari_asm_arm64-macro.c : src/ari_asm_arm64.d src/asm-arm.sh
cd src \
&& sed -f ../utils/comment5.sed ari_asm_arm64.d | $(CPP) - | grep -v '^#' | grep -v '^ *#line' | sed -e 's,% ,%,g' -e 's,\. ,.,g' > ari_asm_arm64-linux.s \
&& { echo '#include "asm-arm.h"'; ./asm-arm.sh < ari_asm_arm64-linux.s; cat noexecstack-arm.h; } > ari_asm_arm64-macro.c \
&& rm -f ari_asm_arm64-linux.s
src/sp_asm_arm64-macro.c : src/sp_asm_arm64.d src/asm-arm.sh
cd src \
&& sed -f ../utils/comment5.sed sp_asm_arm64.d | $(CPP) - | grep -v '^#' | grep -v '^ *#line' | sed -e 's,% ,%,g' -e 's,\. ,.,g' > sp_asm_arm64-linux.s \
&& { echo '#include "asm-arm.h"'; ./asm-arm.sh < sp_asm_arm64-linux.s; cat noexecstack-arm.h; } > sp_asm_arm64-macro.c \
&& rm -f sp_asm_arm64-linux.s
src/ari_asm_hppa-macro.c : src/ari_asm_hppa.d src/asm-hppa.sh
cd src \
&& sed -f ../utils/comment5.sed ari_asm_hppa.d | $(CPP) - | grep -v '^#' | grep -v '^ *#line' | sed -e 's,% ,%,g' -e 's,\. ,.,g' > ari_asm_hppa-linux.s \
&& { echo '#include "asm-hppa.h"'; ./asm-hppa.sh < ari_asm_hppa-linux.s; cat noexecstack.h; } > ari_asm_hppa-macro.c \
&& rm -f ari_asm_hppa-linux.s
src/sp_asm_hppa-macro.c : src/sp_asm_hppa.d src/asm-hppa.sh
cd src \
&& sed -f ../utils/comment5.sed sp_asm_hppa.d | $(CPP) - | grep -v '^#' | grep -v '^ *#line' | sed -e 's,% ,%,g' -e 's,\. ,.,g' > sp_asm_hppa-linux.s \
&& { echo '#include "asm-hppa.h"'; ./asm-hppa.sh < sp_asm_hppa-linux.s; cat noexecstack.h; } > sp_asm_hppa-macro.c \
&& rm -f sp_asm_hppa-linux.s
src/ari_asm_hppa64-macro.c : src/ari_asm_hppa64.d src/asm-hppa64.sh
cd src \
&& sed -f ../utils/comment5.sed ari_asm_hppa64.d | $(CPP) - | grep -v '^#' | grep -v '^ *#line' | sed -e 's,% ,%,g' -e 's,\. ,.,g' > ari_asm_hppa64-linux.s \
&& { echo '#include "asm-hppa64.h"'; ./asm-hppa64.sh < ari_asm_hppa64-linux.s; cat noexecstack.h; } > ari_asm_hppa64-macro.c \
&& rm -f ari_asm_hppa64-linux.s
src/sp_asm_hppa64-macro.c : src/sp_asm_hppa64.d src/asm-hppa64.sh
cd src \
&& sed -f ../utils/comment5.sed sp_asm_hppa64.d | $(CPP) - | grep -v '^#' | grep -v '^ *#line' | sed -e 's,% ,%,g' -e 's,\. ,.,g' > sp_asm_hppa64-linux.s \
&& { echo '#include "asm-hppa64.h"'; ./asm-hppa64.sh < sp_asm_hppa64-linux.s; cat noexecstack.h; } > sp_asm_hppa64-macro.c \
&& rm -f sp_asm_hppa64-linux.s
src/ari_asm_i386-macro.c : src/ari_asm_i386.d src/asm-i386.sh
cd src \
&& sed -f ../utils/comment5.sed ari_asm_i386.d | $(CPP) - | grep -v '^#' | grep -v '^ *#line' | sed -e 's,% ,%,g' -e 's,\. ,.,g' > ari_asm_i386-linux.s \
&& { echo '#include "asm-i386.h"'; sed -e '/\.align.*,0x90$$/d' < ari_asm_i386-linux.s | ./asm-i386.sh | sed -e 's,!!,#,g'; cat noexecstack.h; } > ari_asm_i386-macro.c \
&& rm -f ari_asm_i386-linux.s
src/sp_asm_i386-macro.c : src/sp_asm_i386.d src/asm-i386.sh
cd src \
&& sed -f ../utils/comment5.sed sp_asm_i386.d | $(CPP) - | grep -v '^#' | grep -v '^ *#line' | sed -e 's,% ,%,g' -e 's,\. ,.,g' > sp_asm_i386-linux.s \
&& { echo '#include "asm-i386.h"'; sed -e '/\.align.*,0x90$$/d' < sp_asm_i386-linux.s | ./asm-i386.sh | sed -e 's,!!,#,g'; cat noexecstack.h; } > sp_asm_i386-macro.c \
&& rm -f sp_asm_i386-linux.s
src/ari_asm_ia64-macro.c : src/ari_asm_ia64.d
cd src \
&& sed -f ../utils/comment5.sed ari_asm_ia64.d | $(CPP) - | grep -v '^#' | grep -v '^ *#line' | sed -e 's,% ,%,g' -e 's,\. ,.,g' > ari_asm_ia64-linux.s \
&& cat ari_asm_ia64-linux.s noexecstack.h > ari_asm_ia64-macro.c \
&& rm -f ari_asm_ia64-linux.s
src/sp_asm_ia64-macro.c : src/sp_asm_ia64.d
cd src \
&& sed -f ../utils/comment5.sed sp_asm_ia64.d | $(CPP) - | grep -v '^#' | grep -v '^ *#line' | sed -e 's,% ,%,g' -e 's,\. ,.,g' > sp_asm_ia64-linux.s \
&& cat sp_asm_ia64-linux.s noexecstack.h > sp_asm_ia64-macro.c \
&& rm -f sp_asm_ia64-linux.s
src/ari_asm_m68k-macro.c : src/ari_asm_m68k.d src/asm-m68k.sh
cd src \
&& sed -f ../utils/comment5.sed ari_asm_m68k.d | sed -e 's,!,//,g' | $(CPP) - | grep -v '^#' | grep -v '^ *#line' | sed -e 's,% ,%,g' -e 's,\. ,.,g' -e 's,//,!,g' > ari_asm_m68k-linux.s \
&& { echo '#include "asm-m68k.h"'; ./asm-m68k.sh motorola < ari_asm_m68k-linux.s; cat noexecstack.h; } > ari_asm_m68k-macro.c \
&& rm -f ari_asm_m68k-linux.s
src/sp_asm_m68k-macro.c : src/sp_asm_m68k.d src/asm-m68k.sh
cd src \
&& sed -f ../utils/comment5.sed sp_asm_m68k.d | sed -e 's,!,//,g' | $(CPP) - | grep -v '^#' | grep -v '^ *#line' | sed -e 's,% ,%,g' -e 's,\. ,.,g' -e 's,//,!,g' > sp_asm_m68k-linux.s \
&& { echo '#include "asm-m68k.h"'; ./asm-m68k.sh motorola < sp_asm_m68k-linux.s; cat noexecstack.h; } > sp_asm_m68k-macro.c \
&& rm -f sp_asm_m68k-linux.s
src/ari_asm_mips-macro.c : src/ari_asm_mips.d src/asm-mips.sh
cd src \
&& sed -f ../utils/comment5.sed ari_asm_mips.d | $(CPP) - | grep -v '^#' | grep -v '^ *#line' | sed -e 's,% ,%,g' -e 's,\. ,.,g' > ari_asm_mips-linux.s \
&& { echo '#include "asm-mips.h"'; ./asm-mips.sh < ari_asm_mips-linux.s | sed -e 's,%%,#,g'; } > ari_asm_mips-macro.c \
&& rm -f ari_asm_mips-linux.s
src/sp_asm_mips-macro.c : src/sp_asm_mips.d src/asm-mips.sh
cd src \
&& sed -f ../utils/comment5.sed sp_asm_mips.d | $(CPP) - | grep -v '^#' | grep -v '^ *#line' | sed -e 's,% ,%,g' -e 's,\. ,.,g' > sp_asm_mips-linux.s \
&& { echo '#include "asm-mips.h"'; ./asm-mips.sh < sp_asm_mips-linux.s | sed -e 's,%%,#,g'; } > sp_asm_mips-macro.c \
&& rm -f sp_asm_mips-linux.s
src/ari_asm_mipsn32-macro.c : src/ari_asm_mipsn32.d src/asm-mips.sh
cd src \
&& sed -f ../utils/comment5.sed ari_asm_mipsn32.d | $(CPP) - | grep -v '^#' | grep -v '^ *#line' | sed -e 's,% ,%,g' -e 's,\. ,.,g' > ari_asm_mipsn32-linux.s \
&& { echo '#include "asm-mips.h"'; ./asm-mips.sh < ari_asm_mipsn32-linux.s | sed -e 's,%%,#,g'; } > ari_asm_mipsn32-macro.c \
&& rm -f ari_asm_mipsn32-linux.s
src/sp_asm_mipsn32-macro.c : src/sp_asm_mipsn32.d src/asm-mips.sh
cd src \
&& sed -f ../utils/comment5.sed sp_asm_mipsn32.d | $(CPP) - | grep -v '^#' | grep -v '^ *#line' | sed -e 's,% ,%,g' -e 's,\. ,.,g' > sp_asm_mipsn32-linux.s \
&& { echo '#include "asm-mips.h"'; ./asm-mips.sh < sp_asm_mipsn32-linux.s | sed -e 's,%%,#,g'; } > sp_asm_mipsn32-macro.c \
&& rm -f sp_asm_mipsn32-linux.s
src/ari_asm_mips64-macro.c : src/ari_asm_mips64.d src/asm-mips.sh
cd src \
&& sed -f ../utils/comment5.sed ari_asm_mips64.d | $(CPP) - | grep -v '^#' | grep -v '^ *#line' | sed -e 's,% ,%,g' -e 's,\. ,.,g' > ari_asm_mips64-linux.s \
&& { echo '#include "asm-mips.h"'; ./asm-mips.sh < ari_asm_mips64-linux.s | sed -e 's,%%,#,g'; } > ari_asm_mips64-macro.c \
&& rm -f ari_asm_mips64-linux.s
src/sp_asm_mips64-macro.c : src/sp_asm_mips64.d src/asm-mips.sh
cd src \
&& sed -f ../utils/comment5.sed sp_asm_mips64.d | $(CPP) - | grep -v '^#' | grep -v '^ *#line' | sed -e 's,% ,%,g' -e 's,\. ,.,g' > sp_asm_mips64-linux.s \
&& { echo '#include "asm-mips.h"'; ./asm-mips.sh < sp_asm_mips64-linux.s | sed -e 's,%%,#,g'; } > sp_asm_mips64-macro.c \
&& rm -f sp_asm_mips64-linux.s
src/ari_asm_powerpc-macro.c : src/ari_asm_powerpc.d src/asm-powerpc.sh
cd src \
&& sed -f ../utils/comment5.sed ari_asm_powerpc.d | $(CPP) - | grep -v '^#' | grep -v '^ *#line' | sed -e 's,% ,%,g' -e 's,\. ,.,g' > ari_asm_powerpc-linux.s \
&& { ./asm-powerpc.sh < ari_asm_powerpc-linux.s; cat noexecstack.h; } > ari_asm_powerpc-macro.c \
&& rm -f ari_asm_powerpc-linux.s
src/sp_asm_powerpc-macro.c : src/sp_asm_powerpc.d src/asm-powerpc.sh
cd src \
&& sed -f ../utils/comment5.sed sp_asm_powerpc.d | $(CPP) - | grep -v '^#' | grep -v '^ *#line' | sed -e 's,% ,%,g' -e 's,\. ,.,g' > sp_asm_powerpc-linux.s \
&& { ./asm-powerpc.sh < sp_asm_powerpc-linux.s; cat noexecstack.h; } > sp_asm_powerpc-macro.c \
&& rm -f sp_asm_powerpc-linux.s
src/ari_asm_powerpc64-macro.c : src/ari_asm_powerpc64.d src/asm-powerpc.sh
cd src \
&& sed -f ../utils/comment5.sed ari_asm_powerpc64.d | $(CPP) - | grep -v '^#' | grep -v '^ *#line' | sed -e 's,% ,%,g' -e 's,\. ,.,g' > ari_asm_powerpc64-linux.s \
&& { ./asm-powerpc.sh < ari_asm_powerpc64-linux.s; cat noexecstack.h; } > ari_asm_powerpc64-macro.c \
&& rm -f ari_asm_powerpc64-linux.s
src/sp_asm_powerpc64-macro.c : src/sp_asm_powerpc64.d src/asm-powerpc.sh
cd src \
&& sed -f ../utils/comment5.sed sp_asm_powerpc64.d | $(CPP) - | grep -v '^#' | grep -v '^ *#line' | sed -e 's,% ,%,g' -e 's,\. ,.,g' > sp_asm_powerpc64-linux.s \
&& { ./asm-powerpc.sh < sp_asm_powerpc64-linux.s; cat noexecstack.h; } > sp_asm_powerpc64-macro.c \
&& rm -f sp_asm_powerpc64-linux.s
src/ari_asm_s390-macro.c : src/ari_asm_s390.d src/asm-s390.sh
cd src \
&& sed -f ../utils/comment5.sed ari_asm_s390.d | $(CPP) - | grep -v '^#' | grep -v '^ *#line' | sed -e 's,% ,%,g' -e 's,\. ,.,g' > ari_asm_s390-linux.s \
&& { ./asm-s390.sh < ari_asm_s390-linux.s; cat noexecstack.h; } > ari_asm_s390-macro.c \
&& rm -f ari_asm_s390-linux.s
src/sp_asm_s390-macro.c : src/sp_asm_s390.d src/asm-s390.sh
cd src \
&& sed -f ../utils/comment5.sed sp_asm_s390.d | $(CPP) - | grep -v '^#' | grep -v '^ *#line' | sed -e 's,% ,%,g' -e 's,\. ,.,g' > sp_asm_s390-linux.s \
&& { ./asm-s390.sh < sp_asm_s390-linux.s; cat noexecstack.h; } > sp_asm_s390-macro.c \
&& rm -f sp_asm_s390-linux.s
src/ari_asm_s390x-macro.c : src/ari_asm_s390x.d src/asm-s390.sh
cd src \
&& sed -f ../utils/comment5.sed ari_asm_s390x.d | $(CPP) - | grep -v '^#' | grep -v '^ *#line' | sed -e 's,% ,%,g' -e 's,\. ,.,g' > ari_asm_s390x-linux.s \
&& { ./asm-s390.sh < ari_asm_s390x-linux.s; cat noexecstack.h; } > ari_asm_s390x-macro.c \
&& rm -f ari_asm_s390x-linux.s
src/sp_asm_s390x-macro.c : src/sp_asm_s390x.d src/asm-s390.sh
cd src \
&& sed -f ../utils/comment5.sed sp_asm_s390x.d | $(CPP) - | grep -v '^#' | grep -v '^ *#line' | sed -e 's,% ,%,g' -e 's,\. ,.,g' > sp_asm_s390x-linux.s \
&& { ./asm-s390.sh < sp_asm_s390x-linux.s; cat noexecstack.h; } > sp_asm_s390x-macro.c \
&& rm -f sp_asm_s390x-linux.s
src/ari_asm_sparc-macro.c : src/ari_asm_sparc.d src/asm-sparc.sh
cd src \
&& sed -f ../utils/comment5.sed ari_asm_sparc.d | $(CPP) - | grep -v '^#' | grep -v '^ *#line' | sed -e 's,% ,%,g' -e 's,\. ,.,g' > ari_asm_sparc-linux.s \
&& { echo '#include "asm-sparc.h"'; ./asm-sparc.sh < ari_asm_sparc-linux.s | sed -e 's,%%,#,g'; cat noexecstack.h; } > ari_asm_sparc-macro.c \
&& rm -f ari_asm_sparc-linux.s
src/sp_asm_sparc-macro.c : src/sp_asm_sparc.d src/asm-sparc.sh
cd src \
&& sed -f ../utils/comment5.sed sp_asm_sparc.d | $(CPP) - | grep -v '^#' | grep -v '^ *#line' | sed -e 's,% ,%,g' -e 's,\. ,.,g' > sp_asm_sparc-linux.s \
&& { echo '#include "asm-sparc.h"'; ./asm-sparc.sh < sp_asm_sparc-linux.s | sed -e 's,%%,#,g'; cat noexecstack.h; } > sp_asm_sparc-macro.c \
&& rm -f sp_asm_sparc-linux.s
src/ari_asm_sparc64-macro.c : src/ari_asm_sparc64.d src/asm-sparc.sh
cd src \
&& sed -f ../utils/comment5.sed ari_asm_sparc64.d | $(CPP) - | grep -v '^#' | grep -v '^ *#line' | sed -e 's,% ,%,g' -e 's,\. ,.,g' > ari_asm_sparc64-linux.s \
&& { echo '#include "asm-sparc.h"'; ./asm-sparc.sh < ari_asm_sparc64-linux.s | sed -e 's,%%,#,g'; cat noexecstack.h; } > ari_asm_sparc64-macro.c \
&& rm -f ari_asm_sparc64-linux.s
src/sp_asm_sparc64-macro.c : src/sp_asm_sparc64.d src/asm-sparc.sh
cd src \
&& sed -f ../utils/comment5.sed sp_asm_sparc64.d | $(CPP) - | grep -v '^#' | grep -v '^ *#line' | sed -e 's,% ,%,g' -e 's,\. ,.,g' > sp_asm_sparc64-linux.s \
&& { echo '#include "asm-sparc.h"'; ./asm-sparc.sh < sp_asm_sparc64-linux.s | sed -e 's,%%,#,g'; cat noexecstack.h; } > sp_asm_sparc64-macro.c \
&& rm -f sp_asm_sparc64-linux.s
src/ari_asm_x86_64-macro.c : src/ari_asm_x86_64.d src/asm-x86_64.sh
cd src \
&& sed -f ../utils/comment5.sed ari_asm_x86_64.d | $(CPP) - | grep -v '^#' | grep -v '^ *#line' | sed -e 's,% ,%,g' -e 's,\. ,.,g' > ari_asm_x86_64-linux.s \
&& { echo '#include "asm-x86_64.h"'; ./asm-x86_64.sh < ari_asm_x86_64-linux.s; cat noexecstack.h; } > ari_asm_x86_64-macro.c \
&& rm -f ari_asm_x86_64-linux.s
src/sp_asm_x86_64-macro.c : src/sp_asm_x86_64.d src/asm-x86_64.sh
cd src \
&& sed -f ../utils/comment5.sed sp_asm_x86_64.d | $(CPP) - | grep -v '^#' | grep -v '^ *#line' | sed -e 's,% ,%,g' -e 's,\. ,.,g' > sp_asm_x86_64-linux.s \
&& { echo '#include "asm-x86_64.h"'; ./asm-x86_64.sh < sp_asm_x86_64-linux.s; cat noexecstack.h; } > sp_asm_x86_64-macro.c \
&& rm -f sp_asm_x86_64-linux.s
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# ------------------------------------------------------------------------------
# Create Makefiles for Windows platform.
MAKEMAKE_TMP=src/makemake
makefiles : win32msvc/makefile.msvc7 win32msvc/makefile.msvc6
$(RM) $(MAKEMAKE_TMP)
win32msvc/makefile.msvc6 : $(MAKEMAKE_TMP)
cd src && ./makemake --with-dynamic-ffi --without-dynamic-modules \
win32msvc msvc6 > ../win32msvc/makefile.msvc6
win32msvc/makefile.msvc7 : $(MAKEMAKE_TMP)
cd src && ./makemake --with-dynamic-ffi --without-dynamic-modules \
win32msvc msvc7 > ../win32msvc/makefile.msvc7
$(MAKEMAKE_TMP) : src/makemake.in version.sh
. ./version.sh; \
sed -e "s/@PACKAGE_VERSION@/$${VERSION_NUMBER}/g" \
-e "s/@CLISP_DECOLONIZE@/echo $$x/" src/makemake.in \
-e "s/@module_configure_flags@/--disable-option-checking/" \
-e "s,@SHELL@,/bin/sh," > $(MAKEMAKE_TMP)
chmod a+x $(MAKEMAKE_TMP)
# ------------------------------------------------------------------------------
# Internationalization: Create the POT and PO files.
# Requires a build in the 'build' directory.
CLISP=$(CURDIR)/build/clisp
potfiles :
cd src/po && CLISP='$(CLISP)' $(MAKE) -f Makefile.devel && $(MAKE) -f Makefile.devel clean
# ------------------------------------------------------------------------------
# Regenerate the HTML formatted documentation from XML (DocBook) format.
htmldoc:
make -C doc all html
# ------------------------------------------------------------------------------
# ==============================================================================
# Targets that create files for use in the distribution. Run only occasionally.
# ------------------------------------------------------------------------------
# Fetch the most recent gnulib.
GNULIB_CVS_ROOT = :pserver:[email protected]:/gnulib.git
GNULIB_CVS_REPOSITORY = HEAD
GNULIB_GIT = git://git.savannah.gnu.org/gnulib.git
GNULIB_CHECKOUT := gnulib
update-gnulib:
if test -d $(GNULIB_CHECKOUT); then \
cd $(GNULIB_CHECKOUT) ; \
if test -d .git; then git pull; else cvs update -d -P; fi \
else \
if git --version >/dev/null 2>&1; then \
git clone "$(GNULIB_GIT)" $(GNULIB_CHECKOUT) ; \
else cvs -d "$(GNULIB_CVS_ROOT)" checkout -d $(GNULIB_CHECKOUT) $(GNULIB_CVS_REPOSITORY); fi \
fi
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Regenerate all files created from gnulib.
GNULIB_TOOL = $(GNULIB_CHECKOUT)/gnulib-tool --import \
--no-vc-files --no-libtool --no-changelog --aux-dir=src/build-aux
GNULIB_CORE = no-c++ stdint stdbool havelib gettext localcharset stdlib \
unistd alloca-opt environ lstat stat readlink sys_uio sys_select \
mkfifo mknod mkstemp mkdtemp getloadavg bind accept listen recv send \
getsockopt shutdown connect socket setsockopt getsockname getpeername \
uniwidth/width streq uniname/uniname unitypes link-follow close select \
host-cpu-c-abi socklen sockets fd-hook setenv unsetenv errno ioctl \
arpa_inet netinet_in inet_ntop inet_pton socketlib strerror_r-posix \
nocrash libsigsegv gnu-make gettimeofday getpagesize sys_time sys_wait \
vma-iter c-strtod noreturn libunistring-optional crypto/sha1
GNULIB_SYSCALLS = mktime strftime strptime strverscmp uname fnmatch-gnu
GNULIB_IMPORTS = $(GNULIB_CORE) $(GNULIB_SYSCALLS) regex recvfrom sendto
GNULIB_COMMON = $(GNULIB_CORE) $(GNULIB_MODULES)
GNULIB_IMPORTED_LOG = /tmp/gnulib-imported.log
gnulib-imported : update-gnulib force
$(RMRF) src/glm4 src/gllib
$(RM) configure.ac; ln -sv src/configure.in configure.ac
$(RM) src/glm4/gnulib-cache.m4 $(GNULIB_IMPORTED_LOG)
$(GNULIB_TOOL) --source-base=src/gllib --m4-base=src/glm4 \
--avoid=xalloc-die \
$(GNULIB_IMPORTS) 2>&1 | tee -a $(GNULIB_IMPORTED_LOG)
$(RM) configure.ac src/gl*/*~
cd src/glm4; \
for f in *.m4; do \
if test -f ../m4/$$f; then \
echo == $$f; \
if cmp $$f ../m4/$$f; then \
cd ../m4; $(GIT) rm -f $$f; cd ../glm4; \
fi; \
fi; \
done
$(GIT) checkout -- src/gllib/Makefile.in src/gllib/README src/glm4/README
$(GIT) status --short | grep -v '^ M '; test $$? = 1
@echo the import log is in $(GNULIB_IMPORTED_LOG)
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Fetch and regenerate other build infrastructure files.
# it is important to get ltmain.sh and libtool.m4 from the same version of
# libtool. Don't rely on what's installed in /usr/share or similar.
LIBTOOL_VERSION = 2.4.6
LIBTOOL_SOURCE_FILE = libtool-$(LIBTOOL_VERSION).tar.gz
LIBTOOL_SOURCE_URL = http://ftp.gnu.org/gnu/libtool/$(LIBTOOL_SOURCE_FILE)
# an alternative way to update libtool files is "cd src; libtoolize --copy"
AUTOMAKE_VERSION = 1.16.1
AUTOMAKE_GIT = http://git.savannah.gnu.org/cgit/automake.git/plain/lib/
GTK_GIT_ROOT = https://git.gnome.org/browse/gtk+/plain
GNULIB_AUX=config.guess config.rpath config.sub
# it is important not to have "*.m4" targets with ": force" dependencies
# because otherwise every make will rebuild all configures
build-aux-update : update-gnulib force
for f in $(GNULIB_AUX); do \
$(CP) $(GNULIB_CHECKOUT)/build-aux/$$f src/build-aux; \
done
for f in ar-lib compile depcomp install-sh missing ylwrap; do \
$(WGET) -O src/build-aux/$$f $(AUTOMAKE_GIT)$$f?v$(AUTOMAKE_VERSION); \
done
chmod +x src/build-aux/compile src/build-aux/ylwrap
$(RMRF) libtool-$(LIBTOOL_VERSION) $(LIBTOOL_SOURCE_FILE)
test -f $(LIBTOOL_SOURCE_FILE) || $(WGET) $(LIBTOOL_SOURCE_URL)
$(RMRF) libtool-$(LIBTOOL_VERSION)
gunzip -c < $(LIBTOOL_SOURCE_FILE) | tar xf -
$(CP) libtool-$(LIBTOOL_VERSION)/build-aux/ltmain.sh src/build-aux/ltmain.sh
chmod +x src/build-aux/ltmain.sh
for f in libtool ltoptions ltsugar ltversion lt~obsolete; do \
$(CP) libtool-$(LIBTOOL_VERSION)/m4/$$f.m4 src/m4/; \
done
$(RMRF) libtool-$(LIBTOOL_VERSION) $(LIBTOOL_SOURCE_FILE)
cd src/m4; $(RM) gtk-2.0.m4; $(WGET) -O gtk-2.0.m4 '$(GTK_GIT_ROOT)/m4macros/gtk-2.0.m4?h=gtk-2-24'
cd src/m4; $(RM) gtk-3.0.m4; $(WGET) -O gtk-3.0.m4 '$(GTK_GIT_ROOT)/m4macros/gtk-3.0.m4?h=gtk-3-22'
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# ------------------------------------------------------------------------------
GMALLOC_URL = http://git.savannah.gnu.org/cgit/emacs.git/plain/src/gmalloc.c
update-gmalloc : force
$(WGET) -O src/gmalloc.c $(GMALLOC_URL)
# ------------------------------------------------------------------------------
ASDF_URL = https://common-lisp.net/project/asdf/asdf.lisp
update-asdf : force
$(WGET) -O modules/asdf/asdf.lisp $(ASDF_URL)
# ------------------------------------------------------------------------------
# ==============================================================================
# Targets to verify the quality of the distribution.
# ------------------------------------------------------------------------------
# Fetch/update the ANSI CL compliance test suite.
all : update-ansi-tests
ANSITESTS_REPO = https://gitlab.common-lisp.net/ansi-test/ansi-test.git
update-ansi-tests:
if test -d ansi-tests; then \
cd ansi-tests && \
git pull; \
else \
git clone $(ANSITESTS_REPO) ansi-tests; \
fi
# ------------------------------------------------------------------------------
# Quality assurance of generated man page documentation.
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
view-man :
grep -v '^#[ie]' doc/_clisp.1 | $(GROFF) -Tascii | less
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# all possible browsers, some might not be present, but we do not care
# list GUI first because they put themselves into background
BROWSERS=firefox mozilla netscape opera links lynx
view-html :
grep -v '^#[ie]' doc/_clisp.html > /tmp/clisp.html
for b in $(BROWSERS); do $$b /tmp/clisp.html; done
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# ------------------------------------------------------------------------------
# Build and test all essential memory models.
# Options to pass to configure.
MULTIBUILD_MODULES = --with-module=asdf --with-module=rawsock
MULTIBUILD_EXTRAS =
MULTIBUILD_OPTIONS = $(MULTIBUILD_EXTRAS) $(MULTIBUILD_MODULES)
# Compiler options to pass as part of CFLAGS.
MULTIBUILD_CFLAGS = -g
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Build and test various configurations, in order to fix bootstrapping problems
# when porting to a 32-bit machine.
#
# Prerequisite: Set the environment variable MULTIBUILD_32_OPTIONS, e.g.
# MULTIBUILD_32_OPTIONS="--with-libsigsegv-prefix=/arch/x86-linux/gnu-inst-libsigsegv/2.11 --with-libffcall-prefix=/arch/x86-linux/gnu-inst-libffcall/1.13pre"
# To build on a 64-bit machine where 64-bit compilation is the default,
# also set the environment variables CC and CXX, for example
# CC="gcc -m32" CXX="g++ -m32"
#
# Use with "make -k", then collects the build-porting32-*/cbcstep*.log.
# Build various configurations. Assumes $CC is GCC and $CXX is GNU g++.
multibuild-porting32-gcc: \
build-porting32-gcc-portability \
build-porting32-gcc-safety3 \
build-porting32-gcc-heapcodes \
build-porting32-gcc-one_free_bit_heapcodes-malloc \
build-porting32-gcc-one_free_bit_heapcodes-trivialmap \
build-porting32-gcc-kernelvoid32_heapcodes \
build-porting32-gcc-heapcodes-spvw_pages \
build-porting32-gcc-typecodes-spvw_pure_pages \
build-porting32-gcc-typecodes-spvw_mixed_pages \
build-porting32-gcc-heapcodes-spvw_mixed_blocks \
build-porting32-gcc-typecodes-spvw_mixed_blocks-malloc \
build-porting32-gcc-typecodes-spvw_mixed_blocks-trivialmap \
build-porting32-gcc-spvw_pure_blocks \
build-porting32-gcc-wide \
build-porting32-gcc-limited_memory \
build-porting32-gcc-old_gc \
build-porting32-gcc-multithread_gc \
build-porting32-gcc-generational_gc-old_gc \
build-porting32-gcc-generational_gc-multithread_gc \
build-porting32-gcc-safety0 \
build-porting32-gcc-safety0-optimized \
build-porting32-gcc-debug_gcsafety
# A build that favours portability over optimization.
build-porting32-gcc-portability:
$(RMRF) $@
CFLAGS="-O $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --enable-portability $@
# Nearly the default. Just with some low-cost safety.
build-porting32-gcc-safety3:
$(RMRF) $@
CFLAGS="-O $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ARI_ASM -DNO_SP_ASM -DSAFETY=3" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
# Force HEAPCODES.
build-porting32-gcc-heapcodes:
$(RMRF) $@
CFLAGS="-O $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ARI_ASM -DNO_SP_ASM -DSAFETY=3 -DHEAPCODES" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
# Force ONE_FREE_BIT_HEAPCODES (no use of mmap).
build-porting32-gcc-one_free_bit_heapcodes-malloc:
$(RMRF) $@
CFLAGS="-O $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ARI_ASM -DNO_SP_ASM -DSAFETY=3 -DONE_FREE_BIT_HEAPCODES -DNO_TRIVIALMAP" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
# Force ONE_FREE_BIT_HEAPCODES with TRIVIALMAP_MEMORY.
build-porting32-gcc-one_free_bit_heapcodes-trivialmap:
$(RMRF) $@
CFLAGS="-O $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ASM -DNO_ARI_ASM -DNO_SP_ASM -DNO_FAST_DISPATCH -DONE_FREE_BIT_HEAPCODES -DTRIVIALMAP_MEMORY" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
# Force KERNELVOID32_HEAPCODES.
build-porting32-gcc-kernelvoid32_heapcodes:
$(RMRF) $@
CFLAGS="-O $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ASM -DNO_ARI_ASM -DNO_SP_ASM -DNO_FAST_DISPATCH -DKERNELVOID32_HEAPCODES" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
# Force HEAPCODES with SPVW_PAGES (no use of mmap).
build-porting32-gcc-heapcodes-spvw_pages:
$(RMRF) $@
CFLAGS="-O $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ARI_ASM -DNO_SP_ASM -DSAFETY=3 -DHEAPCODES -DNO_SINGLEMAP -DNO_TRIVIALMAP" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
# Force TYPECODES with SPVW_PURE_PAGES (no use of mmap).
build-porting32-gcc-typecodes-spvw_pure_pages:
$(RMRF) $@
CFLAGS="-O $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ARI_ASM -DNO_SP_ASM -DSAFETY=3 -DTYPECODES -DNO_SINGLEMAP -DNO_TRIVIALMAP -DPREFER_PURE_PAGES" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
# Force TYPECODES with SPVW_MIXED_PAGES (no use of mmap).
build-porting32-gcc-typecodes-spvw_mixed_pages:
$(RMRF) $@
CFLAGS="-O $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ARI_ASM -DNO_SP_ASM -DSAFETY=3 -DTYPECODES -DNO_SINGLEMAP -DNO_TRIVIALMAP" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
# Force HEAPCODES with SPVW_MIXED_BLOCKS.
# Possible further options: -DCONS_HEAP_GROWS_UP or -DCONS_HEAP_GROWS_DOWN.
build-porting32-gcc-heapcodes-spvw_mixed_blocks:
$(RMRF) $@
CFLAGS="-O $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ARI_ASM -DNO_SP_ASM -DSAFETY=3 -DHEAPCODES -DNO_SINGLEMAP" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
# Force TYPECODES with SPVW_MIXED_BLOCKS (no use of mmap).
# Possible further options: -DCONS_HEAP_GROWS_UP or -DCONS_HEAP_GROWS_DOWN.
build-porting32-gcc-typecodes-spvw_mixed_blocks-malloc:
$(RMRF) $@
CFLAGS="-O $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ARI_ASM -DNO_SP_ASM -DSAFETY=3 -DTYPECODES -DNO_SINGLEMAP -DNO_TRIVIALMAP -DNO_VIRTUAL_MEMORY" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
# Force TYPECODES with SPVW_MIXED_BLOCKS with TRIVIALMAP_MEMORY.
# Possible further options: -DCONS_HEAP_GROWS_UP or -DCONS_HEAP_GROWS_DOWN.
build-porting32-gcc-typecodes-spvw_mixed_blocks-trivialmap:
$(RMRF) $@
CFLAGS="-O $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ASM -DNO_ARI_ASM -DNO_SP_ASM -DNO_FAST_DISPATCH -DTYPECODES -DNO_SINGLEMAP -DTRIVIALMAP_MEMORY" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
# Force SPVW_PURE_BLOCKS (equivalent to SINGLEMAP_MEMORY).
build-porting32-gcc-spvw_pure_blocks:
$(RMRF) $@
CFLAGS="-O $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ASM -DNO_ARI_ASM -DNO_SP_ASM -DNO_FAST_DISPATCH -DTYPECODES -DSINGLEMAP_MEMORY" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
# Force WIDE_SOFT.
build-porting32-gcc-wide:
$(RMRF) $@
CFLAGS="-O $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ARI_ASM -DNO_SP_ASM -DSAFETY=3 -DWIDE" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
# Force SPVW_MIXED_BLOCKS_OPPOSITE with limited memory size (honor -m option),
build-porting32-gcc-limited_memory:
$(RMRF) $@
CFLAGS="-O $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ARI_ASM -DNO_SP_ASM -DSAFETY=3 -DNO_VIRTUAL_MEMORY -DNO_ADDRESS_SPACE_ASSUMPTIONS" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
build-porting32-gcc-old_gc:
$(RMRF) $@
CFLAGS="-O $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ARI_ASM -DNO_SP_ASM -DSAFETY=3 -DNO_GENERATIONAL_GC -DOLD_GC" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
build-porting32-gcc-multithread_gc:
$(RMRF) $@
CFLAGS="-O $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ARI_ASM -DNO_SP_ASM -DSAFETY=3 -DNO_GENERATIONAL_GC" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
build-porting32-gcc-generational_gc-old_gc:
$(RMRF) $@
CFLAGS="-O $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ARI_ASM -DNO_SP_ASM -DSAFETY=3 -DGENERATIONAL_GC -DOLD_GC" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
build-porting32-gcc-generational_gc-multithread_gc:
$(RMRF) $@
CFLAGS="-O $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ARI_ASM -DNO_SP_ASM -DSAFETY=3 -DGENERATIONAL_GC" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
build-porting32-gcc-safety0:
$(RMRF) $@
CFLAGS="-O $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
build-porting32-gcc-safety0-optimized:
$(RMRF) $@
CFLAGS="-O2 -fexpensive-optimizations $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
build-porting32-gcc-debug_gcsafety:
$(RMRF) $@
ulimit -c unlimited; \
CC="$${CXX-g++}" \
CFLAGS="$(MULTIBUILD_CFLAGS)" \
CPPFLAGS="" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability --with-debug $@
# This build is only useful to test the assembly-language code ari*.d.
build-porting32-gcc-ari_asm:
$(RMRF) $@
CFLAGS="-O $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ASM" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
# This build is only useful to test the assembly-language code ari*.d.
build-porting32-gcc-debug_ari_asm:
$(RMRF) $@
CFLAGS="-O $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ASM -DDEBUG_ARI_ASM" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
# This build is only useful to test the GCC asm macros in arilev0.d.
build-porting32-gcc-arilev0-asm:
$(RMRF) $@
CFLAGS="-O $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ARI_ASM" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
# Build various configurations. Assumes $CC is not GCC.
# Put the optimization options into $CC.
multibuild-porting32-cc: \
build-porting32-cc-portability \
build-porting32-cc-safety3 \
build-porting32-cc-heapcodes \
build-porting32-cc-one_free_bit_heapcodes-malloc \
build-porting32-cc-one_free_bit_heapcodes-trivialmap \
build-porting32-cc-kernelvoid32_heapcodes \
build-porting32-cc-heapcodes-spvw_pages \
build-porting32-cc-typecodes-spvw_pure_pages \
build-porting32-cc-typecodes-spvw_mixed_pages \
build-porting32-cc-heapcodes-spvw_mixed_blocks \
build-porting32-cc-typecodes-spvw_mixed_blocks-malloc \
build-porting32-cc-typecodes-spvw_mixed_blocks-trivialmap \
build-porting32-cc-spvw_pure_blocks \
build-porting32-cc-wide \
build-porting32-cc-limited_memory \
build-porting32-cc-old_gc \
build-porting32-cc-multithread_gc \
build-porting32-cc-generational_gc-old_gc \
build-porting32-cc-generational_gc-multithread_gc \
build-porting32-cc-safety0
# A build that favours portability over optimization.
build-porting32-cc-portability:
$(RMRF) $@
CFLAGS="$(MULTIBUILD_CFLAGS)" \
CPPFLAGS="" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --enable-portability $@
# Nearly the default. Just with some low-cost safety.
build-porting32-cc-safety3:
$(RMRF) $@
CFLAGS="$(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ARI_ASM -DNO_SP_ASM -DSAFETY=3" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
# Force HEAPCODES.
build-porting32-cc-heapcodes:
$(RMRF) $@
CFLAGS="$(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ARI_ASM -DNO_SP_ASM -DSAFETY=3 -DHEAPCODES" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
# Force ONE_FREE_BIT_HEAPCODES (no use of mmap).
build-porting32-cc-one_free_bit_heapcodes-malloc:
$(RMRF) $@
CFLAGS="$(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ARI_ASM -DNO_SP_ASM -DSAFETY=3 -DONE_FREE_BIT_HEAPCODES -DNO_TRIVIALMAP" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
# Force ONE_FREE_BIT_HEAPCODES with TRIVIALMAP_MEMORY.
build-porting32-cc-one_free_bit_heapcodes-trivialmap:
$(RMRF) $@
CFLAGS="$(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ASM -DNO_ARI_ASM -DNO_SP_ASM -DNO_FAST_DISPATCH -DONE_FREE_BIT_HEAPCODES -DTRIVIALMAP_MEMORY" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
# Force KERNELVOID32_HEAPCODES.
build-porting32-cc-kernelvoid32_heapcodes:
$(RMRF) $@
CFLAGS="$(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ASM -DNO_ARI_ASM -DNO_SP_ASM -DNO_FAST_DISPATCH -DKERNELVOID32_HEAPCODES" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
# Force HEAPCODES with SPVW_PAGES (no use of mmap).
build-porting32-cc-heapcodes-spvw_pages:
$(RMRF) $@
CFLAGS="$(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ARI_ASM -DNO_SP_ASM -DSAFETY=3 -DHEAPCODES -DNO_SINGLEMAP -DNO_TRIVIALMAP" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
# Force TYPECODES with SPVW_PURE_PAGES (no use of mmap).
build-porting32-cc-typecodes-spvw_pure_pages:
$(RMRF) $@
CFLAGS="$(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ARI_ASM -DNO_SP_ASM -DSAFETY=3 -DTYPECODES -DNO_SINGLEMAP -DNO_TRIVIALMAP -DPREFER_PURE_PAGES" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
# Force TYPECODES with SPVW_MIXED_PAGES (no use of mmap).
build-porting32-cc-typecodes-spvw_mixed_pages:
$(RMRF) $@
CFLAGS="$(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ARI_ASM -DNO_SP_ASM -DSAFETY=3 -DTYPECODES -DNO_SINGLEMAP -DNO_TRIVIALMAP" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
# Force HEAPCODES with SPVW_MIXED_BLOCKS.
# Possible further options: -DCONS_HEAP_GROWS_UP or -DCONS_HEAP_GROWS_DOWN.
build-porting32-cc-heapcodes-spvw_mixed_blocks:
$(RMRF) $@
CFLAGS="$(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ARI_ASM -DNO_SP_ASM -DSAFETY=3 -DHEAPCODES -DNO_SINGLEMAP" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
# Force TYPECODES with SPVW_MIXED_BLOCKS (no use of mmap).
# Possible further options: -DCONS_HEAP_GROWS_UP or -DCONS_HEAP_GROWS_DOWN.
build-porting32-cc-typecodes-spvw_mixed_blocks-malloc:
$(RMRF) $@
CFLAGS="$(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ARI_ASM -DNO_SP_ASM -DSAFETY=3 -DTYPECODES -DNO_SINGLEMAP -DNO_TRIVIALMAP -DNO_VIRTUAL_MEMORY" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
# Force TYPECODES with SPVW_MIXED_BLOCKS with TRIVIALMAP_MEMORY.
# Possible further options: -DCONS_HEAP_GROWS_UP or -DCONS_HEAP_GROWS_DOWN.
build-porting32-cc-typecodes-spvw_mixed_blocks-trivialmap:
$(RMRF) $@
CFLAGS="$(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ASM -DNO_ARI_ASM -DNO_SP_ASM -DNO_FAST_DISPATCH -DTYPECODES -DNO_SINGLEMAP -DTRIVIALMAP_MEMORY" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
# Force SPVW_PURE_BLOCKS (equivalent to SINGLEMAP_MEMORY).
build-porting32-cc-spvw_pure_blocks:
$(RMRF) $@
CFLAGS="$(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ASM -DNO_ARI_ASM -DNO_SP_ASM -DNO_FAST_DISPATCH -DTYPECODES -DSINGLEMAP_MEMORY" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
# Force WIDE_SOFT.
build-porting32-cc-wide:
$(RMRF) $@
CFLAGS="$(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ARI_ASM -DNO_SP_ASM -DSAFETY=3 -DWIDE" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) $@
# Force SPVW_MIXED_BLOCKS_OPPOSITE with limited memory size (honor -m option),
build-porting32-cc-limited_memory:
$(RMRF) $@
CFLAGS="$(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ARI_ASM -DNO_SP_ASM -DSAFETY=3 -DNO_VIRTUAL_MEMORY -DNO_ADDRESS_SPACE_ASSUMPTIONS" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
build-porting32-cc-old_gc:
$(RMRF) $@
CFLAGS="$(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ARI_ASM -DNO_SP_ASM -DSAFETY=3 -DNO_GENERATIONAL_GC -DOLD_GC" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
build-porting32-cc-multithread_gc:
$(RMRF) $@
CFLAGS="$(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ARI_ASM -DNO_SP_ASM -DSAFETY=3 -DNO_GENERATIONAL_GC" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
build-porting32-cc-generational_gc-old_gc:
$(RMRF) $@
CFLAGS="$(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ARI_ASM -DNO_SP_ASM -DSAFETY=3 -DGENERATIONAL_GC -DOLD_GC" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
build-porting32-cc-generational_gc-multithread_gc:
$(RMRF) $@
CFLAGS="$(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ARI_ASM -DNO_SP_ASM -DSAFETY=3 -DGENERATIONAL_GC" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
build-porting32-cc-safety0:
$(RMRF) $@
CFLAGS="$(MULTIBUILD_CFLAGS)" \
CPPFLAGS="" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
# This build is only useful to test the assembly-language code ari*.d.
build-porting32-cc-ari_asm:
$(RMRF) $@
CFLAGS="$(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ASM" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
# This build is only useful to test the assembly-language code ari*.d.
build-porting32-cc-debug_ari_asm:
$(RMRF) $@
CFLAGS="$(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ASM -DDEBUG_ARI_ASM" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_32_OPTIONS) --disable-portability $@
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Build and test various configurations, in order to fix bootstrapping problems
# when porting to a 64-bit machine.
#
# Prerequisite: Set the environment variable MULTIBUILD_64_OPTIONS, e.g.
# MULTIBUILD_64_OPTIONS="--with-libsigsegv-prefix=/arch/x86_64-linux-gnu/gnu-inst-libsigsegv/2.11 --with-libffcall-prefix=/arch/x86_64-linux-gnu/gnu-inst-libffcall/1.13pre"
# To build on a 64-bit machine where 32-bit compilation is the default,
# also set the environment variables CC and CXX, for example
# CC="gcc -m64" CXX="g++ -m64"
#
# Use with "make -k", then collects the build-porting64-*/cbcstep*.log.
# Build various configurations. Assumes $CC is GCC and $CXX is GNU g++.
multibuild-porting64-gcc: \
build-porting64-gcc-portability \
build-porting64-gcc-safety3 \
build-porting64-gcc-heapcodes \
build-porting64-gcc-one_free_bit_heapcodes-malloc \
build-porting64-gcc-one_free_bit_heapcodes-trivialmap \
build-porting64-gcc-generic64_heapcodes \
build-porting64-gcc-heapcodes-spvw_pages \
build-porting64-gcc-typecodes-spvw_pure_pages \
build-porting64-gcc-typecodes-spvw_mixed_pages \
build-porting64-gcc-heapcodes-spvw_mixed_blocks \
build-porting64-gcc-typecodes-spvw_mixed_blocks-malloc \
build-porting64-gcc-typecodes-spvw_mixed_blocks-trivialmap \
build-porting64-gcc-spvw_pure_blocks \
build-porting64-gcc-limited_memory \
build-porting64-gcc-old_gc \
build-porting64-gcc-multithread_gc \
build-porting64-gcc-generational_gc-old_gc \
build-porting64-gcc-generational_gc-multithread_gc \
build-porting64-gcc-safety0 \
build-porting64-gcc-safety0-optimized \
build-porting64-gcc-debug_gcsafety
# A build that favours portability over optimization.
build-porting64-gcc-portability:
$(RMRF) $@
CFLAGS="-O $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_64_OPTIONS) --enable-portability $@
# Nearly the default. Just with some low-cost safety.
build-porting64-gcc-safety3:
$(RMRF) $@
CFLAGS="-O $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ARI_ASM -DNO_SP_ASM -DSAFETY=3" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_64_OPTIONS) --disable-portability $@
# Force HEAPCODES.
build-porting64-gcc-heapcodes:
$(RMRF) $@
CFLAGS="-O $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ARI_ASM -DNO_SP_ASM -DSAFETY=3 -DHEAPCODES" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_64_OPTIONS) --disable-portability $@
# Force ONE_FREE_BIT_HEAPCODES (no use of mmap).
build-porting64-gcc-one_free_bit_heapcodes-malloc:
$(RMRF) $@
CFLAGS="-O $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ARI_ASM -DNO_SP_ASM -DSAFETY=3 -DONE_FREE_BIT_HEAPCODES -DNO_TRIVIALMAP" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_64_OPTIONS) --disable-portability $@
# Force ONE_FREE_BIT_HEAPCODES with TRIVIALMAP_MEMORY.
build-porting64-gcc-one_free_bit_heapcodes-trivialmap:
$(RMRF) $@
CFLAGS="-O $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ASM -DNO_ARI_ASM -DNO_SP_ASM -DNO_FAST_DISPATCH -DONE_FREE_BIT_HEAPCODES -DTRIVIALMAP_MEMORY" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_64_OPTIONS) --disable-portability $@
# Force GENERIC64_HEAPCODES.
build-porting64-gcc-generic64_heapcodes:
$(RMRF) $@
CFLAGS="-O $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ASM -DNO_ARI_ASM -DNO_SP_ASM -DNO_FAST_DISPATCH -DGENERIC64_HEAPCODES" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_64_OPTIONS) --disable-portability $@
# Force HEAPCODES with SPVW_PAGES (no use of mmap).
build-porting64-gcc-heapcodes-spvw_pages:
$(RMRF) $@
CFLAGS="-O $(MULTIBUILD_CFLAGS)" \
CPPFLAGS="-DNO_ARI_ASM -DNO_SP_ASM -DSAFETY=3 -DHEAPCODES -DNO_SINGLEMAP -DNO_TRIVIALMAP" \
./configure --cbcx $(MULTIBUILD_OPTIONS) $(MULTIBUILD_64_OPTIONS) --disable-portability $@
# Force TYPECODES with SPVW_PURE_PAGES (no use of mmap).
build-porting64-gcc-typecodes-spvw_pure_pages:
$(RMRF) $@