Commit 03043d28 authored by simonmar's avatar simonmar

[project @ 2002-01-28 13:48:33 by simonmar]

Nofib support for running with GHCi.  Run like this:

    make NoFibWithGHCi=YES

or set NoFibWithGHCi=YES in your
parent 409b6f46
......@@ -28,10 +28,26 @@ endif
# Bogosity needed here to cope with .exe suffix for strip & size files.
# (shouldn't have to be our problem.)
ifneq "$(HC_FAIL)" "YES"
ifneq "$(NoFibWithGHCi)" "YES"
@echo ==nofib== $(NOFIB_PROG): time to link $(NOFIB_PROG) follows...
@$(TIME) $(HC) $(HC_OPTS) -o $@ $^ $(LIBS)
ifeq "$(NoFibWithGHCi)" "YES"
runtests ::
@echo "==nofib== $(NOFIB_PROG): time to compile & run $(NOFIB_PROG) follows..."
@$(RM) $(NOFIB_PROG).stdin.tmp
echo main | cat - $(wildcard $(NOFIB_PROG).stdin) > $(NOFIB_PROG).stdin.tmp
@$(TIME) $(RUNTEST) $(GHC_INPLACE) --interactive -v0 -Wnot \
-i $(NOFIB_PROG).stdin.tmp \
$(addprefix -o1 ,$(wildcard $(NOFIB_PROG).stdout*)) \
$(addprefix -o2 ,$(wildcard $(NOFIB_PROG).stderr*)) \
@$(RM) $(NOFIB_PROG).stdin.tmp
ifneq "$(NOFIB_PROG_WAY)" ""
ifeq "$(way)" "mp"
......@@ -68,6 +84,8 @@ runtests ::
endif # GHCI
# Include standard boilerplate
# We do this at the end for cosmetic reasons: it means that the "normal-way"
# runtests will precede the "other-way" recursive invocations of make
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment