From 48540940b6c28bb4378abfeb500ec45a625b37b6 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Tue, 15 May 2012 10:38:20 +0000 Subject: initial commit git-svn-id: http://svn.miranda-ng.org/main/trunk@2 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Yahoo/Makefile.win | 76 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 protocols/Yahoo/Makefile.win (limited to 'protocols/Yahoo/Makefile.win') diff --git a/protocols/Yahoo/Makefile.win b/protocols/Yahoo/Makefile.win new file mode 100644 index 0000000000..270810c554 --- /dev/null +++ b/protocols/Yahoo/Makefile.win @@ -0,0 +1,76 @@ +# +# Makefile for Miranda IM written by Gennady Feldman +# +# + +# +# List the required object files. +# + +OBJ = http_gateway.o \ + main.o \ + options.o \ + server.o \ + services.o \ + util.o \ + yahoo.o \ + avatar.o \ + chat.o \ + webcam.o \ + icolib.o \ + ignore.o \ + file_transfer.o \ + im.o \ + search.o \ + proto.o \ + libyahoo2\crypt.o \ + libyahoo2\libyahoo2.o \ + libyahoo2\yahoo_httplib.o \ + libyahoo2\yahoo_list.o \ + libyahoo2\yahoo_util.o + +RES = Yahoo.res + +LIB = -lcomdlg32 -lgdi32 -lwsock32 + +CC = gcc +RC = windres +RM = del + +ifdef DEBUG +BIN = ..\..\bin\debug\plugins\Yahoo.dll +else +BIN = ..\..\bin\release\plugins\Yahoo.dll +endif + +DEFINES = -DHAVE_CONFIG_H +ifdef DEBUG +DEFINES := $(DEFINES) -D_DEBUG +endif + + +ifdef DEBUG +CFLAGS = -g $(DEFINES) -I../../include -mwindows -c +LDFLAGS = -shared +else +CFLAGS = -Os $(DEFINES) -I../../include -mwindows -c +LDFLAGS = -shared -s +endif + +all : ${BIN} + +${BIN} : $(OBJ) $(RES) + g++ $(LDFLAGS) -o $(BIN) $(OBJ) $(RES) $(LIB) -Wl + +$(RES) : $(RES:.res=.rc) $(RES:.res=.h) Makefile.win + $(RC) -O COFF -o $(RES) -i $(RES:.res=.rc) + +.cpp.o: + g++ $(CFLAGS) $< -o $@ + +.c.o: + gcc $(CFLAGS) $< -o $@ + + +clean : + -$(RM) $(OBJ) $(RES) ${BIN} -- cgit v1.2.3