Mon, 10 Feb 2014 16:22:00 +0530
Merged default branch
| 3630 | 1 | # |
| 2 | # Makefile.mingw | |
| 3 | # | |
| 4 | # Description: Makefile for win32 (mingw) version of libjabber | |
| 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 = libjabber | |
|
14617
7e4c1a72656a
[gaim-migrate @ 17278]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
11 | TYPE = PLUGIN |
| 3630 | 12 | |
|
14294
04b7598fdbad
[gaim-migrate @ 16914]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
13 | # Static or Plugin... |
| 3630 | 14 | ifeq ($(TYPE),STATIC) |
| 15 | DEFINES += -DSTATIC | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
16 | DLL_INSTALL_DIR = $(PURPLE_INSTALL_DIR) |
| 3630 | 17 | else |
| 18 | ifeq ($(TYPE),PLUGIN) | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
19 | DLL_INSTALL_DIR = $(PURPLE_INSTALL_PLUGINS_DIR) |
| 3630 | 20 | endif |
| 21 | endif | |
| 22 | ||
| 23 | ## | |
| 24 | ## INCLUDE PATHS | |
| 25 | ## | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
26 | INCLUDE_PATHS += -I. \ |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
27 | -I./win32 \ |
| 3630 | 28 | -I$(GTK_TOP)/include \ |
| 29 | -I$(GTK_TOP)/include/glib-2.0 \ | |
| 30 | -I$(GTK_TOP)/lib/glib-2.0/include \ | |
| 29735 | 31 | -I$(LIBXML2_TOP)/include/libxml2 \ |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
32 | -I$(PURPLE_TOP) \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
33 | -I$(PURPLE_TOP)/win32 \ |
|
33948
b6c9e5dd95d1
VV: win32 support. No runtimes dependencies in dep-bundle yet. Refs #11075
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33600
diff
changeset
|
34 | -I$(PIDGIN_TREE_TOP) \ |
|
b6c9e5dd95d1
VV: win32 support. No runtimes dependencies in dep-bundle yet. Refs #11075
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33600
diff
changeset
|
35 | $(VV_INCLUDE_PATHS) |
| 3630 | 36 | |
|
16393
d89faf3f5282
Allow include and lib paths to be overridden from local.ent
Daniel Atallah <datallah@pidgin.im>
parents:
16309
diff
changeset
|
37 | LIB_PATHS += -L$(GTK_TOP)/lib \ |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
38 | -L$(LIBXML2_TOP)/lib \ |
|
16309
347c01a71e7c
Fix win32 build for Jabber/XMPP split.
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
39 | -L$(PURPLE_TOP) \ |
|
33948
b6c9e5dd95d1
VV: win32 support. No runtimes dependencies in dep-bundle yet. Refs #11075
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33600
diff
changeset
|
40 | -L. \ |
|
b6c9e5dd95d1
VV: win32 support. No runtimes dependencies in dep-bundle yet. Refs #11075
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33600
diff
changeset
|
41 | $(VV_LIB_PATHS) |
| 3630 | 42 | |
| 43 | ## | |
| 44 | ## SOURCES, OBJECTS | |
| 45 | ## | |
|
33948
b6c9e5dd95d1
VV: win32 support. No runtimes dependencies in dep-bundle yet. Refs #11075
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33600
diff
changeset
|
46 | ifeq "$(USE_VV)" "1" |
|
b6c9e5dd95d1
VV: win32 support. No runtimes dependencies in dep-bundle yet. Refs #11075
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33600
diff
changeset
|
47 | VV_SRC = google/google_p2p.c |
|
b6c9e5dd95d1
VV: win32 support. No runtimes dependencies in dep-bundle yet. Refs #11075
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33600
diff
changeset
|
48 | else |
|
b6c9e5dd95d1
VV: win32 support. No runtimes dependencies in dep-bundle yet. Refs #11075
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33600
diff
changeset
|
49 | VV_SRC = |
|
b6c9e5dd95d1
VV: win32 support. No runtimes dependencies in dep-bundle yet. Refs #11075
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33600
diff
changeset
|
50 | endif |
|
b6c9e5dd95d1
VV: win32 support. No runtimes dependencies in dep-bundle yet. Refs #11075
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33600
diff
changeset
|
51 | |
|
19898
218e4bb04853
Fix mingw build of xmpp prpl
Daniel Atallah <datallah@pidgin.im>
parents:
17769
diff
changeset
|
52 | C_SRC = \ |
|
218e4bb04853
Fix mingw build of xmpp prpl
Daniel Atallah <datallah@pidgin.im>
parents:
17769
diff
changeset
|
53 | adhoccommands.c \ |
|
218e4bb04853
Fix mingw build of xmpp prpl
Daniel Atallah <datallah@pidgin.im>
parents:
17769
diff
changeset
|
54 | auth.c \ |
|
29093
97f444a10e7d
Add all those cool new files to Makefile.mingw
Paul Aurich <darkrain42@pidgin.im>
parents:
26968
diff
changeset
|
55 | auth_cyrus.c \ |
|
97f444a10e7d
Add all those cool new files to Makefile.mingw
Paul Aurich <darkrain42@pidgin.im>
parents:
26968
diff
changeset
|
56 | auth_digest_md5.c \ |
|
97f444a10e7d
Add all those cool new files to Makefile.mingw
Paul Aurich <darkrain42@pidgin.im>
parents:
26968
diff
changeset
|
57 | auth_plain.c \ |
|
97f444a10e7d
Add all those cool new files to Makefile.mingw
Paul Aurich <darkrain42@pidgin.im>
parents:
26968
diff
changeset
|
58 | auth_scram.c \ |
| 7017 | 59 | buddy.c \ |
| 26904 | 60 | bosh.c \ |
|
19898
218e4bb04853
Fix mingw build of xmpp prpl
Daniel Atallah <datallah@pidgin.im>
parents:
17769
diff
changeset
|
61 | caps.c \ |
| 7017 | 62 | chat.c \ |
|
23626
e21afec2f485
Custom smileys for XMPP according to XEP 0231. Refs #5627.
Marcus Lundblad <malu@pidgin.im>
parents:
22708
diff
changeset
|
63 | data.c \ |
| 8313 | 64 | disco.c \ |
|
36799
8bc56580f70e
Updated the protocol makefiles for windows
Ankit Vani <a@nevitus.org>
parents:
33948
diff
changeset
|
65 | facebook.c \ |
|
29913
58f5122fbcd3
First shot at refactoring the Google-specific XMPP code.
Marcus Lundblad <malu@pidgin.im>
parents:
29735
diff
changeset
|
66 | google/gmail.c \ |
|
58f5122fbcd3
First shot at refactoring the Google-specific XMPP code.
Marcus Lundblad <malu@pidgin.im>
parents:
29735
diff
changeset
|
67 | google/google.c \ |
|
58f5122fbcd3
First shot at refactoring the Google-specific XMPP code.
Marcus Lundblad <malu@pidgin.im>
parents:
29735
diff
changeset
|
68 | google/google_presence.c \ |
|
58f5122fbcd3
First shot at refactoring the Google-specific XMPP code.
Marcus Lundblad <malu@pidgin.im>
parents:
29735
diff
changeset
|
69 | google/google_roster.c \ |
|
58f5122fbcd3
First shot at refactoring the Google-specific XMPP code.
Marcus Lundblad <malu@pidgin.im>
parents:
29735
diff
changeset
|
70 | google/google_session.c \ |
|
58f5122fbcd3
First shot at refactoring the Google-specific XMPP code.
Marcus Lundblad <malu@pidgin.im>
parents:
29735
diff
changeset
|
71 | google/jingleinfo.c \ |
|
30775
39d752af05d1
refactor out the relay credential fetching code to its own module
Marcus Lundblad <malu@pidgin.im>
parents:
29913
diff
changeset
|
72 | google/relay.c \ |
|
36799
8bc56580f70e
Updated the protocol makefiles for windows
Ankit Vani <a@nevitus.org>
parents:
33948
diff
changeset
|
73 | gtalk.c \ |
|
24372
830701cec96f
Implements file transfers using in-band bytestreams for XMPP
Marcus Lundblad <malu@pidgin.im>
parents:
23936
diff
changeset
|
74 | ibb.c \ |
| 7017 | 75 | iq.c \ |
| 76 | jabber.c \ | |
|
26143
673b6665624d
Restructure Jingle code to more easily support multiple application types.
Michael Ruprecht <maiku@pidgin.im>
parents:
23936
diff
changeset
|
77 | jingle/jingle.c \ |
|
673b6665624d
Restructure Jingle code to more easily support multiple application types.
Michael Ruprecht <maiku@pidgin.im>
parents:
23936
diff
changeset
|
78 | jingle/content.c \ |
|
26166
ad7d09fef256
Added a Jingle ice-udp transmitter.
Michael Ruprecht <maiku@pidgin.im>
parents:
26144
diff
changeset
|
79 | jingle/iceudp.c \ |
|
26143
673b6665624d
Restructure Jingle code to more easily support multiple application types.
Michael Ruprecht <maiku@pidgin.im>
parents:
23936
diff
changeset
|
80 | jingle/rawudp.c \ |
|
673b6665624d
Restructure Jingle code to more easily support multiple application types.
Michael Ruprecht <maiku@pidgin.im>
parents:
23936
diff
changeset
|
81 | jingle/rtp.c \ |
|
673b6665624d
Restructure Jingle code to more easily support multiple application types.
Michael Ruprecht <maiku@pidgin.im>
parents:
23936
diff
changeset
|
82 | jingle/session.c \ |
|
673b6665624d
Restructure Jingle code to more easily support multiple application types.
Michael Ruprecht <maiku@pidgin.im>
parents:
23936
diff
changeset
|
83 | jingle/transport.c \ |
|
5932
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3718
diff
changeset
|
84 | jutil.c \ |
| 7017 | 85 | message.c \ |
| 7170 | 86 | oob.c \ |
| 7017 | 87 | parser.c \ |
|
19898
218e4bb04853
Fix mingw build of xmpp prpl
Daniel Atallah <datallah@pidgin.im>
parents:
17769
diff
changeset
|
88 | pep.c \ |
|
17769
69d98a4da006
applied patch for supporting XEP-0199: XMPP Ping
Andreas Monitzer <am@adiumx.com>
parents:
16652
diff
changeset
|
89 | ping.c \ |
| 7017 | 90 | presence.c \ |
| 91 | roster.c \ | |
| 7395 | 92 | si.c \ |
|
26968
0527c5cc906b
Build error/warning fixes. Still not tested because libxmpp.dll won't load.
Paul Aurich <darkrain42@pidgin.im>
parents:
26904
diff
changeset
|
93 | useravatar.c \ |
|
19898
218e4bb04853
Fix mingw build of xmpp prpl
Daniel Atallah <datallah@pidgin.im>
parents:
17769
diff
changeset
|
94 | usermood.c \ |
|
218e4bb04853
Fix mingw build of xmpp prpl
Daniel Atallah <datallah@pidgin.im>
parents:
17769
diff
changeset
|
95 | usernick.c \ |
|
218e4bb04853
Fix mingw build of xmpp prpl
Daniel Atallah <datallah@pidgin.im>
parents:
17769
diff
changeset
|
96 | usertune.c \ |
| 7923 | 97 | xdata.c \ |
|
36799
8bc56580f70e
Updated the protocol makefiles for windows
Ankit Vani <a@nevitus.org>
parents:
33948
diff
changeset
|
98 | xmpp.c \ |
|
33948
b6c9e5dd95d1
VV: win32 support. No runtimes dependencies in dep-bundle yet. Refs #11075
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33600
diff
changeset
|
99 | win32/posix.uname.c \ |
|
b6c9e5dd95d1
VV: win32 support. No runtimes dependencies in dep-bundle yet. Refs #11075
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33600
diff
changeset
|
100 | $(VV_SRC) |
| 3630 | 101 | |
| 102 | OBJECTS = $(C_SRC:%.c=%.o) | |
| 103 | ||
| 104 | ## | |
| 105 | ## LIBRARIES | |
| 106 | ## | |
|
13810
e63ac6c6ed1d
[gaim-migrate @ 16234]
Daniel Atallah <datallah@pidgin.im>
parents:
8313
diff
changeset
|
107 | LIBS = \ |
|
5932
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3718
diff
changeset
|
108 | -lglib-2.0 \ |
|
26221
bc5d5d3fe4de
Make it compile in Windows with the equivalent of --disable-vv.
Michael Ruprecht <maiku@pidgin.im>
parents:
26166
diff
changeset
|
109 | -lgobject-2.0 \ |
|
33948
b6c9e5dd95d1
VV: win32 support. No runtimes dependencies in dep-bundle yet. Refs #11075
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33600
diff
changeset
|
110 | $(VV_LIBS) \ |
|
13810
e63ac6c6ed1d
[gaim-migrate @ 16234]
Daniel Atallah <datallah@pidgin.im>
parents:
8313
diff
changeset
|
111 | -lxml2 \ |
|
5932
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3718
diff
changeset
|
112 | -lws2_32 \ |
|
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3718
diff
changeset
|
113 | -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
|
114 | -lpurple |
| 3630 | 115 | |
|
20010
56e1d8b99853
Sneakiness to make it easy to compile xmpp on win32 with Cyrus SASL support. This isn't ready for popular consumption yet, but if anyone wants the sasl binary that I compiled against MIT Kerberos, let me know.
Daniel Atallah <datallah@pidgin.im>
parents:
19898
diff
changeset
|
116 | ifeq ($(CYRUS_SASL), 1) |
|
56e1d8b99853
Sneakiness to make it easy to compile xmpp on win32 with Cyrus SASL support. This isn't ready for popular consumption yet, but if anyone wants the sasl binary that I compiled against MIT Kerberos, let me know.
Daniel Atallah <datallah@pidgin.im>
parents:
19898
diff
changeset
|
117 | INCLUDE_PATHS += -I$(CYRUS_SASL_TOP)/include |
|
22708
851e843a81a1
per daniel, this is the correct fix to cross compiling with gcc 4.x
Gary Kramlich <grim@reaperworld.com>
parents:
22643
diff
changeset
|
118 | LIB_PATHS += -L$(CYRUS_SASL_TOP)/bin |
|
20010
56e1d8b99853
Sneakiness to make it easy to compile xmpp on win32 with Cyrus SASL support. This isn't ready for popular consumption yet, but if anyone wants the sasl binary that I compiled against MIT Kerberos, let me know.
Daniel Atallah <datallah@pidgin.im>
parents:
19898
diff
changeset
|
119 | LIBS += -llibsasl |
|
56e1d8b99853
Sneakiness to make it easy to compile xmpp on win32 with Cyrus SASL support. This isn't ready for popular consumption yet, but if anyone wants the sasl binary that I compiled against MIT Kerberos, let me know.
Daniel Atallah <datallah@pidgin.im>
parents:
19898
diff
changeset
|
120 | endif |
|
56e1d8b99853
Sneakiness to make it easy to compile xmpp on win32 with Cyrus SASL support. This isn't ready for popular consumption yet, but if anyone wants the sasl binary that I compiled against MIT Kerberos, let me know.
Daniel Atallah <datallah@pidgin.im>
parents:
19898
diff
changeset
|
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_RULES) |
| 3630 | 123 | |
| 124 | ## | |
| 125 | ## TARGET DEFINITIONS | |
| 126 | ## | |
|
14638
b0fa76dac93f
[gaim-migrate @ 17300]
Daniel Atallah <datallah@pidgin.im>
parents:
14617
diff
changeset
|
127 | .PHONY: all install clean |
| 3630 | 128 | |
|
36799
8bc56580f70e
Updated the protocol makefiles for windows
Ankit Vani <a@nevitus.org>
parents:
33948
diff
changeset
|
129 | all: $(TARGET).dll |
| 3630 | 130 | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
131 | install: all $(DLL_INSTALL_DIR) |
|
36799
8bc56580f70e
Updated the protocol makefiles for windows
Ankit Vani <a@nevitus.org>
parents:
33948
diff
changeset
|
132 | cp $(TARGET).dll $(DLL_INSTALL_DIR) |
| 3630 | 133 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
134 | $(OBJECTS): $(PURPLE_CONFIG_H) |
| 3630 | 135 | |
|
36799
8bc56580f70e
Updated the protocol makefiles for windows
Ankit Vani <a@nevitus.org>
parents:
33948
diff
changeset
|
136 | $(TARGET).dll: $(PURPLE_DLL).a $(OBJECTS) |
|
8bc56580f70e
Updated the protocol makefiles for windows
Ankit Vani <a@nevitus.org>
parents:
33948
diff
changeset
|
137 | $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll |
| 3630 | 138 | |
| 139 | ## | |
| 140 | ## CLEAN RULES | |
| 141 | ## | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
142 | clean: |
|
36799
8bc56580f70e
Updated the protocol makefiles for windows
Ankit Vani <a@nevitus.org>
parents:
33948
diff
changeset
|
143 | rm -f $(OBJECTS) $(TARGET).dll |
| 3630 | 144 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
145 | include $(PIDGIN_COMMON_TARGETS) |