summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2010-08-05 05:36:11 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2010-08-05 05:36:11 +0300
commit174edb6c3be534274b97a0f0eedcbc6a29b8636f (patch)
tree05bb26f37df910c6f08d397a270c22135af62a53
parente21fd2bb454c8a18948c677c4968fc397b7e6078 (diff)
modified: Makefile
-rw-r--r--Makefile28
1 files changed, 20 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 07380ee..e4d4600 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,24 @@
-all:
- i686-pc-mingw32-g++ -c -DBUILD_DLL -D UNICODE -D _UNICODE *.cpp -I../../include -I/usr/i686-pc-mingw32/usr/include -I. -I ../miranda-im/miranda/include -w -mwin32 -mwindows -mdll -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
+CFLAGS=-Os -fomit-frame-pointer -pipe -msse -march=i686 -mdll -mwindows -I../miranda-im/miranda/include -D UNICODE -D _UNICODE
+CXXFLAGS=${CFLAGS}
+LDFLAGS=-static-libgcc -Wl,-O1 -shared
+CPPFLAGS =
+CC=i686-pc-mingw32-gcc
+CXX=i686-pc-mingw32-g++
+STRIP=i686-pc-mingw32-strip
+WINDRES=i686-pc-mingw32-windres
+LD=i686-pc-mingw32-ld
+LNK_COMMON=-lkernel32
+MAINOBJS=stopspam.o eventhooker.o init.o options.o utilities.o
+RESOURCES=stopspam.rc
+all: main
+main: $(MAINOBJS)
+ $(WINDRES) -i $(RESOURCES)
+ $(CXX) $(MAINOBJS) $(LNK_COMMON) $(LDFLAGS) -o stopspam.dll
+ $(STRIP) stopspam.dll
+ upx -9 stopspam.dll
clean:
rm *.o
-
-clean-all:
- rm *.o *.dll
+ rm stopspam.dll
+