1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-24 11:31:31 +00:00
cc65/test/Makefile

53 lines
887 B
Makefile
Raw Normal View History

# toplevel makefile for the regression tests
# You can comment this special target when you debug the regression tests.
# Then, make will give you more progress reports.
.SILENT:
ifneq ($(shell echo),)
CMD_EXE = 1
endif
ifdef CMD_EXE
2014-11-25 11:56:45 +00:00
RM := del /f
EXE := .exe
MKDIR = mkdir
RMDIR = rmdir
else
2014-11-25 11:56:45 +00:00
RM := rm -f
EXE :=
MKDIR = mkdir -p
RMDIR = rmdir
endif
2014-11-25 11:56:45 +00:00
WORKDIR := ../testwrk
.PHONY: all dotests continue mostly-clean clean
all: dotests
2014-11-25 11:56:45 +00:00
$(WORKDIR):
$(MKDIR) $(WORKDIR)
2014-11-25 11:56:45 +00:00
$(WORKDIR)/bdiff$(EXE): bdiff.c | $(WORKDIR)
$(CC) -O2 -o $@ $<
dotests: mostly-clean continue
2014-11-26 00:38:30 +00:00
continue: $(WORKDIR)/bdiff$(EXE)
@$(MAKE) -C val all
@$(MAKE) -C ref all
@$(MAKE) -C err all
@$(MAKE) -C misc all
mostly-clean:
@$(MAKE) -C val clean
@$(MAKE) -C ref clean
@$(MAKE) -C err clean
2014-11-22 21:22:30 +00:00
@$(MAKE) -C misc clean
clean: mostly-clean
$(RM) $(WORKDIR)/bdiff$(EXE)
$(RMDIR) $(WORKDIR)