Tue, 04 Feb 2014 00:30:47 +0100
Style: fix gg braces (part 1)
| 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 \ |
| 3630 | 31 | -I$(GTK_TOP)/include \ |
| 32 | -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
|
33 | -I$(GTK_TOP)/lib/glib-2.0/include \ |
|
34440
83610e0823fb
Win32: fix compilation
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34433
diff
changeset
|
34 | -I$(GNUTLS_TOP)/include \ |
|
35139
c30787ce6256
Use external libgadu for win32 build and update some dependencies. Refs #343
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34951
diff
changeset
|
35 | -I$(JSON_GLIB_TOP)/include/json-glib-1.0 \ |
|
c30787ce6256
Use external libgadu for win32 build and update some dependencies. Refs #343
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34951
diff
changeset
|
36 | -I$(LIBGADU_TOP)/include |
| 3630 | 37 | |
|
33942
e0a388ced476
win32: enable GnuTLS, this also enables ssl support for gg prpl
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33887
diff
changeset
|
38 | LIB_PATHS += \ |
|
e0a388ced476
win32: enable GnuTLS, this also enables ssl support for gg prpl
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33887
diff
changeset
|
39 | -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
|
40 | -L$(GNUTLS_TOP)/lib \ |
|
35139
c30787ce6256
Use external libgadu for win32 build and update some dependencies. Refs #343
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34951
diff
changeset
|
41 | -L$(LIBGADU_TOP)/lib \ |
|
34440
83610e0823fb
Win32: fix compilation
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34433
diff
changeset
|
42 | -L$(JSON_GLIB_TOP)/lib \ |
|
33942
e0a388ced476
win32: enable GnuTLS, this also enables ssl support for gg prpl
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33887
diff
changeset
|
43 | -L$(PURPLE_TOP) |
| 3630 | 44 | |
| 45 | ## | |
| 46 | ## SOURCES, OBJECTS | |
| 47 | ## | |
| 11360 | 48 | C_SRC = \ |
| 33887 | 49 | avatar.c \ |
| 34951 | 50 | blist.c \ |
|
34440
83610e0823fb
Win32: fix compilation
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34433
diff
changeset
|
51 | chat.c \ |
| 33887 | 52 | deprecated.c \ |
|
34440
83610e0823fb
Win32: fix compilation
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34433
diff
changeset
|
53 | edisc.c \ |
| 33887 | 54 | gg.c \ |
|
34440
83610e0823fb
Win32: fix compilation
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34433
diff
changeset
|
55 | html.c \ |
| 33887 | 56 | image.c \ |
|
35144
3590ceb242b5
Gadu-Gadu: multilogon / other sessions dialog implementation. Refs #14366
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35139
diff
changeset
|
57 | keymapper.c \ |
| 33887 | 58 | 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
|
59 | libgaduw.c \ |
|
34440
83610e0823fb
Win32: fix compilation
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34433
diff
changeset
|
60 | message-prpl.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
|
61 | 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
|
62 | 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
|
63 | oauth/oauth-parameter.c \ |
| 33887 | 64 | oauth/oauth-purple.c \ |
| 65 | pubdir-prpl.c \ | |
| 66 | purplew.c \ | |
| 67 | resolver-purple.c \ | |
| 68 | roster.c \ | |
| 69 | servconn.c \ | |
| 70 | status.c \ | |
|
34433
fa2313e5f320
Gadu-Gadu: use our own proxy/tls connecting code instead of libgadu's
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
33942
diff
changeset
|
71 | tcpsocket.c \ |
| 33887 | 72 | utils.c \ |
| 73 | validator.c \ | |
| 74 | xml.c | |
| 3630 | 75 | |
| 76 | OBJECTS = $(C_SRC:%.c=%.o) | |
| 77 | ||
| 78 | ## | |
| 79 | ## LIBRARIES | |
| 80 | ## | |
|
11546
acb5676e57bb
[gaim-migrate @ 13801]
Daniel Atallah <datallah@pidgin.im>
parents:
11360
diff
changeset
|
81 | LIBS = \ |
|
35139
c30787ce6256
Use external libgadu for win32 build and update some dependencies. Refs #343
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34951
diff
changeset
|
82 | -lgadu \ |
|
5932
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
4058
diff
changeset
|
83 | -lglib-2.0 \ |
|
34440
83610e0823fb
Win32: fix compilation
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34433
diff
changeset
|
84 | -lgobject-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
|
85 | -lgnutls \ |
|
5932
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
4058
diff
changeset
|
86 | -lintl \ |
|
34440
83610e0823fb
Win32: fix compilation
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34433
diff
changeset
|
87 | -ljson-glib-1.0 \ |
|
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
|
88 | -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
|
89 | -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
|
90 | -lz |
| 3630 | 91 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
92 | include $(PIDGIN_COMMON_RULES) |
| 3630 | 93 | |
| 94 | ## | |
| 95 | ## TARGET DEFINITIONS | |
| 96 | ## | |
|
14638
b0fa76dac93f
[gaim-migrate @ 17300]
Daniel Atallah <datallah@pidgin.im>
parents:
14617
diff
changeset
|
97 | .PHONY: all install clean |
| 3630 | 98 | |
| 99 | all: $(TARGET).dll | |
| 100 | ||
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
101 | install: all $(DLL_INSTALL_DIR) |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
102 | cp $(TARGET).dll $(DLL_INSTALL_DIR) |
| 3630 | 103 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
104 | $(OBJECTS): $(PURPLE_CONFIG_H) |
| 3630 | 105 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
106 | $(TARGET).dll: $(PURPLE_DLL).a $(OBJECTS) |
|
14294
04b7598fdbad
[gaim-migrate @ 16914]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
107 | $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll |
| 3630 | 108 | |
| 109 | ## | |
| 110 | ## CLEAN RULES | |
| 111 | ## | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
112 | clean: |
|
14617
7e4c1a72656a
[gaim-migrate @ 17278]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
113 | rm -f $(OBJECTS) |
|
7e4c1a72656a
[gaim-migrate @ 17278]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
114 | rm -f $(TARGET).dll |
| 3630 | 115 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
116 | include $(PIDGIN_COMMON_TARGETS) |