Mercurial > pidgin
annotate src/protocols/oscar/Makefile.mingw @ 8519:f8ab826e11ad
[gaim-migrate @ 9258]
" this patch will return the text for the smileys instead
of skipping them. This patch also gets rid of two
members in the gtkimhtml stuct that weren't being used
anywhere. They were gboolean smileys, comments; which
got replace with show_smileys, and show_comments. Also
an fixes the gtk_imhtml_class_init so that if it's
being compiled in c++, it will compile..." --Gary Kramlich
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Mon, 29 Mar 2004 16:20:30 +0000 |
parents | 4375bf2d9020 |
children | 212946f774c0 |
rev | line source |
---|---|
3630 | 1 # |
2 # Makefile.mingw | |
3 # | |
4 # Description: Makefile for win32 (mingw) version of liboscar | |
5 # | |
6 | |
7 # | |
8 # PATHS | |
9 # | |
10 | |
11 OSCAR_ROOT := . | |
12 GTK_TOP := ../../../../win32-dev/gtk_2_0 | |
13 GAIM_TOP := ../../.. | |
14 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir | |
15 | |
16 ## | |
17 ## VARIABLE DEFINITIONS | |
18 ## | |
19 | |
20 TARGET = liboscar | |
21 | |
22 # Compiler Options | |
23 | |
3718
fd3880c03f0d
[gaim-migrate @ 3851]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3695
diff
changeset
|
24 CFLAGS = |
3630 | 25 |
3718
fd3880c03f0d
[gaim-migrate @ 3851]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3695
diff
changeset
|
26 DEFINES = |
3630 | 27 |
28 # Static or Plugin... | |
29 ifeq ($(TYPE),STATIC) | |
30 DEFINES += -DSTATIC | |
31 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR) | |
32 else | |
33 ifeq ($(TYPE),PLUGIN) | |
34 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR)/plugins | |
35 endif | |
36 endif | |
37 | |
38 | |
39 ## | |
40 ## INCLUDE MAKEFILES | |
41 ## | |
42 | |
3718
fd3880c03f0d
[gaim-migrate @ 3851]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3695
diff
changeset
|
43 include $(GAIM_TOP)/src/win32/global.mak |
3630 | 44 |
45 ## | |
46 ## INCLUDE PATHS | |
47 ## | |
48 | |
49 INCLUDE_PATHS += -I$(OSCAR_ROOT) \ | |
50 -I$(GTK_TOP)/include \ | |
51 -I$(GTK_TOP)/include/gtk-2.0 \ | |
52 -I$(GTK_TOP)/include/glib-2.0 \ | |
53 -I$(GTK_TOP)/include/pango-1.0 \ | |
54 -I$(GTK_TOP)/include/atk-1.0 \ | |
55 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
56 -I$(GTK_TOP)/lib/gtk-2.0/include \ | |
57 -I$(GAIM_TOP)/src \ | |
58 -I$(GAIM_TOP)/src/win32 \ | |
59 -I$(GAIM_TOP) | |
60 | |
61 | |
62 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
63 -L$(GAIM_TOP)/src | |
64 | |
65 | |
66 ## | |
67 ## SOURCES, OBJECTS | |
68 ## | |
69 | |
70 C_SRC = admin.c \ | |
71 adverts.c \ | |
72 auth.c \ | |
6879 | 73 bart.c \ |
3630 | 74 bos.c \ |
3952 | 75 bstream.c \ |
3630 | 76 buddylist.c \ |
77 chat.c \ | |
78 chatnav.c \ | |
79 conn.c \ | |
3695 | 80 email.c \ |
3630 | 81 ft.c \ |
82 icq.c \ | |
83 im.c \ | |
84 invite.c \ | |
7011 | 85 locate.c \ |
3630 | 86 misc.c \ |
87 msgcookie.c \ | |
6879 | 88 odir.c \ |
3630 | 89 popups.c \ |
90 rxhandlers.c \ | |
91 rxqueue.c \ | |
92 search.c \ | |
93 service.c \ | |
94 snac.c \ | |
95 ssi.c \ | |
96 stats.c \ | |
97 tlv.c \ | |
98 translate.c \ | |
99 txqueue.c \ | |
100 util.c \ | |
101 oscar.c | |
102 | |
103 | |
104 OBJECTS = $(C_SRC:%.c=%.o) | |
105 | |
106 | |
107 ## | |
108 ## LIBRARIES | |
109 ## | |
110 | |
5932
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4804
diff
changeset
|
111 LIBS = -lgtk-win32-2.0 \ |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4804
diff
changeset
|
112 -lglib-2.0 \ |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4804
diff
changeset
|
113 -lgdk-win32-2.0 \ |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4804
diff
changeset
|
114 -lgmodule-2.0 \ |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4804
diff
changeset
|
115 -lgobject-2.0 \ |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4804
diff
changeset
|
116 -lintl \ |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4804
diff
changeset
|
117 -lws2_32 \ |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4804
diff
changeset
|
118 -lgaim |
3630 | 119 |
120 | |
121 ## | |
122 ## RULES | |
123 ## | |
124 | |
125 # How to make a C file | |
126 | |
127 %.o: %.c | |
128 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
129 | |
130 ## | |
131 ## TARGET DEFINITIONS | |
132 ## | |
133 | |
134 .PHONY: all clean | |
135 | |
136 all: $(TARGET).dll | |
137 | |
138 install: | |
139 cp $(OSCAR_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR) | |
140 | |
141 | |
142 ## | |
143 ## BUILD Dependencies | |
144 ## | |
145 | |
146 $(GAIM_TOP)/src/gaim.lib: | |
147 $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib | |
148 | |
149 ## | |
150 ## BUILD DLL | |
151 ## | |
152 | |
5932
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4804
diff
changeset
|
153 $(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4804
diff
changeset
|
154 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--out-implib,$(TARGET).lib -o $(TARGET).dll |
3630 | 155 |
156 ## | |
157 ## CLEAN RULES | |
158 ## | |
159 | |
160 clean: | |
161 rm -rf *.o | |
162 rm -rf $(TARGET).dll | |
163 rm -rf $(TARGET).lib |