diff options
Diffstat (limited to 'plugins/StopSpamMod/Makefile')
-rwxr-xr-x | plugins/StopSpamMod/Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/plugins/StopSpamMod/Makefile b/plugins/StopSpamMod/Makefile new file mode 100755 index 0000000000..4df12dca59 --- /dev/null +++ b/plugins/StopSpamMod/Makefile @@ -0,0 +1,24 @@ +CFLAGS=-Os -fomit-frame-pointer -pipe -march=i686 -mdll -mwin32 -mwindows -I../miranda-im/miranda/include -I/home/sss/temp/windows/libs/utf8cpp/include -D UNICODE -D _UNICODE -DBUILD_DLL +CXXFLAGS=${CFLAGS} +LDFLAGS=-shared -Wl,--subsystem,windows,--kill-at +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 -lboost_thread_win32-mt -lboost_system-mt -lboost_random-mt -lboost_regex-mt +MAINOBJS=eventhooker.o init.o options.o utilities.o stopspam.o +RESOURCES=stopspam.rc + +all: main +main: $(MAINOBJS) + $(WINDRES) -i $(RESOURCES) -o stopspam_res.o + $(CXX) $(MAINOBJS) stopspam_res.o $(LNK_COMMON) $(LDFLAGS) -o stopspam.dll + $(STRIP) stopspam.dll +# upx -9 stopspam.dll +clean: + rm *.o + rm stopspam.dll + + |