all:
	/usr/bin/i586-mingw32msvc-g++ -Wall -c libdetect.c -o libdetect.o
	/usr/bin/i586-mingw32msvc-g++ -Wall -c test.c -o test.o
	/usr/bin/i586-mingw32msvc-g++ test.o libdetect.o -o test.exe

upx: all strip
	cp test.exe test_upx.exe
	upx --ultra-brute test_upx.exe

strip:
	strip test.exe

test:
	wine test.exe

clean:
	rm -f *.o *.exe

