Files
mercury/tests/debugger/declarative/Mmakefile
Mark Brown 204928ac9c Deep copy some data to the global heap, as it may need to be
Estimated hours taken: 6

trace/mercury_trace_declarative.c:
	Deep copy some data to the global heap, as it may need to be
	used after being backtracked over.

tests/debugger/declarative/Mmakefile:
	Re-enable the test that was failing due to this bug.
1999-07-05 04:17:48 +00:00

82 lines
2.0 KiB
Plaintext

#-----------------------------------------------------------------------------#
main_target: check
include ../../Mmake.common
RM_C=:
#-----------------------------------------------------------------------------#
# We suppress the printing of the banner, because different workspaces
# may get different version numbers printed in it. This would otherwise be
# the source of irrelevant difference between the actual and expected outputs.
MDB = MERCURY_SUPPRESS_MDB_BANNER=yes mdb
#-----------------------------------------------------------------------------#
DECLARATIVE_PROGS= \
app \
gcf \
if_then_else \
propositional \
queens
MCFLAGS = --trace deep --trace-decl
MLFLAGS = --trace
C2INITFLAGS = --trace
# Base grades `jump' and `fast' cannot be used with
# stack layouts (which are required for tracing).
ifneq "$(findstring asm_,$(GRADE))" ""
PROGS=$(DECLARATIVE_PROGS)
else
ifneq "$(findstring jump,$(GRADE))" ""
PROGS=
else
ifneq "$(findstring fast,$(GRADE))" ""
PROGS=
else
PROGS=$(DECLARATIVE_PROGS)
endif
endif
endif
#-----------------------------------------------------------------------------#
propositional.out: propositional propositional.inp
$(MDB) ./propositional < propositional.inp > propositional.out 2>&1
app.out: app app.inp
$(MDB) ./app < app.inp > app.out 2>&1
gcf.out: gcf gcf.inp
$(MDB) ./gcf < gcf.inp > gcf.out 2>&1
if_then_else.out: if_then_else if_then_else.inp
$(MDB) ./if_then_else < if_then_else.inp > if_then_else.out 2>&1
queens.out: queens queens.inp
$(MDB) ./queens < queens.inp > queens.out 2>&1
#-----------------------------------------------------------------------------#
DEPS= $(PROGS:%=$(deps_subdir)%.dep)
DEPENDS= $(PROGS:%=%.depend)
OUTS= $(PROGS:%=%.out)
RESS= $(PROGS:%=%.res)
#-----------------------------------------------------------------------------#
dep: $(DEPS)
depend: $(DEPENDS)
check: $(OUTS) $(RESS)
all: $(PROGS)
#-----------------------------------------------------------------------------#