gforth
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Specify search path for 'make all-bench'/'make allbench'


From: Thomas Schwinge
Subject: [PATCH] Specify search path for 'make all-bench'/'make allbench'
Date: Tue, 21 Feb 2023 23:51:03 +0100

Otherwise, if not building inside the source directory, this fails:

    $ make all-bench
    ./gforth-fast --dynamic onebench.fs

    in file included from *the terminal*:0:-94798424395503:
    *the terminal*:-1:1: error: No such file or directory
    >>>onebench.fs<<<
    Backtrace:
    kernel/require.fs:108:15:                0 $7F17D6342470 throw
    kernel/require.fs:113:10:                1 $7F17D633E5D8 required
    ../master/except.fs:83:2:                2 $7F17D6347FA0 execute  [catch 
frame]
    kernel/input.fs:165:8:                   3 $7F17D633BE80 catch
    kernel/args.fs:82:27:                    4 $7F17D633E578 
execute-parsing-wrapper
    kernel/args.fs:88:29:                    5 $7F17D633E638 os-execute-parsing
    kernel/args.fs:112:17:                   6 $7F17D633E960 args-required
    ../master/gforthrc.fs:48:26:             7 $7F17D638E060 (process-args)
    make: *** [Makefile:1126: all-bench] Error 254
---
 Makefile.in | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index 88b17afb..f5fb1275 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1123,18 +1123,18 @@ threebench 3-bench:
        $(FORTH_FAST) onebench.fs -e "run-bench cr run-bench cr bye"

 all-bench allbench:
-       ./gforth-fast$(EXT) --dynamic onebench.fs
-       @libbench@./libgforth-fast$(EXT) --dynamic onebench.fs
-       ./gforth-fast$(EXT) --no-dynamic onebench.fs
-       @libbench@./libgforth-fast$(EXT) --no-dynamic onebench.fs
-       ./gforth$(EXT) --dynamic onebench.fs
-       @libbench@./libgforth$(EXT) --dynamic onebench.fs
-       ./gforth$(EXT) --no-dynamic onebench.fs
-       @libbench@./libgforth$(EXT) --no-dynamic onebench.fs
-       ./gforth-itc$(EXT) onebench.fs
-       @libbench@./libgforth-itc$(EXT) onebench.fs
-       ./gforth-ditc$(EXT) onebench.fs
-       @libbench@./libgforth-ditc$(EXT) onebench.fs
+       ./gforth-fast$(EXT) $(FORTHS_ARGS) --dynamic onebench.fs
+       @libbench@./libgforth-fast$(EXT) $(FORTHS_ARGS) --dynamic onebench.fs
+       ./gforth-fast$(EXT) $(FORTHS_ARGS) --no-dynamic onebench.fs
+       @libbench@./libgforth-fast$(EXT) $(FORTHS_ARGS) --no-dynamic onebench.fs
+       ./gforth$(EXT) $(FORTHS_ARGS) --dynamic onebench.fs
+       @libbench@./libgforth$(EXT) $(FORTHS_ARGS) --dynamic onebench.fs
+       ./gforth$(EXT) $(FORTHS_ARGS) --no-dynamic onebench.fs
+       @libbench@./libgforth$(EXT) $(FORTHS_ARGS) --no-dynamic onebench.fs
+       ./gforth-itc$(EXT) $(FORTHS_ARGS) onebench.fs
+       @libbench@./libgforth-itc$(EXT) $(FORTHS_ARGS) onebench.fs
+       ./gforth-ditc$(EXT) $(FORTHS_ARGS) onebench.fs
+       @libbench@./libgforth-ditc$(EXT) $(FORTHS_ARGS) onebench.fs

 EXTRAVARS="GCC=$(GCC)" "CFLAGS=$(XCFLAGS)" "LIBTOOL=$(LIBTOOL)" "HOST=$(HOST)" 
"SRC=$(shell pwd)" "ENGINE=$(DITCENGINE) -i $(shell pwd)/gforth.fi" 
"LIBCCNAMED=$(shell pwd)/$(buildccdir)" "libccdir=$(libccdir)" 
"package=$(package)" "PREFIX=$(EXTRAPREFIX)" "prefix=$(EXTRAPREFIX)" 
"datadir=$(datadir)/gforth/$(VERSION)" "ARCH=" "FAST=$(FAST)" "GFVER=$(VERSION)"

--
2.39.1

-----------------
Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 
München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas 
Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht 
München, HRB 106955



reply via email to

[Prev in Thread] Current Thread [Next in Thread]