Commit 88658e52 authored by simonpj's avatar simonpj

[project @ 1999-11-26 10:28:00 by simonpj]

Define NOFIB_PROG_WAY
parent d05a3049
......@@ -8,12 +8,15 @@
#################################################################################
# Define NOFIB_PROG. In ..../nofib/imaginary/exp3_8, PROG is exp3_8 by default.
# Define NOFIB_PROG and NOFIB_PROG_WAY.
# In ..../nofib/imaginary/exp3_8, NOFIB_PROG is exp3_8 by default.
# and for way w NOFIB_PROG_WAY is exp3_8_w
#
NOFIB_PROG = $(notdir $(shell pwd))$(_way)
NOFIB_PROG = $(notdir $(shell pwd))
NOFIB_PROG_WAY = $(NOFIB_PROG)$(_way)
# Eventually, have the binary purged
CLEAN_FILES += $(NOFIB_PROG)
CLEAN_FILES += $(NOFIB_PROG_WAY)
#
# If tests are expected to end in compilation failure,
......
......@@ -28,23 +28,23 @@ endif
# Bogosity needed here to cope with .exe suffix for strip & size files.
# (shouldn't have to be our problem.)
ifneq "$(HC_FAIL)" "YES"
$(NOFIB_PROG) : $(OBJS)
$(NOFIB_PROG_WAY) : $(OBJS)
@echo ==nofib== $(NOFIB_PROG): time to link $(NOFIB_PROG) follows...
@$(TIME) $(HC) $(HC_OPTS) -o $@ $^ $(LIBS)
endif
ifneq "$(NOFIB_PROG)" ""
size :: $(NOFIB_PROG)
@$(STRIP) $(NOFIB_PROG)$(exeext)
ifneq "$(NOFIB_PROG_WAY)" ""
size :: $(NOFIB_PROG_WAY)
@$(STRIP) $(NOFIB_PROG_WAY)$(exeext)
@echo ==nofib== $(NOFIB_PROG): size of $(NOFIB_PROG) follows...
@$(SIZE) $(NOFIB_PROG)$(exeext)
@$(SIZE) $(NOFIB_PROG_WAY)$(exeext)
runtests :: $(NOFIB_PROG) size
@echo ==nofib== $<: time to run $< follows...
runtests :: $(NOFIB_PROG_WAY) size
@echo ==nofib== $(NOFIB_PROG): time to run $(NOFIB_PROG) follows...
@$(TIME) $(RUNTEST) ./$< \
$(addprefix -i ,$(wildcard $(subst $(_way),,$(NOFIB_PROG)).stdin)) \
$(addprefix -o1 ,$(wildcard $(subst $(_way),,$(NOFIB_PROG)).stdout*)) \
$(addprefix -o2 ,$(wildcard $(subst $(_way),,$(NOFIB_PROG)).stderr*)) \
$(addprefix -i ,$(wildcard $(NOFIB_PROG).stdin)) \
$(addprefix -o1 ,$(wildcard $(NOFIB_PROG).stdout*)) \
$(addprefix -o2 ,$(wildcard $(NOFIB_PROG).stderr*)) \
$(RUNTEST_OPTS)
else
size ::
......
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