-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.in
1543 lines (1270 loc) · 57.1 KB
/
Makefile.in
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
#Makefile for Gforth
#Authors: Bernd Paysan, Anton Ertl, Jens Wilke, David Kühling, Neal Crook, Gerald Wodni, Darren Bane
#Copyright (C) 1995,1996,1997,1998,2000,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022 Free Software Foundation, Inc.
#This file is part of Gforth.
#Gforth is free software; you can redistribute it and/or
#modify it under the terms of the GNU General Public License
#as published by the Free Software Foundation, either version 3
#of the License, or (at your option) any later version.
#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#GNU General Public License for more details.
#You should have received a copy of the GNU General Public License
#along with this program. If not, see http://www.gnu.org/licenses/.
# To change the values of `make' variables: instead of editing Makefiles,
# (1) if the variable is set in `config.status', edit `config.status'
# (which will cause the Makefiles to be regenerated when you run `make');
# (2) otherwise, pass the desired values on the `make' command line.
# Warning:
# For some stupid reason setting SHELL to bash does not work properly with
# DOS. If you want to use shell-specific things that must run with DOS make
# an external batch file and call it with bash (see versions.bsh).
# ------------- gforth version
VERSION = @PACKAGE_VERSION@
DOSVERSION=`echo $(VERSION)|sed 's/\.//g'|sed 's/-.*//g'`
#release version (between releases this is the prospective next release)
RVERSION = 1.0
# ------------- System specific variables
machine=@machine@
kernel_fi=@kernel_fi@
kernel_anti_dependence=@kernel_anti_dependence@
EXE=@EXEEXT@
# this is the type of machine
# used to extend the include path with ./arch/$machine
# so we can include a machine specific
# machine.h file
PATHSEP = @PATHSEP@
EC = @EC@
ARCH= @ARCH@
EXT = $(EC)$(EXE)
LA = $(EC).la
EXTRAS= @EXTRAS@
HOST= @HOSTPREFIX@
EXTRAPREFIX= @EXTRAPREFIX@
FAST= @FAST@
PACKAGE_TARNAME= @PACKAGE_TARNAME@
# ------------ Install Directories
package = $(DESTDIR)
VPATH = @srcdir@:.
prefix = @prefix@
docdir= @docdir@
exec_prefix = @exec_prefix@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = @top_builddir@
bindir = $(package)@bindir@
#read-only architecture-independent files
datarootdir = @datarootdir@
datadir = $(package)@datadir@
#read-only architecture-dependent non-ascii files
libdir = $(package)@libdir@
libccdir = $(subst $(package),,$(libdir)/gforth/$(VERSION)/$(machine)/libcc-named)
buildccdir = lib/gforth/$(VERSION)/$(machine)/libcc-named
includedir = $(package)@includedir@
infodir = $(package)@infodir@
htmldir = $(package)@htmldir@
pdfdir = $(package)@pdfdir@
mandir = $(package)@mandir@
man1dir= $(mandir)/man1
man1ext= .1
#older emacses have their site-lisp in $(libdir)/emacs/
lispdir=@lispdir@
emacssitestartdir=@elispstartdir@
siteforthdir=$(libdir)/gforth/site-forth
# ------------- Utility programs
SHELL = /bin/sh
RM = rm
RMTREE = rm -rf
CP = cp -pf
MV = mv
TOUCH = touch -c
TAR = tar cf -
MKDIR = mkdir
MKDIR_P = @MKDIR_P@
TIMEOUT = @TIMEOUT@ @TIMEOUT_ARGS@
UTF8 = env LC_ALL=C.UTF-8
ACLOCAL_AMFLAGS = -I m4
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
MASSAGE_EXE = @MASSAGE_EXE@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_INFO = @INSTALL_INFO@
LN_S = @LN_S@ -f
M4 = @M4@
GCC = @CC@
EMACS = @EMACS@
LIBTOOL = @GNU_LIBTOOL@
PREFORTH = ./preforth -p ".$(PATHSEP)~+$(PATHSEP)$(srcdir)"
CC = $(GCC)
EXTRAPATH = $(PATHSEP)/usr/share/gforth/site-forth$(PATHSEP)/usr/local/share/gforth/site-forth
FORTHPATH = .$(PATHSEP)$(siteforthdir)$(PATHSEP)$(datadir)/gforth/site-forth$(PATHSEP)$(libdir)/gforth/$(VERSION)$(PATHSEP)$(datadir)/gforth/$(VERSION)$(EXTRAPATH)
FORTHSIZES = @FORTHSIZES@
FORTHS_ARGS = @check_option@ -p ".$(PATHSEP)$(realpath $(srcdir))$(PATHSEP)$(FORTHPATH)"
FORTH_ARGS = --die-on-signal $(FORTHS_ARGS)
ENGINE = ./gforth
DITCENGINE = @DITCENGINE@
FORTH = $(ENGINE) $(FORTH_ARGS)
FORTHS = $(ENGINE) $(FORTHS_ARGS)
FORTHP = $(ENGINE) -p ".$(PATHSEP)~+$(PATHSEP)$(srcdir)"
# the (existing) forth system to use for cross compiling and primitives tables
# per default we use the one in this directory for a rebuild. It is also
# possible to override this variable at the command line for an initial build (jaw)
BUILDFORTH = $(ENGINE) --die-on-signal -m 4M -p ".$(PATHSEP)~+$(PATHSEP)$(srcdir)" -i $(kernel_fi)
# the forth system plus flags we use to build
FORTHB = $(BUILDFORTH) exboot.fs -e 'fpath= .|~+|$(srcdir)'
# the Forth system for running prims2x.fs
#FORTHP = $(FORTH)
ENGINE_FAST = ./gforth-fast$(EXT)
FORTH_FAST = $(ENGINE_FAST) $(FORTH_ARGS)
FORTHKFLAGS= --die-on-signal -p ".$(PATHSEP)~+$(PATHSEP)$(srcdir)" -i $(kernel_fi)
FORTHK = ./gforthker -p ".$(PATHSEP)~+$(PATHSEP)$(srcdir)"
#FORTHP = $(ENGINE) --die-on-signal -i ./$(kernel_fi)
#the "-2 image-included-files +!" undoes the change to image-included-files
# in exboot.fs
STARTUP = exboot.fs startup.fs @asm_fs@ @disasm_fs@
STRIP = strip
DOSTRIP = true
# ------------- Compiler Flags
XCFLAGS = @CFLAGS@ @ANDROID_EXTRA@
XDEFINES = @DEFS@
SWITCHES = $(XCFLAGS) $(XDEFINES) $(OPTDEFINES) #-DNDEBUG #turn off assertions
ENGINE_FLAGS = @ENGINE_FLAGS@ -fno-defer-pop -fcaller-saves
DEBUGFLAG = @DEBUGFLAG@
CFLAGS = $(DEBUGFLAG) -I$(srcdir)/engine -I$(srcdir)/arch/$(machine) -O3 -Wall $(SWITCHES) -DDEFAULTPATH='"$(FORTHPATH)"'
CPPFLAGS = @CPPFLAGS@
#John Wavrik should use -Xlinker -N to get a writable text (executable)
XLDFLAGS = @LDFLAGS@
LDFLAGS = $(DEBUGFLAG) $(XLDFLAGS)
LDLIBS = @LIBS@
STACK_CACHE_REGS = @STACK_CACHE_REGS@
STACK_CACHE_DEFAULT_FAST = @STACK_CACHE_DEFAULT_FAST@
PROFOBJS = @PROFOBJS@
PROFEXES = @PROFEXES@
INSTALLDIRS = kernel kernel-ec doc asm ec f test test/fp \
compat unix minos2 minos2/unicode minos2/tutorial \
arch arch/generic arch/m68k arch/mips \
arch/386 arch/hppa arch/sparc arch/power \
arch/alpha arch/4stack arch/misc arch/6502 \
arch/8086 arch/avr arch/c165 arch/h8 \
arch/shboom arch/sharc arch/ia64 arch/amd64 \
arch/arm arch/arm64 arch/r8c arch/lm32 arch/riscv
INSTALL_LIBDIRS = unix
INCLUDES = engine/forth.h engine/threaded.h engine/io.h engine/longlong.h \
engine/symver.h
KERN_SRC = \
mach32b.fs mach32l.fs mach64b.fs mach64l.fs \
machpc.fs.in \
kernel/aliases0.fs \
kernel/args.fs \
kernel/cond.fs \
cross.fs \
kernel/errore.fs \
kernel/files.fs \
kernel/require.fs \
kernel/paths.fs \
kernel/kernel.fs \
kernel/main.fs \
kernel/memory.fs \
kernel/prim0.fs \
search.fs \
kernel/quotes.fs \
kernel/tools.fs \
kernel/toolsext.fs \
kernel/vars.fs \
kernel/accept.fs \
kernel/basics.fs \
kernel/int.fs \
kernel/comp.fs \
kernel/recognizer.fs \
kernel/io.fs \
kernel/input.fs \
kernel/input-class.fs \
kernel/license.fs \
kernel/nio.fs \
kernel/saccept.fs \
kernel/doers.fs \
kernel/getdoers.fs \
kernel/copydoers.fs \
kernel/pass.fs \
kernel/header-methods.fs \
kernel/xchars.fs \
kernel/stringk.fs \
kernel/termsize.fs
KERN_EC_SRC = kernel-ec/args.fs kernel-ec/basics.fs kernel-ec/cbr.fs \
kernel-ec/cbrpi.fs kernel-ec/cloop.fs kernel-ec/comp.fs \
kernel-ec/cond.fs kernel-ec/doers.fs kernel-ec/errore.fs \
kernel-ec/getdoers.fs kernel-ec/int.fs kernel-ec/io.fs \
kernel-ec/kernel.fs kernel-ec/license.fs kernel-ec/main.fs \
kernel-ec/nio.fs kernel-ec/pass.fs kernel-ec/quotes.fs \
kernel-ec/saccept.fs kernel-ec/toolsext.fs kernel-ec/tools.fs \
kernel-ec/vars.fs kernel-ec/version.fs
EC_SRC = $(KERN_EC_SRC) \
asm/README \
asm/bitmask.fs \
asm/numref.fs \
chains.fs \
asm/basic.fs \
asm/generic.fs \
asm/target.fs \
ec/README \
ec/mirror.fs \
ec/shex.fs \
ec/builttag.fs \
ec/dotx.fs \
ec/nesting.fs \
build-ec.in
F_SRC=\
f/api.4th \
f/compat-common.4th \
f/compat-gforth.4th \
f/f.4th \
f/vt100.4th
GFORTH_FI_SRC1=\
ansi.fs \
assert.fs \
backtrac.fs \
blocked.fb \
blocks.fs \
bufio.fs \
code.fs \
debug.fs \
debugs.fs \
dis-gdb.fs \
ekey.fs \
GFORTH_FI_SRC2=\
savesys.fs \
closures.fs \
environ.fs \
errors.fs \
exboot.fs \
except.fs \
extend.fs \
forward.fs \
fold.fs \
float.fs \
glocals.fs \
hash.fs \
help.txt \
history.fs \
intcomp.fs \
iloops.fs \
libcc.fs \
locals.fs \
locate1.fs \
look.fs \
marker.fs \
mkdir.fs \
obsolete.fs \
prelude.fs \
quotes.fs \
rec-sequence.fs \
rec-string.fs \
rec-to.fs \
rec-tick.fs \
rec-body.fs \
recognizer2.fs \
search.fs \
sections.fs \
sections2.fs \
see.fs \
see-ext.fs \
simp-see.fs \
source.fs \
stagediv.fs \
startup.fs \
str-exec.fs \
string.fs \
struct.fs \
struct0x.fs \
struct-val.fs \
stuff.fs \
substitute.fs \
tasker.fs \
table.fs \
user-object.fs \
utf-8.fs \
vt100.fs \
vt100key.fs \
wordinfo.fs \
gforthrc.fs \
options.fs \
smartdots.fs \
status-line.fs \
mwords.fs \
arch/386/asm.fs arch/386/disasm.fs \
arch/amd64/asm.fs arch/amd64/disasm.fs \
arch/alpha/asm.fs arch/alpha/disasm.fs arch/alpha/testasm.fs\
arch/arm/asm.fs arch/arm/disasm.fs \
arch/arm64/asm.fs arch/arm64/disasm.fs \
arch/arm64/gpios.fs arch/arm64/spi.fs arch/arm64/i2c.fs \
arch/arm/testdisasm.fs arch/arm/testdisasm.out arch/arm/Makefile \
arch/mips/asm.fs arch/mips/disasm.fs arch/mips/insts.fs \
arch/mips/testasm.fs arch/mips/testdisasm.fs \
arch/power/asm.fs arch/power/disasm.fs arch/power/inst.fs \
arch/lm32/asm.fs arch/lm32/testasm.fs \
arch/riscv/asm.fs arch/riscv/disasm.fs \
arch/riscv/inst16.fs arch/riscv/inst32.fs
# exclude envos.fs from list of distributed sources; don't include compat again
GFORTH_FI_DIST_SRC = \
$(GFORTH_FI_SRC1) \
$(GFORTH_FI_SRC2)
GFORTH_FI_SRC = \
$(GFORTH_FI_SRC1) \
envos.fs \
$(GFORTH_FI_SRC2) \
compat/caseext.fs \
compat/strcomp.fs
SWIGMODULES = @SWIGMODULES@
SWIGLIBS = @SWIGLIBS@
SWIGDIST = @SWIGDIST@
SWIGDISTFSI = @SWIGDISTFSI@
SWIG_WRAP = $(patsubst %.fs,unix/%-fsi.c,$(SWIGMODULES))
LIBCC_SRC1 = unix/cstr.fs unix/socket.fs unix/pthread.fs unix/mmap.fs \
unix/serial.fs unix/filestat.fs unix/libc.fs unix/time.fs
LIBCC_SRC = $(patsubst %,unix/%,$(SWIGLIBS))
UNIXLIBS_SRC = unix/opengl.fs unix/opengles.fs unix/opengles3.fs \
unix/jnilib.fs unix/soillib.fs unix/soil2lib.fs unix/android.fs \
unix/openmax.fs unix/cpu.fs unix/png.fs unix/gpslib.fs unix/gstlib.fs \
unix/stb-image.fs unix/stb-image-write.fs
SWIG_SRC = unix/androidlib.i unix/egl.i unix/gles.i unix/gles3.i unix/gl.i \
unix/glx.i unix/jni.i unix/omxal.i unix/openvg.i unix/png16.i \
unix/soil.i unix/soil2.i unix/x.i unix/xrandr.i unix/SDL.i \
unix/v4l2.i unix/ios-gles.i unix/ios-gles3.i unix/freetype_gl.i \
unix/gdi32.i unix/user32.i unix/wayland.i unix/gps.i unix/vulkan.i \
unix/harfbuzz.i unix/gobject.i unix/gst.i unix/avcodec.i unix/pulse.i \
unix/opus.i unix/va.i unix/va_glx.i unix/va_drm.i unix/va_x11.i \
unix/opensles.i unix/spi.i unix/i2c.i
FREETYPE_GL_INCLUDE = freetype-gl/freetype-gl-errdef.h \
freetype-gl/ftgl-utils.h freetype-gl/freetype-gl.h \
freetype-gl/opengl.h freetype-gl/platform.h \
freetype-gl/texture-atlas.h freetype-gl/texture-font.h \
freetype-gl/utf8-utils.h freetype-gl/vec234.h freetype-gl/vector.h \
freetype-gl/distance-field.h freetype-gl/edtaa3func.h
FREETYPE_GL_SRC = freetype-gl/ftgl-utils.c freetype-gl/platform.c \
freetype-gl/texture-atlas.c freetype-gl/texture-font.c \
freetype-gl/utf8-utils.c freetype-gl/distance-field.c \
freetype-gl/vector.c freetype-gl/edtaa3func.c $(FREETYPE_GL_INCLUDE)
EXTRA_DOC = code.fs objects.fs oof.fs moofglos.fs regexp.fs fft.fs csv.fs \
i18n.fs @NO_CROSS@ mkdir.fs cilk.fs coverage.fs $(LIBCC_LIB_SRC)
MINOS_DOC = minos2/widgets.fs
LIBCC_DIST_SRC = $(SWIG_SRC) unix/stat-fsi.c unix/test.i unix/Makefile.in \
unix/doexec unix/doprep unix/trygcc $(patsubst %, unix/%, $(SWIGDIST) \
@HAS_SWIG_FORTH@)
LIBCC_FORTH_SRC = unix/libffi.fs unix/fflib.fs $(UNIXLIBS_SRC) $(LIBCC_SRC1)
LIBCC_GEN_SRC = unix/stat.fs $(patsubst %, unix/%, $(SWIGMODULES))
LIBCC_LIB_SRC = $(patsubst %, unix/%, $(SWIGLIBS)) @LIBCC_BUILD_SRC@
LIBCC_BUILD_SRC = $(LIBCC_GEN_SRC) @LIBCC_BUILD_SRC@
LIBCC_BUILD_LA = $(patsubst %.fs,$(buildccdir)/libgf%.la,$(shell echo $(LIBCC_LIB_SRC) $(LIBCC_SRC1) libcc.fs | sed -e s,unix/,,g))
LIBCC_BUILD_NOEC = @NO_CHECKX@ $(LIBCC_BUILD_SRC)
UNICODE_SRC = mirror.fs bidi.fs vertical.fs bidi-db.fs mirrors.fs bidis.fs \
verticals.fs unihan.fs unihan.db japanese.db japanese-tc.db brackets.fs brackets.db \
quotation.db Makefile
MINOS2_TUTORIAL = tutorial.fs buttons.fs plots.fs markdown.fs screenshot.fs
MINOS2_SRC = gl-helper.fs gl-terminal.fs jpeg-exif.fs linux-gl.fs \
wayland-gl.fs soil-texture.fs gl-sample.fs gl-slideshow.fs \
ftgl-helper.fs ftgl-sample.fs bidi.fs widgets.fs actors.fs \
x11-actors.fs android-actors.fs wayland-actors.fs \
gforth-1.0-presentation.fs presentation.fs presentation-support.fs \
mts-tools.fs mkv-tools.fs omx-example.fs mkv-tags.fs \
android-recorder.fs animation.fs need-x.fs font-style.fs \
text-style.fs gst-helper.fs plot.fs md-viewer.fs md-test.fs \
mem-texture.fs pulse-audio.fs sles-audio.fs opus-codec.fs va.fs \
v4l2.fs $(patsubst %, unicode/%, $(UNICODE_SRC)) $(patsubst %, \
tutorial/%, $(MINOS2_TUTORIAL))
MINOS2_BIN = ascii.png button.png button2.png button3.png bad-gateway.png \
net2o-minos2.png lbubble.png rbubble.png white.png thumb.png logo.png
TEST_SRC = tester.fs ttester.fs checkans.fs coretest.fs dbltest.fs float.fs \
gforth.fs forward.fs other.fs postpone.fs read-line.fs search.fs \
signals.fs stagediv.fs string.fs primtest.fs coreext.fs deferred.fs \
coremore.fs gforth-nofast.fs libcc.fs macros.fs regexp-test.fs \
fp/ak-fp-test.fth fp/fatan2-test.fs fp/fpio-test.4th \
fp/fpzero-test.4th fp/ieee-arith-test.fs fp/ieee-fprox-test.fs \
fp/paranoia.4th fp/readme-fp.txt fp/runfptests.fth \
fp/to-float-test.4th fp/ttester.fs xchar.fs
UNIX_SRC = terminal-server.fs jni-helper.fs jni-tools.fs jni-media.fs \
jni-location.fs sensors.fs win32.fs wayland-interfaces.fs
FORTH_SRC = $(KERN_SRC) $(GFORTH_FI_DIST_SRC) $(EC_SRC) $(F_SRC) \
$(LIBCC_FORTH_SRC) $(patsubst %, minos2/%, $(MINOS2_SRC)) $(patsubst \
%, minos2/%, $(MINOS2_BIN)) ans-report.fs ansi.fs answords.fs \
colorize.fs comp-i.fs complex.fs csv.fs depth-changes.fs dosekey.fs \
doskey.fs ds2texi.fs envos.dos envos.os2 etags.fs fft.fs filedump.fs \
fi2c.fs forward.fs fsl-util.4th fsl-util.fs glosgen.fs gray.fs \
httpd.fs i18n.fs install-tags.fs make-app.fs doc/makedoc.fs locate.fs \
locate1.fs more.fs onebench.fs fft-bench.fs other.fs prims2x.fs \
prims2x0.6.2.fs proxy.fs random.fs regexp.fs sokoban.fs \
standard-words.fs string.fs table.fs tags.fs tt.fs unbuffer.fs \
wordsets.fs 2012words.fs $(patsubst %, test/%, $(TEST_SRC)) bubble.fs \
siev.fs matrix.fs fib.fs oof.fs oofsampl.fs objects.fs objexamp.fs \
mini-oof.fs moof-exm.fs moofglos.fs fixpath.fs mini-oof2.fs \
moof2-example.fs scope.fs varues.fs callable.fs add.fs lib.fs \
oldlib.fs sieve.fs list.fs endtry-iferror.fs recover-endtry.fs \
$(patsubst %, unix/%, $(UNIX_SRC)) date.fs i18n-date.fs script.fs \
wf.fs traceall.fs rec-scope.fs rec-env.fs rec-meta.fs notfound.fs \
utf16.fs archive.fs cilk.fs fixfiles.fs bits.fs reverse-words.fs \
config.fs set-compsem.fs coverage.fs tokenize.fs startup-libcc.fs \
status-line.fs unix/opensles-vals.fs recognizer-ext.fs
COMPAT = compat/README \
compat/anslocal.fs \
compat/assert.fs \
compat/caseext.fs \
compat/control.fs \
compat/defer.fs \
compat/exception.fs \
compat/execute-parsing.fs \
compat/loops.fs \
compat/macros.fs \
compat/required.fs \
compat/strcomp.fs \
compat/struct.fs \
compat/vocabulary.fs \
compat/stagediv.fs \
compat/memory.4th \
compat/find-name.fs
GFORTH_TEXI = doc/gforth.texi doc/version.texi
VMGEN_TEXI = doc/vmgen.texi doc/version.texi doc/fdl.texi
ALLSUBDIRS = engine
ARCHS = \
arch/generic/machine.h \
arch/m68k/machine.h \
arch/mips/machine.h \
arch/mips/check_prim.c \
arch/386/machine.h \
arch/386/android/AndroidManifest.xml.in \
arch/386/android/config.sh \
arch/386/android/build.sh \
arch/386/android/starta.fs \
arch/386/android/res \
arch/386/android/src \
arch/hppa/machine.h \
arch/hppa/cache.c \
arch/sparc/machine.h \
arch/power/machine.h \
arch/power/_sync_cache_range.c \
arch/alpha/machine.h \
arch/arm/machine.h \
arch/arm/cacheflush0.c \
arch/arm/cacheflush-linux.c \
arch/arm/android/AndroidManifest.xml.in \
arch/arm/android/config.sh \
arch/arm/android/build.sh \
arch/arm/android/starta.fs \
arch/arm/android/res/drawable-hdpi/ic_launcher.png \
arch/arm/android/res/drawable-ldpi/ic_launcher.png \
arch/arm/android/res/drawable-mdpi/ic_launcher.png \
arch/arm/android/res/drawable-xhdpi/ic_launcher.png \
arch/arm/android/res/values/strings.xml \
arch/arm/android/src/gnu/gforth/Gforth.java \
arch/arm/ev3/config.sh \
arch/ia64/machine.h \
arch/ia64/flush_icache_block.c \
arch/amd64/machine.h \
arch/arm64/android/AndroidManifest.xml.in \
arch/arm64/android/config.sh \
arch/arm64/android/build.sh \
arch/arm64/android/starta.fs \
arch/arm64/android/res \
arch/arm64/android/src \
arch/arm64/machine.h \
arch/arm64/cacheflush.c \
arch/4stack/README \
arch/4stack/asm.fs \
arch/4stack/mach.fs \
arch/4stack/prim.fs \
arch/4stack/mach.sh \
arch/4stack/relocate.fs \
arch/misc/README \
arch/misc/asm.fs \
arch/misc/mach.fs \
arch/misc/optcmove.fs \
arch/misc/prim.fs \
arch/misc/sim.fs \
arch/misc/sokoban.fs \
arch/misc/tt.fs \
arch/6502/prim.fs \
arch/6502/mach.fs \
arch/shboom/asm.fs \
arch/shboom/compiler.fs \
arch/shboom/dis.fs \
arch/shboom/mach.fs \
arch/shboom/prim.fs \
arch/shboom/dis2.fs \
arch/shboom/sh.p \
arch/shboom/doers.fs \
arch/sharc/mach.fs \
arch/sharc/machine.h \
arch/sharc/compile.sharc \
arch/sharc/systypes.h \
arch/sharc/types.h \
arch/sharc/g21k-3.3.4-bp1.diff \
arch/r8c/asm.fs \
arch/r8c/mach.fs \
arch/r8c/errors.fs \
arch/r8c/prim.fs \
arch/r8c/asm-test.fs \
arch/r8c/errors.fs \
arch/r8c/lauflicht.fs \
arch/r8c/tasker.fs \
arch/r8c/terminal.fs \
arch/r8c/tt.fs \
arch/riscv/machine.h \
arch/riscv/asm.fs \
arch/riscv/disasm.fs \
arch/riscv/inst16.fs \
arch/riscv/inst32.fs \
arch/sharc/unistd.h \
arch/lm32/mach.fs \
arch/lm32/mach.sh \
arch/lm32/prim.fs \
arch/lm32/Makefile \
arch/lm32/testasm.disas-ok \
engine/arm64-cacheflush.c \
engine/arm-cacheflush0.c \
engine/arm-cacheflush-linux.c \
engine/hppa-cache.c \
engine/ia64-flush_icache_block.c \
engine/mips_check_prim.c \
engine/power_sync_cache_range.c
#not included in distribution until distribution terms are included:
ARCHS_NO_DIST = \
arch/6502/asm.fs \
arch/6502/cold.fs \
arch/6502/softuart.fs \
arch/6502/zero.fs \
arch/8086/asm.fs \
arch/8086/mach.fs \
arch/8086/mach.sh \
arch/8086/prim.fs \
arch/avr/asm.fs \
arch/c165/asm.fs \
arch/c165/mach.fs \
arch/c165/prim.fs \
arch/h8/asm.fs \
arch/r8c/tt.fs
# temporary change. DO NOT COMMIT
ARCHS += $(ARCHS_NO_DIST)
VMGEN_EX = vmgen-ex/Makefile vmgen-ex/README vmgen-ex/disasm.c \
vmgen-ex/engine.c vmgen-ex/fib.mini \
vmgen-ex/mini-inst.vmg vmgen-ex/mini-super.vmg vmgen-ex/mini.h \
vmgen-ex/mini.l vmgen-ex/mini.y vmgen-ex/peephole-blacklist \
vmgen-ex/peephole.c vmgen-ex/profile.c vmgen-ex/seq2rule.awk \
vmgen-ex/simple.mini vmgen-ex/stat.awk vmgen-ex/support.c \
vmgen-ex/test.mini vmgen-ex/test.out
VMGEN_EX2 = $(VMGEN_EX:vmgen-ex/%=vmgen-ex2/%)
ENGINE_SOURCES = engine/Makefile.in engine/config.h.in \
engine/engine.c engine/main.c engine/libmain.c engine/io.c \
engine/support.c engine/signals.c engine/libcc.h \
engine/gforth.h.in engine/profile.c engine/128bit.h \
engine/getopt.c engine/getopt1.c engine/getopt.h \
engine/select.c engine/memcmp.c engine/rint.c \
engine/strtol.c engine/strtoul.c engine/ansidecl.h \
engine/memmove.c engine/exp10.c engine/atanh.c \
engine/cleanalign.c engine/strerror.c engine/strsignal.c \
engine/dblsub.c engine/fnmatch.h engine/fnmatch.c \
engine/zexpand.c engine/androidmain.c engine/sincos.c \
$(INCLUDES)
DOCKER = docker/runner/Dockerfile.in docker/runner/build.sh \
docker/builder/Dockerfile docker/builder/build.sh
SOURCES = $(ENGINE_SOURCES) compat Makefile.in Makedist.in unix/Makefile.in \
gforthmi.in gforthmi.sh.in vmgen.in preforth.in libforth.in \
gforthker.in README.vmgen NEWS.vmgen autogen.sh configure.ac \
configure config.sub config.guess elisp-comp stamp-h.in envos.fs.in \
kernel/version.fs.in iss.sh wininst.sh modpath.iss firewall.iss \
install-sh INSTALL.md NEWS README README.md ToDo BUGS \
BUILD-FROM-SCRATCH model COPYING COPYING.LIB COPYING.DOC AUTHORS \
ChangeLog Benchres aclocal.m4 ltmain.sh doc/Makefile.in \
doc/gforth.texi.in $(wildcard $(srcdir)/doc/words/*-words) \
doc/words/README doc/gforth.1 doc/gforth.css doc/standard-words.awk \
doc/2012-words doc/version.texi.in doc/vmgen.texi doc/fdl.texi \
doc/gpl.texi gforth.el $(ARCHS) siteinit.fs versions.bsh glosgen.glo \
doc/glossaries.doc $(FORTH_SRC) $(LIBCC_DIST_SRC) $(COMPAT) \
$(VMGEN_EX) $(VMGEN_EX2) $(FREETYPE_GL_SRC) timings.sc \
test/coretest.out test/checkans.out test/gforth.out \
test/read-line.input test/read-line2.input test/read-line.out \
test/fp/fptest.out test/regexp.out $(wildcard $(srcdir)/cache*.vmg) \
peeprules.vmg prim debian/rules debian/control.in debian/changelog.in \
debian/compat gforth.ico .travis.yml install-deps.sh install-swig.sh \
install-freetype-gl.sh $(patsubst %.fs,unix/%-fsi.c, $(SWIGDISTFSI)) \
m4/ax_gcc_builtin.m4 move-if-change $(DOCKER)
CONFIG_GEN = Makefile Makedist gforthmi gforthmi.sh vmgen preforth \
libforth gforthker engine/Makefile engine/gforth.h \
doc/version.texi doc/Makefile unix/Makefile debian/changelog \
debian/control build-ec $(CONFIG_FORTH)
CONFIG_FORTH = machpc.fs kernel/version.fs envos.fs
RCS_FILES = ToDo model high-level
ENGINES = gforth$(EXT) @NO_EC@ gforth-ditc$(EXT) gforth-itc$(EXT) $(PROFEXES)
ENGINES_FAST = @NO_EC@ gforth-fast$(EXT)
LIBENGINES = $(ENGINES:%=lib%)
LIBENGINES_FAST = $(ENGINES_FAST:%=lib%)
GEN = $(ENGINES) $(ENGINES_FAST) @gforth_elc@
# things that need a working forth system to be generated
FORTH_GEN_ENGINE=engine/prim.i engine/prim_lab.i engine/prim_names.i \
engine/prim_superend.i engine/profile.i \
engine/prim_num.i engine/prim_grp.i \
engine/costs.i engine/super2.i
FORTH_GEN_ENGINE_FAST= engine/prim-fast.i \
engine/prim_lab-fast.i engine/prim_names-fast.i \
engine/prim_superend-fast.i engine/profile-fast.i \
engine/prim_num-fast.i engine/prim_grp-fast.i \
engine/costs-fast.i engine/super2-fast.i
FORTH_GEN_PRIMB = $(FORTH_GEN_ENGINE) kernel/aliases.fs kernel/prim.fs\
kernel/authors.fs
FORTH_GEN0 = prim.b $(FORTH_GEN_PRIMB)
FORTH_GEN_FAST = prim-fast.b $(FORTH_GEN_ENGINE_FAST)
FORTH_GEN = $(FORTH_GEN0) @GKERNEL@ gforth.fi
# this is used for antidependences,
FORTH_GEN1 = $(FORTH_GEN0) @kernel_fi@ build-ec
#kernel dependencies
KERN_DEPS = $(KERN_SRC) kernel/aliases.fs kernel/version.fs kernel/authors.fs \
machpc.fs $(FORTH_GEN0) compat/strcomp.fs
#distributed documentation
DOCDIST = doc/gforth.info $(wildcard doc/gforth.info-*) doc/gforth.ps \
doc/gforth.txt doc/vmgen.info doc/vmgen.ps
BKERNLS = kernl32b$(EC).fi kernl32l$(EC).fi \
kernl64b$(EC).fi kernl64l$(EC).fi
KERNLS = kernl32b$(EC).fi- kernl32l$(EC).fi- \
kernl64b$(EC).fi- kernl64l$(EC).fi-
# ------------- Make forth images
GEN_PRECIOUS = $(FORTH_GEN) $(KERNLS) \
doc/gforth.texi doc/gforth.dvi doc/gforth.ps \
doc/vmgen.dvi doc/vmgen.ps \
$(CONFIG_GEN) configure
#search path pattern
vpath %.fs $(srcdir):.:$(srcdir)/unix:$(srcdir)/test:unix
#standards.info recommends this:
.SUFFIXES:
.SUFFIXES: .c .o
all: kernel/version.fs more @NO_CHECKX@ doc start-gforth.el check extras
# use this dependency for phony targets just as mostlyclean,...
FORCE: ;
#targets of failed commands should be deleted:
.DELETE_ON_ERROR:
#this rule avoids remaking everything after minor changes in Makefile.in
#disabled now, as it doesn't have the wanted effect
#version: Makefile.in configure.ac
# echo $(VERSION) > $@
# With dos we use normal dos echo
# we cannot pipe the output to engine/version.h directly because
# of the "/ and \" problem. Copying works because we use the
# shell und file utilities.
#kernel/version.fs: version
# echo ": version-string s\" $(VERSION)\" ;" > kernel/version.fs
more: $(ENGINES) $(FORTH_GEN) $(GEN) @libengines@ @build_libcc_named@
#from the gcc Makefile:
#"Deletion of files made during compilation.
# There are four levels of this:
# `mostlyclean', `clean', `distclean' and `realclean'.
# `mostlyclean' is useful while working on a particular type of machine.
# It deletes most, but not all, of the files made by compilation.
# It does not delete libgcc.a or its parts, so it won't have to be recompiled.
# `clean' deletes everything made by running `make all'.
# `distclean' also deletes the files made by config.
# `realclean' also deletes everything that could be regenerated automatically."
mostlyclean: FORCE
-$(RMTREE) engine/*.s gforth.fi *.fi~ *.fi- kernel/version.fs \
kernel/authors.fs *TAGS gforth~ \
doc/crossdoc.fd doc/doc.fd doc/gforth.texi doc/gforth.fns \
doc/gforth.aux doc/gforth.cp doc/gforth.cps \
doc/gforth.dvi doc/gforth.fn doc/gforth.ky doc/gforth.log \
doc/gforth.pg \
doc/gforth.toc doc/gforth.tp doc/gforth.vr html \
gforth-$(VERSION).tar.gz
(cd unix && $(MAKE) clean)
# Just the stuff needed to rebuild the documentation nac03feb1999
docclean: FORCE
-$(RMTREE) doc/crossdoc.fd doc/doc.fd doc/gforth.texi doc/gforth.fns \
doc/gforth.aux doc/gforth.cp doc/gforth.cps \
doc/gforth.dvi doc/gforth.fn doc/gforth.ky doc/gforth.log \
doc/gforth.pg \
doc/gforth.toc doc/gforth.tp doc/gforth.vr html
clean: mostlyclean
-$(RMTREE) $(GEN) *.o engine/*.o engine/*.lo engine/*.la \
engine/.libs engine/libgforth* libgforth* arch/*/*.o \
gforth-itc-noll$(EXT) engine/gforth-itc-noll$(EXT) \
gforth-ditc-noll$(EXT) engine/gforth-ditc-noll$(EXT) \
gforth-prof-noll$(EXT) engine/gforth-prof-noll$(EXT) \
engine/prim-s.i $(FORTH_GEN_ENGINE) $(FORTH_GEN_ENGINE_FAST)
for i in gforth gforth-fast; do for j in $(OPTS); do rm -f engine/$$i$${j}$(EXT) $$i$${j}$(EXT); done; done
-$(RMTREE) $(buildccdir)
(cd unix; $(MAKE) clean)
distclean: clean
-$(RMTREE) config.cache config.log config.status \
engine/config.h engine/gforth.h Makefile Makedist \
engine/Makefile stamp-h engine/stamp-h doc/version.texi \
gforthmi vmgen preforth $(FORTH_GEN0) $(FORTH_GEN_FAST) \
start-gforth.el
-(cd libltdl && make distclean)
#realclean is useless, but dangerous, so it's commented out
realclean: distclean
-$(RMTREE) $(GEN_PRECIOUS) `cat .cvsignore`
kernel-clean:
-$(RMTREE) $(KERNLS) $(BKERNLS)
fresh: kernel-clean all
#mostlyclean, but also remove some of the stuff that is distributed
virtualclean: mostlyclean
-$(RMTREE) gforth.fns gforth.texi gforth.ps gforth.info* \
gforth-$(VERSION).tar.gz config.cache *~ */*~
maintainer-clean: realclean
#Some makes (Ultrix, SunOS, IRIX) are so broken, they cannot read the
#Makefile if it contains our dist rules. Therefore we have put these
#rules in Makedist (you can use them with GNU make on these systems).
debdist:
setup-debdist docdist htmldist dist: doc
dist srcdist srconlydist docdist htmldist bindist binonlydist debdist setup-debdist: Makedist FORCE
$(MAKE) -f Makedist d$@
#HPUX make breaks the cycle differently when the dates are equal, so
# touch some of the files if it acts up
hpux-workaround:
$(TOUCH) $(FORTH_GEN_PRIMB)
#strip gforth, because the debugging stuff is hardly useful once
# gforth manages to execute more than a few primitives.
#install does not depend on gforth.info, because that would require
#supplying a lot of files that can be easily generated (only info is
#hard to generate).
#we rebuild gforth.fi, because it contains some path names.
#we delete $build/gforth.fi and $build/install.TAGS after installation because of ownership.
normal-install:
$(NORMAL_INSTALL)
INSTEXES=gforth gforth-fast gforth-itc gforth-ditc
INSTSCRIPTS=gforthmi vmgen
INSTSUFFIX="" -$(VERSION) -$(machine) -$(VERSION)-$(machine)
rm-install:
-for i in $(INSTEXES); do \
for j in $(INSTSUFFIX); do \
$(RM) $(bindir)/$$i$$j$(EXT); \
done \
done
-for i in $(INSTSCRIPTS); do \
for j in $(INSTSUFFIX); do \
$(RM) $(bindir)/$$i$$j; \
done \
done
install-prog-bins:
for i in $(INSTEXES); do \
$(INSTALL_PROGRAM) $$i$(EXT) $(bindir)/$$i-$(VERSION)-$(machine)$(EXT); \
$(MASSAGE_EXE) $(bindir)/$$i-$(VERSION)-$(machine)$(EXT) || true; \
done
$(INSTALL_SCRIPT) gforthmi $(bindir)/gforthmi-$(VERSION)-$(machine)
$(INSTALL_SCRIPT) vmgen $(bindir)/vmgen-$(VERSION)
install-progs:
for i in $(INSTEXES) gforthmi; do \
for j in "" -$(VERSION) -$(machine); do \
(cd $(bindir) && $(LN_S) $$i-$(VERSION)-$(machine)$(EXT) $$i$$j$(EXT)); \
done \
done
(cd $(bindir) && $(LN_S) vmgen-$(VERSION) vmgen)
install-sources:
-for i in doc/gforth.info* doc/vmgen.info*; do $(INSTALL_DATA) $$i $(infodir); done
for i in $(FORTH_SRC) $(COMPAT) prim; do \
$(INSTALL_DATA) $(srcdir)/$$i $(datadir)/gforth/$(VERSION)/$$i; \
done
install-gensources:
for i in $(LIBCC_GEN_SRC) envos.fs machpc.fs; do \
$(INSTALL_DATA) $$i $(libdir)/gforth/$(VERSION)/$$i; \
done
for i in kernel/prim.fs kernel/aliases.fs kernel/version.fs kernel/authors.fs; do \
$(INSTALL_DATA) $$i $(datadir)/gforth/$(VERSION)/$$i; \
done
$(INSTALL_DATA) $(srcdir)/siteinit.fs $(siteforthdir)/siteinit.fs
install-txt: txt
$(INSTALL_DATA) doc/gforth.txt $(datadir)/gforth/$(VERSION)/doc/gforth.txt
install-md:
$(INSTALL_DATA) $(srcdir)/README.md $(datadir)/gforth/$(VERSION)/doc/README.md
install-images: install-md @INSTALLTXT@
$(INSTALL_DATA) $(kernel_fi) $(libdir)/gforth/$(VERSION)
HOSTPREFIX="$(HOST)" GFORTHD="$(DITCENGINE)$(EXT) -p $(siteforthdir)$(PATHSEP)$(siteforthdir)$(PATHSEP)$(datadir)/gforth/$(VERSION)$(PATHSEP)$(libdir)/gforth/$(VERSION) -i $(kernel_fi)" GFORTH="$(DITCENGINE)$(EXT) -p $(siteforthdir)$(PATHSEP)$(siteforthdir)$(PATHSEP)$(datadir)/gforth/$(VERSION)$(PATHSEP)$(libdir)/gforth/$(VERSION) --die-on-signal --debug-mcheck -i $(kernel_fi) exboot.fs startup.fs" includedir=$(subst $(package),,$(includedir)) bindir=$(subst $(package),,$(bindir)) libccdir=$(libccdir) GFORTHPATH=.:"$$GFORTHPATH" GFORTHDESTDIR="$(package)" ./gforthmi gforth.fi.install $(FORTHSIZES) $(STARTUP) fixfiles.fs
$(INSTALL_DATA) gforth.fi.install $(libdir)/gforth/$(VERSION)/gforth.fi
install-include:
$(MKDIR_P) $(includedir)/gforth/$(VERSION)/$(machine) $(includedir)/freetype-gl
$(INSTALL_DATA) engine/config.h $(srcdir)/engine/libcc.h $(includedir)/gforth/$(VERSION)/$(machine)
$(INSTALL_DATA) engine/gforth.h $(includedir)
for i in $(FREETYPE_GL_INCLUDE); do \
$(INSTALL_DATA) $(srcdir)/$$i $(includedir)/freetype-gl; done
install-libcc:
if test -n "$(LIBTOOL)"; then for i in $(LIBCC_SRC1) $(LIBCC_LIB_SRC); do \
$(LIBTOOL) --silent --mode=install $(INSTALL) $(buildccdir)/libgf`basename $$i .fs`.la `(cd $(package)$(libccdir); pwd)`/libgf`basename $$i .fs`.la; \
done; fi
install-man:
-$(INSTALL_DATA) $(srcdir)/doc/gforth.1 $(man1dir)
install-info: doc
$(MKDIR_P) $(infodir)
$(INSTALL_INFO) --info-dir=$(infodir) doc/gforth.info $(infodir)/gforth.info
$(INSTALL_INFO) --info-dir=$(infodir) doc/vmgen.info $(infodir)/vmgen.info
install-html: html
$(MKDIR_P) $(htmldir)/html
$(CP) doc/gforth/* $(htmldir)/html
$(MKDIR_P) $(htmldir)/../vmgen/html
$(CP) doc/vmgen/* $(htmldir)/../vmgen/html
install-pdf: pdf
$(MKDIR_P) $(pdfdir)
$(MKDIR_P) $(pdfdir)/../vmgen
$(CP) doc/gforth.pdf $(pdfdir)
$(CP) doc/vmgen.pdf $(pdfdir)/../vmgen/
install-tags: install.TAGS
$(INSTALL_DATA) install.TAGS $(datadir)/gforth/$(VERSION)/TAGS
install-elc:
@if test -n "@lispdir@"; then \
$(MKDIR_P) $(lispdir); \
for i in gforth.el @gforth_elc@; do \
$(INSTALL_DATA) $$i $(lispdir); \
done; \
else \
echo '>>>>>Please install gforth.{el,elc} in your .../emacs/site-lisp directory'; \
fi
@if test -n "@elispstartdir@"; then \
$(MKDIR_P) $(emacssitestartdir); \
for i in start-gforth.el; do \
$(INSTALL_DATA) $$i $(emacssitestartdir) || true; \
done; \
else \
echo '>>>>>Please install start-gforth.{el,elc} in your .../emacs/.../site-start.d directory'; \
fi
installdeps: gforth$(EXT) $(FORTH_SRC) $(kernel_fi) gforthmi vmgen doc/gforth.1 prim gforth.fi start-gforth.el @build_libcc_named@
install-indep: installdeps installdirs-indep install-sources install-man install-elc
install-arch: installdeps installdirs-arch normal-install rm-install install-prog-bins install-gensources install-images install-include install-libcc install-tags @libinstall@ extra-install
install-seq: install-indep install-arch @INSTALLTXT@ @INSTALLINFO@
post-inst:
$(RM) TAGS gforth.TAGS install.TAGS prim.TAGS gforth.fi.install start-gforth.el*
-$(RM) libgforth*
$(POST_INSTALL)
@test 0$$SUDO_UID -ne 0 && find . -user root | sed -e 's/^/failed to clean: /g' || true
@echo
@echo
@echo "============= INSTALL SUCCEEDED ============="
@echo "Bash users: type 'hash -r' to empty the cache"
install: installdeps install-seq install-progs post-inst
installnodep: installdirs install-seq install-progs post-inst
install-strip: install
libinstall: $(ENGINES:%$(EXT)=lib%$(EXT)) $(ENGINES_FAST:%$(EXT)=lib%$(EXT))
for i in $(ENGINES:%$(EXT)=lib%$(EC)) $(ENGINES_FAST:%$(EXT)=lib%$(EC)); do \
$(LIBTOOL) --silent --mode=install $(INSTALL) engine/$$i.la `(cd $(libdir); pwd)`/$$i.la; \
done
installdirs: installdirs-arch installdirs-indep
installdirs-arch:
$(NORMAL_INSTALL)
for i in $(bindir) $(libdir)/gforth/$(VERSION) $(siteforthdir) $(siteforthdir) $(package)$(libccdir); do \
$(MKDIR_P) $$i; \
done
for i in $(INSTALL_LIBDIRS); do \
$(MKDIR_P) $(libdir)/gforth/$(VERSION)/$$i; \
done
installdirs-indep:
$(NORMAL_INSTALL)
for i in $(man1dir) $(infodir) $(datadir)/gforth/$(VERSION) $(datadir)/gforth/site-forth; do \
$(MKDIR_P) $$i; \
done
for i in $(INSTALLDIRS); do \
$(MKDIR_P) $(datadir)/gforth/$(VERSION)/$$i; \
done
#deinstall all files specific to this version of gforth
#to uninstall version foo, type `make uninstall VERSION=foo'
uninstall: FORCE
$(NORMAL_UNINSTALL)
-$(RMTREE) $(libdir)/gforth/$(VERSION) $(datadir)/gforth/$(VERSION) $(includedir)/gforth/$(VERSION)/$(machine)
-for i in "$(EXT)" -$(VERSION)$(EXT) -$(machine)$(EXT) -$(VERSION)-$(machine)$(EXT); do $(RM) $(bindir)/gforth$$i $(bindir)/gforth-fast$$i $(bindir)/gforth-itc$$i $(bindir)/gforth-ditc$$i $(bindir)/gforthmi$$i ; done
-$(RM) $(bindir)/vmgen-$(VERSION)