Mercurial > pidgin
annotate src/protocols/msn/Makefile.mingw @ 5316:d5690ed70085
[gaim-migrate @ 5688]
Added experimental support for the text/x-clientinfo content-type being
discussed on the forums at hypothetic.org. It may change, but for now, I
just want to play with it, and I want us to be able to accept the messages.
Ignore what it consists of right now. It'll change.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Tue, 06 May 2003 08:54:58 +0000 |
parents | 89948fedf782 |
children | daaeaf4696a1 |
rev | line source |
---|---|
3630 | 1 # |
2 # Makefile.mingw | |
3 # | |
4 # Description: Makefile for win32 (mingw) version of libmsn | |
5 # | |
6 | |
7 # | |
8 # PATHS | |
9 # | |
10 | |
11 INCLUDE_DIR := . | |
12 GTK_TOP := ../../../../win32-dev/gtk_2_0 | |
13 GAIM_TOP := ../../.. | |
14 MSN_ROOT := . | |
15 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir | |
16 | |
17 ## | |
18 ## VARIABLE DEFINITIONS | |
19 ## | |
20 | |
21 TARGET = libmsn | |
22 | |
23 # Compiler Options | |
24 | |
3718
fd3880c03f0d
[gaim-migrate @ 3851]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
25 CFLAGS = |
3630 | 26 |
3718
fd3880c03f0d
[gaim-migrate @ 3851]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
27 DEFINES = |
3630 | 28 |
29 # Static or Plugin... | |
30 ifeq ($(TYPE),STATIC) | |
31 DEFINES += -DSTATIC | |
32 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR) | |
33 else | |
34 ifeq ($(TYPE),PLUGIN) | |
35 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR)/plugins | |
36 endif | |
37 endif | |
38 | |
39 | |
40 ## | |
41 ## INCLUDE MAKEFILES | |
42 ## | |
43 | |
3718
fd3880c03f0d
[gaim-migrate @ 3851]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
44 include $(GAIM_TOP)/src/win32/global.mak |
3630 | 45 |
46 ## | |
47 ## INCLUDE PATHS | |
48 ## | |
49 | |
50 INCLUDE_PATHS += -I$(MSN_ROOT) \ | |
51 -I$(GTK_TOP)/include \ | |
52 -I$(GTK_TOP)/include/gtk-2.0 \ | |
53 -I$(GTK_TOP)/include/glib-2.0 \ | |
54 -I$(GTK_TOP)/include/pango-1.0 \ | |
55 -I$(GTK_TOP)/include/atk-1.0 \ | |
56 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
57 -I$(GTK_TOP)/lib/gtk-2.0/include \ | |
58 -I$(GAIM_TOP)/src \ | |
59 -I$(GAIM_TOP)/src/win32 \ | |
60 -I$(GAIM_TOP) | |
61 | |
62 | |
63 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
64 -L$(GAIM_TOP)/src | |
65 | |
66 | |
67 ## | |
68 ## SOURCES, OBJECTS | |
69 ## | |
70 | |
5312
89948fedf782
[gaim-migrate @ 5684]
Christian Hammond <chipx86@chipx86.com>
parents:
4546
diff
changeset
|
71 C_SRC = away.c \ |
89948fedf782
[gaim-migrate @ 5684]
Christian Hammond <chipx86@chipx86.com>
parents:
4546
diff
changeset
|
72 dispatch.c \ |
89948fedf782
[gaim-migrate @ 5684]
Christian Hammond <chipx86@chipx86.com>
parents:
4546
diff
changeset
|
73 error.c \ |
4546
a951bb590857
[gaim-migrate @ 4825]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
74 msg.c \ |
a951bb590857
[gaim-migrate @ 4825]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
75 msn.c \ |
5312
89948fedf782
[gaim-migrate @ 5684]
Christian Hammond <chipx86@chipx86.com>
parents:
4546
diff
changeset
|
76 notification.c \ |
89948fedf782
[gaim-migrate @ 5684]
Christian Hammond <chipx86@chipx86.com>
parents:
4546
diff
changeset
|
77 servconn.c \ |
89948fedf782
[gaim-migrate @ 5684]
Christian Hammond <chipx86@chipx86.com>
parents:
4546
diff
changeset
|
78 session.c \ |
89948fedf782
[gaim-migrate @ 5684]
Christian Hammond <chipx86@chipx86.com>
parents:
4546
diff
changeset
|
79 switchboard.c \ |
89948fedf782
[gaim-migrate @ 5684]
Christian Hammond <chipx86@chipx86.com>
parents:
4546
diff
changeset
|
80 user.c \ |
89948fedf782
[gaim-migrate @ 5684]
Christian Hammond <chipx86@chipx86.com>
parents:
4546
diff
changeset
|
81 utils.c |
3630 | 82 |
83 | |
84 OBJECTS = $(C_SRC:%.c=%.o) | |
85 | |
86 | |
87 ## | |
88 ## LIBRARIES | |
89 ## | |
90 | |
91 LIBS = -lgtk-win32-2.0 -lglib-2.0 -lgdk-win32-2.0 -lgmodule-2.0 -lgobject-2.0 -lws2_32 -lintl -lgaim | |
92 | |
93 # -liberty | |
94 | |
95 | |
96 ## | |
97 ## RULES | |
98 ## | |
99 | |
100 # How to make a C file | |
101 | |
102 %.o: %.c | |
103 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
104 | |
105 ## | |
106 ## TARGET DEFINITIONS | |
107 ## | |
108 | |
109 .PHONY: all clean | |
110 | |
111 all: $(TARGET).dll | |
112 | |
113 install: | |
114 cp $(MSN_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR) | |
115 | |
116 | |
117 ## | |
118 ## BUILD Dependencies | |
119 ## | |
120 | |
121 $(GAIM_TOP)/src/gaim.lib: | |
122 $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib | |
123 | |
124 ## | |
125 ## BUILD DLL | |
126 ## | |
127 | |
128 $(TARGET).def: $(OBJECTS) | |
129 dlltool --dllname $(TARGET).dll -z $(TARGET).def \ | |
130 $(OBJECTS) | |
131 | |
132 $(TARGET).base: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib | |
3718
fd3880c03f0d
[gaim-migrate @ 3851]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
133 $(CC) -mdll -o junk.tmp -Wl,--base-file,$@ $(OBJECTS) $(LIB_PATHS) $(LIBS) |
3630 | 134 rm -rf junk.tmp |
135 | |
136 $(TARGET).exp: $(TARGET).def $(TARGET).base | |
137 dlltool --dllname $(TARGET).dll --base-file $(TARGET).base \ | |
138 --output-exp $(TARGET).exp --def $(TARGET).def | |
139 rm -rf $(TARGET).base | |
140 | |
141 $(TARGET).dll: $(OBJECTS) $(TARGET).exp $(GAIM_TOP)/src/gaim.lib | |
142 dlltool -D $(TARGET).dll -d $(TARGET).def -l $(TARGET).lib | |
3718
fd3880c03f0d
[gaim-migrate @ 3851]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
143 $(CC) -mdll -o $(TARGET).dll $(OBJECTS) -Wl,$(TARGET).exp $(LIB_PATHS) $(LIBS) |
3630 | 144 rm -rf $(TARGET).exp |
145 | |
146 | |
147 ## | |
148 ## CLEAN RULES | |
149 ## | |
150 | |
151 clean: | |
152 rm -rf *.o | |
153 rm -rf $(TARGET).dll | |
154 rm -rf $(TARGET).lib | |
155 rm -rf $(TARGET).def |