]> git.sur5r.net Git - cc65/blobdiff - test/ref/Makefile
added some windows/cmd.exe stuff
[cc65] / test / ref / Makefile
index 88d54a29654e315bea072efb5b804c7b2abfa8ea..b3b555aefa117461d6fad87e160de53fb478eddc 100644 (file)
@@ -2,18 +2,27 @@
 # makefile for the regression tests that generate output which has to be
 # compared with reference output
 
+ifneq ($(shell echo),)
+  CMD_EXE = 1
+endif
+
 CC65FLAGS = -t sim6502
 SIM65FLAGS = -x 200000000
 
 CL65 := $(if $(wildcard ../../bin/cl65*),../../bin/cl65,cl65)
 SIM65 := $(if $(wildcard ../../bin/sim65*),../../bin/sim65,sim65)
 
+ifdef CMD_EXE
+RM := del /f
+DIFF := fc
+else
 RM := rm -f
 DIFF := diff -q
+endif
 
 CFLAGS := -O2 -Wall -W -Wextra -fwrapv -fno-strict-overflow
 
-.PHONY: all
+.PHONY: all clean
 
 REFS := $(patsubst %.c,%.ref,$(wildcard *.c))