Fri, 14 Sep 2007 00:17:33 +0000
There shouldn't be assert()s in pretty much any libpurple code.
| 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 \ |
| 8313 | 51 | disco.c \ |
|
15235
0400ef40cf1b
[gaim-migrate @ 17959]
Daniel Atallah <datallah@pidgin.im>
parents:
14638
diff
changeset
|
52 | google.c \ |
| 7017 | 53 | iq.c \ |
| 54 | jabber.c \ | |
|
5932
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3718
diff
changeset
|
55 | jutil.c \ |
| 7017 | 56 | message.c \ |
| 7170 | 57 | oob.c \ |
| 7017 | 58 | parser.c \ |
|
19898
218e4bb04853
Fix mingw build of xmpp prpl
Daniel Atallah <datallah@pidgin.im>
parents:
17769
diff
changeset
|
59 | pep.c \ |
|
17769
69d98a4da006
applied patch for supporting XEP-0199: XMPP Ping
Andreas Monitzer <am@adiumx.com>
parents:
16652
diff
changeset
|
60 | ping.c \ |
| 7017 | 61 | presence.c \ |
| 62 | roster.c \ | |
| 7395 | 63 | si.c \ |
|
19898
218e4bb04853
Fix mingw build of xmpp prpl
Daniel Atallah <datallah@pidgin.im>
parents:
17769
diff
changeset
|
64 | usermood.c \ |
|
218e4bb04853
Fix mingw build of xmpp prpl
Daniel Atallah <datallah@pidgin.im>
parents:
17769
diff
changeset
|
65 | usernick.c \ |
|
218e4bb04853
Fix mingw build of xmpp prpl
Daniel Atallah <datallah@pidgin.im>
parents:
17769
diff
changeset
|
66 | usertune.c \ |
| 7923 | 67 | xdata.c \ |
|
5932
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3718
diff
changeset
|
68 | win32/posix.uname.c |
| 3630 | 69 | |
| 70 | OBJECTS = $(C_SRC:%.c=%.o) | |
| 71 | ||
|
16309
347c01a71e7c
Fix win32 build for Jabber/XMPP split.
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
72 | XMPP_C_SRC = libxmpp.c |
|
347c01a71e7c
Fix win32 build for Jabber/XMPP split.
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
73 | XMPP_OBJECTS = $(XMPP_C_SRC:%.c=%.o) |
|
347c01a71e7c
Fix win32 build for Jabber/XMPP split.
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
74 | |
| 3630 | 75 | ## |
| 76 | ## LIBRARIES | |
| 77 | ## | |
|
13810
e63ac6c6ed1d
[gaim-migrate @ 16234]
Daniel Atallah <datallah@pidgin.im>
parents:
8313
diff
changeset
|
78 | LIBS = \ |
|
5932
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3718
diff
changeset
|
79 | -lglib-2.0 \ |
|
13810
e63ac6c6ed1d
[gaim-migrate @ 16234]
Daniel Atallah <datallah@pidgin.im>
parents:
8313
diff
changeset
|
80 | -lxml2 \ |
|
5932
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3718
diff
changeset
|
81 | -lws2_32 \ |
|
989a2714d78e
[gaim-migrate @ 6372]
Herman Bloggs <herman@bluedigits.com>
parents:
3718
diff
changeset
|
82 | -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
|
83 | -lpurple |
| 3630 | 84 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
85 | include $(PIDGIN_COMMON_RULES) |
| 3630 | 86 | |
| 87 | ## | |
| 88 | ## TARGET DEFINITIONS | |
| 89 | ## | |
|
14638
b0fa76dac93f
[gaim-migrate @ 17300]
Daniel Atallah <datallah@pidgin.im>
parents:
14617
diff
changeset
|
90 | .PHONY: all install clean |
| 3630 | 91 | |
|
16309
347c01a71e7c
Fix win32 build for Jabber/XMPP split.
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
92 | all: $(TARGET).dll $(XMPP_TARGET).dll |
| 3630 | 93 | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
94 | install: all $(DLL_INSTALL_DIR) |
|
16309
347c01a71e7c
Fix win32 build for Jabber/XMPP split.
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
95 | cp $(XMPP_TARGET).dll $(DLL_INSTALL_DIR) |
|
347c01a71e7c
Fix win32 build for Jabber/XMPP split.
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
96 | cp $(TARGET).dll $(PURPLE_INSTALL_DIR) |
| 3630 | 97 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
98 | $(OBJECTS): $(PURPLE_CONFIG_H) |
| 3630 | 99 | |
|
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
|
100 | $(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
|
101 | $(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
|
102 | |
|
347c01a71e7c
Fix win32 build for Jabber/XMPP split.
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
103 | $(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
|
104 | $(CC) -shared $(XMPP_OBJECTS) $(LIB_PATHS) $(LIBS) -ljabber $(DLL_LD_FLAGS) -o $(XMPP_TARGET).dll |
| 3630 | 105 | |
| 106 | ## | |
| 107 | ## CLEAN RULES | |
| 108 | ## | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
109 | clean: |
|
16309
347c01a71e7c
Fix win32 build for Jabber/XMPP split.
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
110 | 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
|
111 | rm -f $(XMPP_OBJECTS) $(XMPP_TARGET).dll |
| 3630 | 112 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
113 | include $(PIDGIN_COMMON_TARGETS) |