aboutsummaryrefslogtreecommitdiff
path: root/src/algebra
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2010-11-29 08:21:05 +0000
committerdos-reis <gdr@axiomatics.org>2010-11-29 08:21:05 +0000
commiteaf9fdfc5fb7d296c16df34384914e0a62639314 (patch)
treec7af850bfc35fd4f5673b90fa3dd14c5ede4d2eb /src/algebra
parentdea4d75caba3466cdc8595d333c31a5393912c69 (diff)
downloadopen-axiom-eaf9fdfc5fb7d296c16df34384914e0a62639314.tar.gz
Add support for translator and linker in the driver
Diffstat (limited to 'src/algebra')
-rw-r--r--src/algebra/Makefile.in27
1 files changed, 18 insertions, 9 deletions
diff --git a/src/algebra/Makefile.in b/src/algebra/Makefile.in
index 67abf263..d58c619d 100644
--- a/src/algebra/Makefile.in
+++ b/src/algebra/Makefile.in
@@ -94,13 +94,23 @@ DOC=$(axiom_target_docdir)/src/algebra
OUTSRC=$(axiom_target_srcdir)/algebra
INPUT=../input
-## We use interpsys, built from previous stage, to bootstrap the algebra
-## files. In fact, we use interpsys to build everything.
-COMPILE_LISP = $(INTERPSYS) --compile --output=$@ $<
+# Name of the driver to launch the compiler
+DRIVER = ../driver/open-axiom$(EXEEXT)
+
+INTERPSYS = ../interp/interpsys$(EXEEXT)
+COMPILE_SPAD = $(DRIVER) --execpath=$(INTERPSYS) \
+ --system="$(AXIOM)" \
+ --sysalg="$(axiom_src_datadir)/algebra/" \
+ --strap=strap --optimize=3 \
+ --system-algebra --compile $<
-INTERPSYS = ../interp/interpsys$(EXEEXT) -- --system="$(AXIOM)" \
- --sysalg="$(axiom_src_datadir)/algebra/"
+## We use interpsys, built from previous stage, to bootstrap the algebra
+## files. In fact, we use interpsys to build everything.
+COMPILE_LISP = $(DRIVER) --execpath=$(INTERPSYS) \
+ --system="$(AXIOM)" \
+ --sysalg="$(axiom_src_datadir)/algebra/" \
+ --compile --output=$@ $<
SPADFILES= \
@@ -1210,7 +1220,7 @@ ${OUT}/%.$(FASLEXT): %.NRLIB/code.$(FASLEXT)
.PREVIOUS: %.spad
.PRECIOUS: %.NRLIB/code.$(FASLEXT)
%.NRLIB/code.$(FASLEXT): %.spad
- ${INTERPSYS} --strap=strap --system-algebra --optimize=3 --compile $<
+ $(COMPILE_SPAD)
# Compile bootstrap file to machine object code, and the result
# immediately available for AXIOMsys consumption.
@@ -1252,11 +1262,10 @@ $(axiom_build_texdir)/diagrams.tex: $(axiom_src_docdir)/diagrams.tex
@cp -p $< $@
SPADPRSR.NRLIB/code.$(FASLEXT): spad-parser.spad
- ${INTERPSYS} --system-algebra --compile $<
+ $(COMPILE_SPAD)
PARSER.NRLIB/code.$(FASLEXT): script-parser.spad
- ${INTERPSYS} --system-algebra --compile $<
-
+ $(COMPILE_SPAD)
${INPUT}/TESTFR.input: $(srcdir)/fr.spad.pamphlet