summaryrefslogtreecommitdiff
path: root/protocols/Yahoo/Makefile.win
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2012-05-15 10:38:20 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2012-05-15 10:38:20 +0000
commit48540940b6c28bb4378abfeb500ec45a625b37b6 (patch)
tree2ef294c0763e802f91d868bdef4229b6868527de /protocols/Yahoo/Makefile.win
parent5c350913f011e119127baeb32a6aedeb4f0d33bc (diff)
initial commit
git-svn-id: http://svn.miranda-ng.org/main/trunk@2 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Yahoo/Makefile.win')
-rw-r--r--protocols/Yahoo/Makefile.win76
1 files changed, 76 insertions, 0 deletions
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 <gena01@miranda-im.org>
+#
+#
+
+#
+# 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}