curdir=$(vigra_testdir)/multiarray

test: test.o $(PREINSTALL_IMPEX_LIB)
	@test -d impex || mkdir impex
	$(CXX) -o test test.o $(PREINSTALL_IMPEX_LIB) $(IMPEX_DEPLIBS)
	./test || { rm ./test$(EXEEXT) ; exit 1; }

multiarray.exe: test.d
	devenv "..\test.sln" /build Release /project multiarray
	./multiarray.exe || { rm ./multiarray.exe ; exit 1; }

EXTRA_CLEAN_TARGET=test?.png impex/test?.png

include ../Makefile.include

ifneq "$(MAKECMDGOALS)" "clean"
include test.d
endif
