Mercurial > pidgin
annotate libgaim/protocols/jabber/Makefile.mingw @ 14673:a2b56d168a88
[gaim-migrate @ 17419]
Link to external libraries where necessary to reduce the number of undefined
symbols reported by ldd -r
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sun, 01 Oct 2006 16:33:14 +0000 |
parents | 5d03b309b482 |
children | 45fd925dd6a5 |
rev | line source |
---|---|
14192 | 1 # |
2 # Makefile.mingw | |
3 # | |
4 # Description: Makefile for win32 (mingw) version of libjabber | |
5 # | |
6 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
7 GAIM_TOP := ../../.. |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
8 include $(GAIM_TOP)/libgaim/win32/global.mak |
14192 | 9 |
10 TARGET = libjabber | |
14555
12cb76aeb21c
[gaim-migrate @ 17278]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14315
diff
changeset
|
11 TYPE = PLUGIN |
14192 | 12 |
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
13 # Static or Plugin... |
14192 | 14 ifeq ($(TYPE),STATIC) |
15 DEFINES += -DSTATIC | |
16 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR) | |
17 else | |
18 ifeq ($(TYPE),PLUGIN) | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
19 DLL_INSTALL_DIR = $(GAIM_INSTALL_PLUGINS_DIR) |
14192 | 20 endif |
21 endif | |
22 | |
23 ## | |
24 ## INCLUDE PATHS | |
25 ## | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
26 INCLUDE_PATHS += -I. \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
27 -I./win32 \ |
14192 | 28 -I$(GTK_TOP)/include \ |
29 -I$(GTK_TOP)/include/glib-2.0 \ | |
30 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
31 -I$(LIBXML2_TOP)/include \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
32 -I$(GAIM_LIB_TOP) \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
33 -I$(GAIM_LIB_TOP)/win32 \ |
14192 | 34 -I$(GAIM_TOP) |
35 | |
36 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
37 -L$(LIBXML2_TOP)/lib \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
38 -L$(GAIM_LIB_TOP) |
14192 | 39 |
40 ## | |
41 ## SOURCES, OBJECTS | |
42 ## | |
43 C_SRC = auth.c \ | |
44 buddy.c \ | |
45 chat.c \ | |
46 disco.c \ | |
47 iq.c \ | |
48 jabber.c \ | |
49 jutil.c \ | |
50 message.c \ | |
51 oob.c \ | |
52 parser.c \ | |
53 presence.c \ | |
54 roster.c \ | |
55 si.c \ | |
56 xdata.c \ | |
57 win32/posix.uname.c | |
58 | |
59 OBJECTS = $(C_SRC:%.c=%.o) | |
60 | |
61 ## | |
62 ## LIBRARIES | |
63 ## | |
64 LIBS = \ | |
65 -lglib-2.0 \ | |
66 -lxml2 \ | |
67 -lws2_32 \ | |
68 -lintl \ | |
69 -lgaim | |
70 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
71 include $(GAIM_COMMON_RULES) |
14192 | 72 |
73 ## | |
74 ## TARGET DEFINITIONS | |
75 ## | |
14576
5d03b309b482
[gaim-migrate @ 17300]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14555
diff
changeset
|
76 .PHONY: all install clean |
14192 | 77 |
78 all: $(TARGET).dll | |
79 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
80 install: all $(DLL_INSTALL_DIR) |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
81 cp $(TARGET).dll $(DLL_INSTALL_DIR) |
14192 | 82 |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
83 $(OBJECTS): $(GAIM_CONFIG_H) |
14192 | 84 |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
85 $(TARGET).dll: $(GAIM_LIBGAIM_DLL).a $(OBJECTS) |
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
86 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll |
14192 | 87 |
88 ## | |
89 ## CLEAN RULES | |
90 ## | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
91 clean: |
14555
12cb76aeb21c
[gaim-migrate @ 17278]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14315
diff
changeset
|
92 rm -f $(OBJECTS) |
12cb76aeb21c
[gaim-migrate @ 17278]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14315
diff
changeset
|
93 rm -f $(TARGET).dll |
14192 | 94 |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
95 include $(GAIM_COMMON_TARGETS) |