Sun, 01 Jun 2008 20:55:54 +0000
Custom smileys for XMPP according to XEP 0231. Refs #5627.
committer: Sadrul Habib Chowdhury <sadrul@pidgin.im>
| 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 | |
|
16309
347c01a71e7c
Fix win32 build for Jabber/XMPP split.
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
11 | XMPP_TARGET = libxmpp |
|
14617
7e4c1a72656a
[gaim-migrate @ 17278]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
12 | TYPE = PLUGIN |
| 3630 | 13 | |
|
14294
04b7598fdbad
[gaim-migrate @ 16914]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
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 | ## | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
27 | INCLUDE_PATHS += -I. \ |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
28 | -I./win32 \ |
| 3630 | 29 | -I$(GTK_TOP)/include \ |
| 30 | -I$(GTK_TOP)/include/glib-2.0 \ | |
| 31 | -I$(GTK_TOP)/lib/glib-2.0/include \ | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
32 | -I$(LIBXML2_TOP)/include \ |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
33 | -I$(PURPLE_TOP) \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
34 | -I$(PURPLE_TOP)/win32 \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
35 | -I$(PIDGIN_TREE_TOP) |
| 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) \ |
|
347c01a71e7c
Fix win32 build for Jabber/XMPP split.
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
40 | -L. |
| 3630 | 41 | |
| 42 | ## | |
| 43 | ## SOURCES, OBJECTS | |
| 44 | ## | |
|
19898
218e4bb04853
Fix mingw build of xmpp prpl
Daniel Atallah <datallah@pidgin.im>
parents:
17769
diff
changeset
|
45 | C_SRC = \ |
|
218e4bb04853
Fix mingw build of xmpp prpl
Daniel Atallah <datallah@pidgin.im>
parents:
17769
diff
changeset
|
46 | adhoccommands.c \ |
|
218e4bb04853
Fix mingw build of xmpp prpl
Daniel Atallah <datallah@pidgin.im>
parents:
17769
diff
changeset
|
47 | auth.c \ |
| 7017 | 48 | buddy.c \ |
|
19898
218e4bb04853
Fix mingw build of xmpp prpl
Daniel Atallah <datallah@pidgin.im>
parents:
17769
diff
changeset
|
49 | caps.c \ |
| 7017 | 50 | chat.c \ |
|
23626
e21afec2f485
Custom smileys for XMPP according to XEP 0231. Refs #5627.
Marcus Lundblad <malu@pidgin.im>
parents:
22708
diff
changeset
|
51 | data.c \ |
| 8313 | 52 | disco.c \ |
|
15235
0400ef40cf1b
[gaim-migrate @ 17959]
Daniel Atallah <datallah@pidgin.im>
parents:
14638
diff
changeset
|
53 | google.c \ |
| 7017 | 54 | iq.c \ |
| 55 | jabber.c \ | |
|
5932
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3718
diff
changeset
|
56 | jutil.c \ |
| 7017 | 57 | message.c \ |
| 7170 | 58 | oob.c \ |
| 7017 | 59 | parser.c \ |
|
19898
218e4bb04853
Fix mingw build of xmpp prpl
Daniel Atallah <datallah@pidgin.im>
parents:
17769
diff
changeset
|
60 | pep.c \ |
|
17769
69d98a4da006
applied patch for supporting XEP-0199: XMPP Ping
Andreas Monitzer <am@adiumx.com>
parents:
16652
diff
changeset
|
61 | ping.c \ |
| 7017 | 62 | presence.c \ |
| 63 | roster.c \ | |
| 7395 | 64 | si.c \ |
|
19898
218e4bb04853
Fix mingw build of xmpp prpl
Daniel Atallah <datallah@pidgin.im>
parents:
17769
diff
changeset
|
65 | usermood.c \ |
|
218e4bb04853
Fix mingw build of xmpp prpl
Daniel Atallah <datallah@pidgin.im>
parents:
17769
diff
changeset
|
66 | usernick.c \ |
|
218e4bb04853
Fix mingw build of xmpp prpl
Daniel Atallah <datallah@pidgin.im>
parents:
17769
diff
changeset
|
67 | usertune.c \ |
| 7923 | 68 | xdata.c \ |
|
5932
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3718
diff
changeset
|
69 | win32/posix.uname.c |
| 3630 | 70 | |
| 71 | OBJECTS = $(C_SRC:%.c=%.o) | |
| 72 | ||
|
16309
347c01a71e7c
Fix win32 build for Jabber/XMPP split.
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
73 | XMPP_C_SRC = libxmpp.c |
|
347c01a71e7c
Fix win32 build for Jabber/XMPP split.
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
74 | XMPP_OBJECTS = $(XMPP_C_SRC:%.c=%.o) |
|
347c01a71e7c
Fix win32 build for Jabber/XMPP split.
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
75 | |
| 3630 | 76 | ## |
| 77 | ## LIBRARIES | |
| 78 | ## | |
|
13810
e63ac6c6ed1d
[gaim-migrate @ 16234]
Daniel Atallah <datallah@pidgin.im>
parents:
8313
diff
changeset
|
79 | LIBS = \ |
|
5932
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3718
diff
changeset
|
80 | -lglib-2.0 \ |
|
13810
e63ac6c6ed1d
[gaim-migrate @ 16234]
Daniel Atallah <datallah@pidgin.im>
parents:
8313
diff
changeset
|
81 | -lxml2 \ |
|
5932
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3718
diff
changeset
|
82 | -lws2_32 \ |
|
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3718
diff
changeset
|
83 | -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
|
84 | -lpurple |
| 3630 | 85 | |
|
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
|
86 | ifeq ($(CYRUS_SASL), 1) |
|
22643
c996d9a38402
Use the new cyrus-sasl package containing msvcrt dependent MIT gssapi libraries.
Daniel Atallah <datallah@pidgin.im>
parents:
22531
diff
changeset
|
87 | CYRUS_SASL_TOP := $(WIN32_DEV_TOP)/cyrus-sasl-2.1.22-daa1 |
|
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
|
88 | 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
|
89 | 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
|
90 | LIBS += -llibsasl |
|
20289
5c844288fbec
applied changes from 32f31e981f0618a4167aa98bcc22c2dab13d1550
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
20010
diff
changeset
|
91 | CYRUS_SASL_DLLS = \ |
|
5c844288fbec
applied changes from 32f31e981f0618a4167aa98bcc22c2dab13d1550
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
20010
diff
changeset
|
92 | $(CYRUS_SASL_TOP)/bin/comerr32.dll \ |
|
5c844288fbec
applied changes from 32f31e981f0618a4167aa98bcc22c2dab13d1550
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
20010
diff
changeset
|
93 | $(CYRUS_SASL_TOP)/bin/gssapi32.dll \ |
|
5c844288fbec
applied changes from 32f31e981f0618a4167aa98bcc22c2dab13d1550
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
20010
diff
changeset
|
94 | $(CYRUS_SASL_TOP)/bin/k5sprt32.dll \ |
|
5c844288fbec
applied changes from 32f31e981f0618a4167aa98bcc22c2dab13d1550
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
20010
diff
changeset
|
95 | $(CYRUS_SASL_TOP)/bin/krb5_32.dll \ |
|
5c844288fbec
applied changes from 32f31e981f0618a4167aa98bcc22c2dab13d1550
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
20010
diff
changeset
|
96 | $(CYRUS_SASL_TOP)/bin/libsasl.dll |
|
5c844288fbec
applied changes from 32f31e981f0618a4167aa98bcc22c2dab13d1550
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
20010
diff
changeset
|
97 | |
|
5c844288fbec
applied changes from 32f31e981f0618a4167aa98bcc22c2dab13d1550
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
20010
diff
changeset
|
98 | CYRUS_SASL_PLUGINS = \ |
|
5c844288fbec
applied changes from 32f31e981f0618a4167aa98bcc22c2dab13d1550
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
20010
diff
changeset
|
99 | $(CYRUS_SASL_TOP)/bin/sasl2/saslANONYMOUS.dll \ |
|
5c844288fbec
applied changes from 32f31e981f0618a4167aa98bcc22c2dab13d1550
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
20010
diff
changeset
|
100 | $(CYRUS_SASL_TOP)/bin/sasl2/saslCRAMMD5.dll \ |
|
5c844288fbec
applied changes from 32f31e981f0618a4167aa98bcc22c2dab13d1550
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
20010
diff
changeset
|
101 | $(CYRUS_SASL_TOP)/bin/sasl2/saslDIGESTMD5.dll \ |
|
5c844288fbec
applied changes from 32f31e981f0618a4167aa98bcc22c2dab13d1550
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
20010
diff
changeset
|
102 | $(CYRUS_SASL_TOP)/bin/sasl2/saslGSSAPI.dll \ |
|
5c844288fbec
applied changes from 32f31e981f0618a4167aa98bcc22c2dab13d1550
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
20010
diff
changeset
|
103 | $(CYRUS_SASL_TOP)/bin/sasl2/saslLOGIN.dll \ |
|
5c844288fbec
applied changes from 32f31e981f0618a4167aa98bcc22c2dab13d1550
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
20010
diff
changeset
|
104 | $(CYRUS_SASL_TOP)/bin/sasl2/saslPLAIN.dll |
|
5c844288fbec
applied changes from 32f31e981f0618a4167aa98bcc22c2dab13d1550
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
20010
diff
changeset
|
105 | |
|
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
|
106 | 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
|
107 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
108 | include $(PIDGIN_COMMON_RULES) |
| 3630 | 109 | |
| 110 | ## | |
| 111 | ## TARGET DEFINITIONS | |
| 112 | ## | |
|
14638
b0fa76dac93f
[gaim-migrate @ 17300]
Daniel Atallah <datallah@pidgin.im>
parents:
14617
diff
changeset
|
113 | .PHONY: all install clean |
| 3630 | 114 | |
|
16309
347c01a71e7c
Fix win32 build for Jabber/XMPP split.
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
115 | all: $(TARGET).dll $(XMPP_TARGET).dll |
| 3630 | 116 | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
117 | install: all $(DLL_INSTALL_DIR) |
|
16309
347c01a71e7c
Fix win32 build for Jabber/XMPP split.
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
118 | cp $(XMPP_TARGET).dll $(DLL_INSTALL_DIR) |
|
347c01a71e7c
Fix win32 build for Jabber/XMPP split.
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
119 | cp $(TARGET).dll $(PURPLE_INSTALL_DIR) |
|
20289
5c844288fbec
applied changes from 32f31e981f0618a4167aa98bcc22c2dab13d1550
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
20010
diff
changeset
|
120 | ifeq ($(CYRUS_SASL), 1) |
|
5c844288fbec
applied changes from 32f31e981f0618a4167aa98bcc22c2dab13d1550
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
20010
diff
changeset
|
121 | mkdir -p $(PURPLE_INSTALL_DIR)/sasl2 |
|
5c844288fbec
applied changes from 32f31e981f0618a4167aa98bcc22c2dab13d1550
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
20010
diff
changeset
|
122 | cp $(CYRUS_SASL_DLLS) $(PURPLE_INSTALL_DIR) |
|
5c844288fbec
applied changes from 32f31e981f0618a4167aa98bcc22c2dab13d1550
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
20010
diff
changeset
|
123 | cp $(CYRUS_SASL_PLUGINS) $(PURPLE_INSTALL_DIR)/sasl2 |
|
5c844288fbec
applied changes from 32f31e981f0618a4167aa98bcc22c2dab13d1550
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
20010
diff
changeset
|
124 | endif |
| 3630 | 125 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
126 | $(OBJECTS): $(PURPLE_CONFIG_H) |
| 3630 | 127 | |
|
16652
e12196c7e481
Lee Roach noticed that there is no rule to explicitly build libjabber.dll.a
Daniel Atallah <datallah@pidgin.im>
parents:
16393
diff
changeset
|
128 | $(TARGET).dll $(TARGET).dll.a: $(PURPLE_DLL).a $(OBJECTS) |
|
16309
347c01a71e7c
Fix win32 build for Jabber/XMPP split.
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
129 | $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--out-implib,$(TARGET).dll.a -o $(TARGET).dll |
|
347c01a71e7c
Fix win32 build for Jabber/XMPP split.
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
130 | |
|
347c01a71e7c
Fix win32 build for Jabber/XMPP split.
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
131 | $(XMPP_TARGET).dll: $(TARGET).dll.a $(XMPP_OBJECTS) |
|
347c01a71e7c
Fix win32 build for Jabber/XMPP split.
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
132 | $(CC) -shared $(XMPP_OBJECTS) $(LIB_PATHS) $(LIBS) -ljabber $(DLL_LD_FLAGS) -o $(XMPP_TARGET).dll |
| 3630 | 133 | |
| 134 | ## | |
| 135 | ## CLEAN RULES | |
| 136 | ## | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
137 | clean: |
|
16309
347c01a71e7c
Fix win32 build for Jabber/XMPP split.
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
138 | rm -f $(OBJECTS) $(TARGET).dll $(TARGET).dll.a |
|
347c01a71e7c
Fix win32 build for Jabber/XMPP split.
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
139 | rm -f $(XMPP_OBJECTS) $(XMPP_TARGET).dll |
| 3630 | 140 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
141 | include $(PIDGIN_COMMON_TARGETS) |