Mercurial > pidgin
annotate libgaim/protocols/msn/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 libmsn | |
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 = libmsn | |
11 | |
12 # Static or Plugin... | |
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 = cmdproc.c \ | |
40 command.c \ | |
41 dialog.c \ | |
42 directconn.c \ | |
43 error.c \ | |
44 group.c \ | |
45 history.c \ | |
46 httpconn.c \ | |
47 msg.c \ | |
48 msn.c \ | |
49 nexus.c \ | |
50 notification.c \ | |
51 object.c \ | |
52 page.c \ | |
53 servconn.c \ | |
54 session.c \ | |
55 slp.c \ | |
56 slpcall.c \ | |
57 slplink.c \ | |
58 slpmsg.c \ | |
59 slpsession.c \ | |
60 state.c \ | |
61 switchboard.c \ | |
62 sync.c \ | |
63 table.c \ | |
64 transaction.c \ | |
65 user.c \ | |
66 userlist.c \ | |
67 msn-utils.c | |
68 | |
69 OBJECTS = $(C_SRC:%.c=%.o) | |
70 | |
71 ## | |
72 ## LIBRARIES | |
73 ## | |
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
74 LIBS = \ |
14192 | 75 -lglib-2.0 \ |
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
76 -lintl \ |
14192 | 77 -lws2_32 \ |
78 -lgaim | |
79 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
80 include $(GAIM_COMMON_RULES) |
14192 | 81 |
82 ## | |
83 ## TARGET DEFINITIONS | |
84 ## | |
85 .PHONY: all clean | |
86 | |
87 all: $(TARGET).dll | |
88 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
89 install: all $(DLL_INSTALL_DIR) |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
90 cp $(TARGET).dll $(DLL_INSTALL_DIR) |
14192 | 91 |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
92 $(OBJECTS): $(GAIM_CONFIG_H) |
14192 | 93 |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
94 $(TARGET).dll: $(GAIM_LIBGAIM_DLL).a $(OBJECTS) |
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
95 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll |
14192 | 96 |
97 ## | |
98 ## CLEAN RULES | |
99 ## | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
100 clean: |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
101 rm -rf $(OBJECTS) |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
102 rm -rf $(TARGET).dll |
14192 | 103 |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
104 include $(GAIM_COMMON_TARGETS) |