Fri, 09 Aug 2013 13:03:26 +0200
HTTP: successful is spelled with one l
| 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 \ | |
|
33942
e0a388ced476
win32: enable GnuTLS, this also enables ssl support for gg prpl
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33887
diff
changeset
|
34 | -I$(GTK_TOP)/lib/glib-2.0/include \ |
|
e0a388ced476
win32: enable GnuTLS, this also enables ssl support for gg prpl
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33887
diff
changeset
|
35 | -I$(GNUTLS_TOP)/include |
| 3630 | 36 | |
|
33942
e0a388ced476
win32: enable GnuTLS, this also enables ssl support for gg prpl
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33887
diff
changeset
|
37 | LIB_PATHS += \ |
|
e0a388ced476
win32: enable GnuTLS, this also enables ssl support for gg prpl
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33887
diff
changeset
|
38 | -L$(GTK_TOP)/lib \ |
|
e0a388ced476
win32: enable GnuTLS, this also enables ssl support for gg prpl
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33887
diff
changeset
|
39 | -L$(GNUTLS_TOP)/lib \ |
|
e0a388ced476
win32: enable GnuTLS, this also enables ssl support for gg prpl
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33887
diff
changeset
|
40 | -L$(PURPLE_TOP) |
| 3630 | 41 | |
| 42 | ## | |
| 43 | ## SOURCES, OBJECTS | |
| 44 | ## | |
| 11360 | 45 | C_SRC = \ |
| 33887 | 46 | account.c \ |
| 47 | avatar.c \ | |
| 48 | buddylist.c \ | |
| 49 | confer.c \ | |
| 50 | deprecated.c \ | |
| 51 | gg.c \ | |
| 52 | image.c \ | |
| 11360 | 53 | 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
|
54 | 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
|
55 | 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
|
56 | 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
|
57 | 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
|
58 | lib/encoding.c \ |
| 11360 | 59 | 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
|
60 | lib/handlers.c \ |
| 11360 | 61 | lib/http.c \ |
| 62 | 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
|
63 | lib/message.c \ |
| 11360 | 64 | lib/obsolete.c \ |
| 65 | lib/pubdir.c \ | |
| 66 | 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
|
67 | lib/resolver.c \ |
|
29824
9878119b5d78
Finish making libgadu compile on Windows. Fixes #10542 finally!
Krzysztof Klinikowski <kkszysiu@gmail.com>
parents:
29753
diff
changeset
|
68 | lib/sha1.c \ |
| 33887 | 69 | libgadu-events.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
|
70 | 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
|
71 | 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
|
72 | 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
|
73 | oauth/oauth-parameter.c \ |
| 33887 | 74 | oauth/oauth-purple.c \ |
| 75 | pubdir-prpl.c \ | |
| 76 | purplew.c \ | |
| 77 | resolver-purple.c \ | |
| 78 | roster.c \ | |
| 79 | servconn.c \ | |
| 80 | status.c \ | |
| 81 | utils.c \ | |
| 82 | validator.c \ | |
| 83 | xml.c | |
| 3630 | 84 | |
| 85 | OBJECTS = $(C_SRC:%.c=%.o) | |
| 86 | ||
| 87 | ## | |
| 88 | ## LIBRARIES | |
| 89 | ## | |
|
11546
acb5676e57bb
[gaim-migrate @ 13801]
Daniel Atallah <datallah@pidgin.im>
parents:
11360
diff
changeset
|
90 | LIBS = \ |
|
5932
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
4058
diff
changeset
|
91 | -lglib-2.0 \ |
|
33942
e0a388ced476
win32: enable GnuTLS, this also enables ssl support for gg prpl
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33887
diff
changeset
|
92 | -lgnutls \ |
|
5932
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
4058
diff
changeset
|
93 | -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
|
94 | -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
|
95 | -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
|
96 | -lz |
| 3630 | 97 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
98 | include $(PIDGIN_COMMON_RULES) |
| 3630 | 99 | |
| 100 | ## | |
| 101 | ## TARGET DEFINITIONS | |
| 102 | ## | |
|
14638
b0fa76dac93f
[gaim-migrate @ 17300]
Daniel Atallah <datallah@pidgin.im>
parents:
14617
diff
changeset
|
103 | .PHONY: all install clean |
| 3630 | 104 | |
| 105 | all: $(TARGET).dll | |
| 106 | ||
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
107 | install: all $(DLL_INSTALL_DIR) |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
108 | cp $(TARGET).dll $(DLL_INSTALL_DIR) |
| 3630 | 109 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
110 | $(OBJECTS): $(PURPLE_CONFIG_H) |
| 3630 | 111 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
112 | $(TARGET).dll: $(PURPLE_DLL).a $(OBJECTS) |
|
14294
04b7598fdbad
[gaim-migrate @ 16914]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
113 | $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll |
| 3630 | 114 | |
| 115 | ## | |
| 116 | ## CLEAN RULES | |
| 117 | ## | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
118 | clean: |
|
14617
7e4c1a72656a
[gaim-migrate @ 17278]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
119 | rm -f $(OBJECTS) |
|
7e4c1a72656a
[gaim-migrate @ 17278]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
120 | rm -f $(TARGET).dll |
| 3630 | 121 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
122 | include $(PIDGIN_COMMON_TARGETS) |