UNAME ?= $(shell uname)
CYGWIN = $(findstring CYGWIN, $(UNAME))
-MINGW = $(findstring MINGW, $(UNAME))
+MINGW = $(findstring MINGW, $(UNAME))
ifneq ("$(CYGWIN)", "")
WINDOWS=1
TBIN = testsuite
else
CBIN = gmqcc.exe
-CVIN = qcvm.exe
+VBIN = qcvm.exe
endif
ifndef WINDOWS
$(TBIN): $(TOBJS)
$(CXX) $(TOBJS) -o $@
-test: $(TBIN)
+test: $(CBIN) $(VBIN) $(TBIN)
@./$(TBIN)
endif