summaryrefslogtreecommitdiff
path: root/Makefile
blob: 6eb5adfc4ed2a470d588c78a998fe60719fb3168 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
all:
	i686-pc-mingw32-g++ -c -DBUILD_DLL -D UNICODE -D _UNICODE *.cpp -I../../include -I/usr/i686-pc-mingw32/usr/include -I. -w -march=i686 -msse -O2 -pipe
	i686-pc-mingw32-windres -i stopspam.rc -o resources.o
	i686-pc-mingw32-gcc -shared -o stopspam.dll *.o -Wl,-O1,-s -lstdc++
	upx -9 stopspam.dll

clean:
	rm *.o

clean-all: 
	rm *.o *.dll