Mercurial > pidgin
annotate libgaim/protocols/jabber/Makefile.mingw @ 14441:b4a5b77e167e
[gaim-migrate @ 17155]
Minor cleanup and whitespace. And make some error messages a bit more
concise.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 04 Sep 2006 05:48:45 +0000 |
parents | 8793fc8f7064 |
children | 12cb76aeb21c |
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 | |
11 | |
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
12 # Static or Plugin... |
14192 | 13 ifeq ($(TYPE),STATIC) |
14 DEFINES += -DSTATIC | |
15 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR) | |
16 else | |
17 ifeq ($(TYPE),PLUGIN) | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
18 DLL_INSTALL_DIR = $(GAIM_INSTALL_PLUGINS_DIR) |
14192 | 19 endif |
20 endif | |
21 | |
22 ## | |
23 ## INCLUDE PATHS | |
24 ## | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
25 INCLUDE_PATHS += -I. \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
26 -I./win32 \ |
14192 | 27 -I$(GTK_TOP)/include \ |
28 -I$(GTK_TOP)/include/glib-2.0 \ | |
29 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
30 -I$(LIBXML2_TOP)/include \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
31 -I$(GAIM_LIB_TOP) \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
32 -I$(GAIM_LIB_TOP)/win32 \ |
14192 | 33 -I$(GAIM_TOP) |
34 | |
35 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
36 -L$(LIBXML2_TOP)/lib \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
37 -L$(GAIM_LIB_TOP) |
14192 | 38 |
39 ## | |
40 ## SOURCES, OBJECTS | |
41 ## | |
42 C_SRC = auth.c \ | |
43 buddy.c \ | |
44 chat.c \ | |
45 disco.c \ | |
46 iq.c \ | |
47 jabber.c \ | |
48 jutil.c \ | |
49 message.c \ | |
50 oob.c \ | |
51 parser.c \ | |
52 presence.c \ | |
53 roster.c \ | |
54 si.c \ | |
55 xdata.c \ | |
56 win32/posix.uname.c | |
57 | |
58 OBJECTS = $(C_SRC:%.c=%.o) | |
59 | |
60 ## | |
61 ## LIBRARIES | |
62 ## | |
63 LIBS = \ | |
64 -lglib-2.0 \ | |
65 -lxml2 \ | |
66 -lws2_32 \ | |
67 -lintl \ | |
68 -lgaim | |
69 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
70 include $(GAIM_COMMON_RULES) |
14192 | 71 |
72 ## | |
73 ## TARGET DEFINITIONS | |
74 ## | |
75 .PHONY: all clean | |
76 | |
77 all: $(TARGET).dll | |
78 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
79 install: all $(DLL_INSTALL_DIR) |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
80 cp $(TARGET).dll $(DLL_INSTALL_DIR) |
14192 | 81 |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
82 $(OBJECTS): $(GAIM_CONFIG_H) |
14192 | 83 |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
84 $(TARGET).dll: $(GAIM_LIBGAIM_DLL).a $(OBJECTS) |
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
85 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll |
14192 | 86 |
87 ## | |
88 ## CLEAN RULES | |
89 ## | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
90 clean: |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
91 rm -rf $(OBJECTS) |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
92 rm -rf $(TARGET).dll |
14192 | 93 |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
94 include $(GAIM_COMMON_TARGETS) |