]> git.sur5r.net Git - cc65/blobdiff - test/Makefile
Restore src/cc65/locals.c:278 to its orignal state
[cc65] / test / Makefile
index 0f96a38f8c5ef4be420fb7e7cf9e359f91897984..c858835171d3cfb169d5f60e7303800f688569c1 100644 (file)
@@ -1,52 +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
-  RM := del /f
-  EXE := .exe
-  MKDIR := mkdir
-  RMDIR := rmdir
+  RMDIR = -rmdir /s /q $(subst /,\,$1)
 else
-  RM := rm -f
-  EXE :=
-  MKDIR := mkdir -p
-  RMDIR := rmdir
+  RMDIR = $(RM) -r $1
 endif
 
-WORKDIR := ../testwrk
+WORKDIR = ../testwrk
 
-.PHONY: all dotests continue mostly-clean clean
+.PHONY: all dotests continue mostlyclean clean
 
 all: dotests
 
-$(WORKDIR):
-       $(MKDIR) $(WORKDIR)
-
-$(WORKDIR)/bdiff$(EXE): bdiff.c | $(WORKDIR)
-       $(CC) -O2 -o $@ $<
+.NOTPARALLEL:
 
-dotests: mostly-clean continue
+dotests: mostlyclean continue
 
-continue: $(WORKDIR)/bdiff$(EXE)
+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
 
-mostly-clean:
+mostlyclean:
+       @$(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: mostly-clean
-       $(RM) $(WORKDIR)/bdiff$(EXE)
-       $(RMDIR) $(WORKDIR)
+clean: mostlyclean
+       @$(call RMDIR,$(WORKDIR))