all: BergDiSEqC.dll

BergDiSEqC.dll: BergDiSEqC.cpp Config.cpp DiSEqC.cpp resource.rc
	@gcc -c BergDiSEqC.cpp -o BergDiSEqC.o
	@gcc -c Config.cpp -o Config.o
	@gcc -c DiSEqC.cpp -o DiSEqC.o
	@windres resource.rc -o resource.o
	@dllwrap -def BergDiSEqC.def BergDiSEqC.o Config.o DiSEqC.o resource.o -o BergDiSEqC.dll

clean:
	@rm -rf BergDiSEqC.o
	@rm -rf Config.o
	@rm -rf DiSEqC.o
	@rm -rf resource.o
	@rm -rf BergDiSEqC.dll