Mercurial > pidgin.yaz
annotate libgaim/protocols/yahoo/Makefile.mingw @ 14315:8793fc8f7064
[gaim-migrate @ 17008]
Lee Roach revamped the win32 makefiles. This makes me happy, they were in dire need of some loving.
This makes life a great deal easier for anyone who wants to build out-of-tree plugins.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Wed, 23 Aug 2006 21:34:43 +0000 |
parents | a7590884324d |
children | 12cb76aeb21c |
rev | line source |
---|---|
14192 | 1 # |
2 # Makefile.mingw | |
3 # | |
4 # Description: Makefile for win32 (mingw) version of libyahoo | |
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 = libyahoo | |
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. \ |
14192 | 26 -I$(GTK_TOP)/include \ |
27 -I$(GTK_TOP)/include/glib-2.0 \ | |
28 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
29 -I$(GAIM_LIB_TOP) \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
30 -I$(GAIM_LIB_TOP)/win32 \ |
14192 | 31 -I$(GAIM_TOP) |
32 | |
33 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
34 -L$(GAIM_LIB_TOP) |
14192 | 35 |
36 ## | |
37 ## SOURCES, OBJECTS | |
38 ## | |
39 C_SRC = util.c \ | |
40 yahoo.c \ | |
41 yahoochat.c \ | |
42 yahoo_auth.c \ | |
43 yahoo_crypt.c \ | |
44 yahoo_doodle.c \ | |
45 yahoo_filexfer.c \ | |
46 yahoo_friend.c \ | |
47 yahoo_packet.c \ | |
48 yahoo_picture.c \ | |
49 yahoo_profile.c \ | |
50 ycht.c | |
51 | |
52 OBJECTS = $(C_SRC:%.c=%.o) | |
53 | |
54 ## | |
55 ## LIBRARIES | |
56 ## | |
57 LIBS = \ | |
58 -lglib-2.0 \ | |
59 -lgobject-2.0 \ | |
60 -lws2_32 \ | |
61 -lintl \ | |
62 -lgaim | |
63 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
64 include $(GAIM_COMMON_RULES) |
14192 | 65 |
66 ## | |
67 ## TARGET DEFINITIONS | |
68 ## | |
69 | |
70 .PHONY: all clean | |
71 | |
72 all: $(TARGET).dll | |
73 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
74 install: all $(DLL_INSTALL_DIR) |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
75 cp $(TARGET).dll $(DLL_INSTALL_DIR) |
14192 | 76 |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
77 $(OBJECTS): $(GAIM_CONFIG_H) |
14192 | 78 |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
79 $(TARGET).dll: $(GAIM_LIBGAIM_DLL).a $(OBJECTS) |
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
80 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll |
14192 | 81 |
82 ## | |
83 ## CLEAN RULES | |
84 ## | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
85 clean: |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
86 rm -rf $(OBJECTS) |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
87 rm -rf $(TARGET).dll |
14192 | 88 |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
89 include $(GAIM_COMMON_TARGETS) |