CXX = i686-w64-mingw32-g++
DLLTOOL = i686-w64-mingw32-dlltool

all: nvdaControllerClient32.dll

nvdaControllerClient32.dll: nvdaControllerClient32.o exports.o
	@$(CXX) -shared -o nvdaControllerClient32.dll nvdaControllerClient32.o exports.o

exports.o: nvdaControllerClient32.o
	@$(DLLTOOL) -e exports.o nvdaControllerClient32.o

nvdaControllerClient32.o: nvdaControllerClient32.cpp
	@$(CXX) -c nvdaControllerClient32.cpp

clean:
	@rm -f nvdaControllerClient32.o exports.o