This create a precompiled file myprogram.eco from a source file called myprogram.ecl (or myprogram.pl). If the source file contained include directives, the result will be a single object file containing the compiled code of all included files. In earlier releases of ECLiPSe this was done using the fcompile/1 predicate from the fcompile library, which is still supported for compatibility.?- compile(myprogram, [output:eco]).
2^34 instead of 17179869184).
.SUFFIXES: $(SUFFIXES) .ecl .eco
.ecl.eco:
eclipse -e "compile(\"$<\",[output:eco])"
or a pattern rule for Gnu make:
%.eco: %.ecl
eclipse -e "compile(\"$<\",[output:eco])"