Mon, 08 Apr 2013 16:48:19 +0200
Gadu-Gadu: fix some warnings
| 3630 | 1 | # |
| 2 | # Makefile.mingw | |
| 3 | # | |
| 4 | # Description: Makefile for win32 (mingw) version of libgg | |
| 5 | # | |
| 6 | ||
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
7 | PIDGIN_TREE_TOP := ../../.. |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
8 | include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak |
| 3630 | 9 | |
| 10 | TARGET = libgg | |
|
29753
4101af714b47
Oops, I forgot this. This is done internally in libgadu, and not doing it
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29751
diff
changeset
|
11 | CFLAGS += -include win32dep.h -DGG_IGNORE_DEPRECATED |
|
14617
7e4c1a72656a
[gaim-migrate @ 17278]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
12 | TYPE = PLUGIN |
| 3630 | 13 | |
|
11546
acb5676e57bb
[gaim-migrate @ 13801]
Daniel Atallah <datallah@pidgin.im>
parents:
11360
diff
changeset
|
14 | # Static or Plugin... |
| 3630 | 15 | ifeq ($(TYPE),STATIC) |
| 16 | DEFINES += -DSTATIC | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
17 | DLL_INSTALL_DIR = $(PURPLE_INSTALL_DIR) |
| 3630 | 18 | else |
| 19 | ifeq ($(TYPE),PLUGIN) | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
20 | DLL_INSTALL_DIR = $(PURPLE_INSTALL_PLUGINS_DIR) |
| 3630 | 21 | endif |
| 22 | endif | |
| 23 | ||
| 24 | ## | |
| 25 | ## INCLUDE PATHS | |
| 26 | ## | |
|
33291
b70ab10887a7
New custom resolver, that uses libpurple for DNS queries. Get rid of old win32 resolver. Refs#343. Fixes #6263
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32438
diff
changeset
|
27 | INCLUDE_PATHS +=\ |
|
b70ab10887a7
New custom resolver, that uses libpurple for DNS queries. Get rid of old win32 resolver. Refs#343. Fixes #6263
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32438
diff
changeset
|
28 | -I$(PIDGIN_TREE_TOP) \ |
|
b70ab10887a7
New custom resolver, that uses libpurple for DNS queries. Get rid of old win32 resolver. Refs#343. Fixes #6263
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32438
diff
changeset
|
29 | -I$(PURPLE_TOP) \ |
|
b70ab10887a7
New custom resolver, that uses libpurple for DNS queries. Get rid of old win32 resolver. Refs#343. Fixes #6263
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32438
diff
changeset
|
30 | -I$(PURPLE_TOP)/win32 \ |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
31 | -I./lib \ |
| 3630 | 32 | -I$(GTK_TOP)/include \ |
| 33 | -I$(GTK_TOP)/include/glib-2.0 \ | |
|
33291
b70ab10887a7
New custom resolver, that uses libpurple for DNS queries. Get rid of old win32 resolver. Refs#343. Fixes #6263
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32438
diff
changeset
|
34 | -I$(GTK_TOP)/lib/glib-2.0/include |
| 3630 | 35 | |
|
16393
d89faf3f5282
Allow include and lib paths to be overridden from local.ent
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
36 | LIB_PATHS += -L$(GTK_TOP)/lib \ |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
37 | -L$(PURPLE_TOP) \ |
| 3630 | 38 | |
| 39 | ## | |
| 40 | ## SOURCES, OBJECTS | |
| 41 | ## | |
| 11360 | 42 | C_SRC = \ |
| 43 | lib/common.c \ | |
|
29751
438f88ecc11e
Update our internal libgadu to 1.9.0-rc2. This does not yet build on Windows.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
16393
diff
changeset
|
44 | lib/dcc.c \ |
|
438f88ecc11e
Update our internal libgadu to 1.9.0-rc2. This does not yet build on Windows.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
16393
diff
changeset
|
45 | lib/dcc7.c \ |
|
31609
d67fbc90b28a
matekm and kkszysiu collaborated on this patch to update our internal libgadu
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29824
diff
changeset
|
46 | lib/debug.c \ |
|
31826
0f6ab56fbf9d
Update libgadu to 0.11.0 plus local changes; thanks to Tomasz Wasilczyk.
Ethan Blanton <elb@pidgin.im>
parents:
31609
diff
changeset
|
47 | lib/deflate.c \ |
|
31609
d67fbc90b28a
matekm and kkszysiu collaborated on this patch to update our internal libgadu
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29824
diff
changeset
|
48 | lib/encoding.c \ |
| 11360 | 49 | lib/events.c \ |
|
31609
d67fbc90b28a
matekm and kkszysiu collaborated on this patch to update our internal libgadu
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29824
diff
changeset
|
50 | lib/handlers.c \ |
| 11360 | 51 | lib/http.c \ |
| 52 | lib/libgadu.c \ | |
|
31609
d67fbc90b28a
matekm and kkszysiu collaborated on this patch to update our internal libgadu
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
29824
diff
changeset
|
53 | lib/message.c \ |
| 11360 | 54 | lib/obsolete.c \ |
| 55 | lib/pubdir.c \ | |
| 56 | lib/pubdir50.c \ | |
|
29751
438f88ecc11e
Update our internal libgadu to 1.9.0-rc2. This does not yet build on Windows.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
16393
diff
changeset
|
57 | lib/resolver.c \ |
|
29824
9878119b5d78
Finish making libgadu compile on Windows. Fixes #10542 finally!
Krzysztof Klinikowski <kkszysiu@gmail.com>
parents:
29753
diff
changeset
|
58 | lib/sha1.c \ |
|
33854
5744cfb1c3d1
Fix 3.0.0 compilation for win32, switch gtk (and others) runtimes from gnome.org to opensuse build service
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33299
diff
changeset
|
59 | utils.c \ |
|
5744cfb1c3d1
Fix 3.0.0 compilation for win32, switch gtk (and others) runtimes from gnome.org to opensuse build service
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33299
diff
changeset
|
60 | confer.c \ |
|
11546
acb5676e57bb
[gaim-migrate @ 13801]
Daniel Atallah <datallah@pidgin.im>
parents:
11360
diff
changeset
|
61 | buddylist.c \ |
|
acb5676e57bb
[gaim-migrate @ 13801]
Daniel Atallah <datallah@pidgin.im>
parents:
11360
diff
changeset
|
62 | gg.c \ |
|
33854
5744cfb1c3d1
Fix 3.0.0 compilation for win32, switch gtk (and others) runtimes from gnome.org to opensuse build service
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33299
diff
changeset
|
63 | resolver-purple.c \ |
|
5744cfb1c3d1
Fix 3.0.0 compilation for win32, switch gtk (and others) runtimes from gnome.org to opensuse build service
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33299
diff
changeset
|
64 | image.c \ |
|
5744cfb1c3d1
Fix 3.0.0 compilation for win32, switch gtk (and others) runtimes from gnome.org to opensuse build service
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33299
diff
changeset
|
65 | account.c \ |
|
5744cfb1c3d1
Fix 3.0.0 compilation for win32, switch gtk (and others) runtimes from gnome.org to opensuse build service
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33299
diff
changeset
|
66 | deprecated.c \ |
|
5744cfb1c3d1
Fix 3.0.0 compilation for win32, switch gtk (and others) runtimes from gnome.org to opensuse build service
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33299
diff
changeset
|
67 | purplew.c \ |
|
5744cfb1c3d1
Fix 3.0.0 compilation for win32, switch gtk (and others) runtimes from gnome.org to opensuse build service
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33299
diff
changeset
|
68 | libgaduw.c \ |
|
5744cfb1c3d1
Fix 3.0.0 compilation for win32, switch gtk (and others) runtimes from gnome.org to opensuse build service
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33299
diff
changeset
|
69 | avatar.c \ |
|
5744cfb1c3d1
Fix 3.0.0 compilation for win32, switch gtk (and others) runtimes from gnome.org to opensuse build service
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33299
diff
changeset
|
70 | libgadu-events.c \ |
|
5744cfb1c3d1
Fix 3.0.0 compilation for win32, switch gtk (and others) runtimes from gnome.org to opensuse build service
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33299
diff
changeset
|
71 | roster.c \ |
|
5744cfb1c3d1
Fix 3.0.0 compilation for win32, switch gtk (and others) runtimes from gnome.org to opensuse build service
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33299
diff
changeset
|
72 | validator.c \ |
|
5744cfb1c3d1
Fix 3.0.0 compilation for win32, switch gtk (and others) runtimes from gnome.org to opensuse build service
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33299
diff
changeset
|
73 | xml.c \ |
|
5744cfb1c3d1
Fix 3.0.0 compilation for win32, switch gtk (and others) runtimes from gnome.org to opensuse build service
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33299
diff
changeset
|
74 | multilogon.c \ |
|
5744cfb1c3d1
Fix 3.0.0 compilation for win32, switch gtk (and others) runtimes from gnome.org to opensuse build service
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33299
diff
changeset
|
75 | status.c \ |
|
5744cfb1c3d1
Fix 3.0.0 compilation for win32, switch gtk (and others) runtimes from gnome.org to opensuse build service
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33299
diff
changeset
|
76 | servconn.c \ |
|
5744cfb1c3d1
Fix 3.0.0 compilation for win32, switch gtk (and others) runtimes from gnome.org to opensuse build service
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33299
diff
changeset
|
77 | pubdir-prpl.c \ |
|
5744cfb1c3d1
Fix 3.0.0 compilation for win32, switch gtk (and others) runtimes from gnome.org to opensuse build service
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33299
diff
changeset
|
78 | oauth/oauth.c \ |
|
5744cfb1c3d1
Fix 3.0.0 compilation for win32, switch gtk (and others) runtimes from gnome.org to opensuse build service
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33299
diff
changeset
|
79 | oauth/oauth-parameter.c \ |
|
5744cfb1c3d1
Fix 3.0.0 compilation for win32, switch gtk (and others) runtimes from gnome.org to opensuse build service
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33299
diff
changeset
|
80 | oauth/oauth-purple.c |
| 3630 | 81 | |
| 82 | OBJECTS = $(C_SRC:%.c=%.o) | |
| 83 | ||
| 84 | ## | |
| 85 | ## LIBRARIES | |
| 86 | ## | |
|
11546
acb5676e57bb
[gaim-migrate @ 13801]
Daniel Atallah <datallah@pidgin.im>
parents:
11360
diff
changeset
|
87 | LIBS = \ |
|
5932
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
4058
diff
changeset
|
88 | -lglib-2.0 \ |
|
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
4058
diff
changeset
|
89 | -lintl \ |
|
15438
c3e93cd038c5
Update win32 build for libpurple and pidgin renames. This compiles, but is far from complete.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
90 | -lpurple \ |
|
33854
5744cfb1c3d1
Fix 3.0.0 compilation for win32, switch gtk (and others) runtimes from gnome.org to opensuse build service
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33299
diff
changeset
|
91 | -lws2_32 \ |
|
5744cfb1c3d1
Fix 3.0.0 compilation for win32, switch gtk (and others) runtimes from gnome.org to opensuse build service
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33299
diff
changeset
|
92 | -lz |
| 3630 | 93 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
94 | include $(PIDGIN_COMMON_RULES) |
| 3630 | 95 | |
| 96 | ## | |
| 97 | ## TARGET DEFINITIONS | |
| 98 | ## | |
|
14638
b0fa76dac93f
[gaim-migrate @ 17300]
Daniel Atallah <datallah@pidgin.im>
parents:
14617
diff
changeset
|
99 | .PHONY: all install clean |
| 3630 | 100 | |
| 101 | all: $(TARGET).dll | |
| 102 | ||
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
103 | install: all $(DLL_INSTALL_DIR) |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
104 | cp $(TARGET).dll $(DLL_INSTALL_DIR) |
| 3630 | 105 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
106 | $(OBJECTS): $(PURPLE_CONFIG_H) |
| 3630 | 107 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
108 | $(TARGET).dll: $(PURPLE_DLL).a $(OBJECTS) |
|
14294
04b7598fdbad
[gaim-migrate @ 16914]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
109 | $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll |
| 3630 | 110 | |
| 111 | ## | |
| 112 | ## CLEAN RULES | |
| 113 | ## | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
114 | clean: |
|
14617
7e4c1a72656a
[gaim-migrate @ 17278]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
115 | rm -f $(OBJECTS) |
|
7e4c1a72656a
[gaim-migrate @ 17278]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
116 | rm -f $(TARGET).dll |
| 3630 | 117 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
118 | include $(PIDGIN_COMMON_TARGETS) |