X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=test%2FMakefile;h=c858835171d3cfb169d5f60e7303800f688569c1;hb=05b73276c2ff1b6ea88735c1d78a9da8e1d8cabc;hp=2fd252d2a1b4dd5f1949a5ac3aa8aaa99193a5f1;hpb=709ee6a28b1375222d44590a57e93d732966f8bf;p=cc65 diff --git a/test/Makefile b/test/Makefile index 2fd252d2a..c85883517 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,58 +1,40 @@ - -# top-level 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: +# top-level Makefile for the regression tests ifneq ($(shell echo),) - CMD_EXE := 1 + CMD_EXE = 1 endif ifdef CMD_EXE - EXE := .exe - DEL = -del /f $(subst /,\,$1) - MKDIR = mkdir $(subst /,\,$1) RMDIR = -rmdir /s /q $(subst /,\,$1) else - EXE := - DEL = $(RM) $1 - MKDIR = mkdir $1 RMDIR = $(RM) -r $1 endif -WORKDIR := ../testwrk - -CC := gcc +WORKDIR = ../testwrk .PHONY: all dotests continue mostlyclean clean all: dotests -$(WORKDIR): - $(call MKDIR,$(WORKDIR)) - -$(WORKDIR)/bdiff$(EXE): bdiff.c | $(WORKDIR) - $(CC) -O2 -o $@ $< - .NOTPARALLEL: dotests: mostlyclean continue -continue: $(WORKDIR)/bdiff$(EXE) - @$(MAKE) -C assembler all +continue: + @$(MAKE) -C asm all + @$(MAKE) -C dasm all @$(MAKE) -C val all @$(MAKE) -C ref all @$(MAKE) -C err all @$(MAKE) -C misc all mostlyclean: - @$(MAKE) -C assembler clean + @$(MAKE) -C asm clean + @$(MAKE) -C dasm clean @$(MAKE) -C val clean @$(MAKE) -C ref clean @$(MAKE) -C err clean @$(MAKE) -C misc clean clean: mostlyclean - @$(call DEL,$(WORKDIR)/bdiff$(EXE)) @$(call RMDIR,$(WORKDIR))