Mercurial > pidgin
annotate src/protocols/yahoo/Makefile.mingw @ 10470:eaa9552a5e0f
[gaim-migrate @ 11752]
Fix sf patch #1094564, from Evan Schoenberg
Basically our ft API allows the filename to be NULL, but there are
times when we attempt to print the filename and don't check if it's
NULL first. This apparently sometimes causes crashes (on win32, OSX,
Solaris, and I guess any other OS that doesn't let you printf("%s", NULL);
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 04 Jan 2005 01:58:36 +0000 |
parents | a7a2c27248af |
children | 5d3f8d9e8f92 |
rev | line source |
---|---|
3630 | 1 # |
2 # Makefile.mingw | |
3 # | |
4 # Description: Makefile for win32 (mingw) version of libyahoo | |
5 # | |
6 | |
7 # | |
8 # PATHS | |
9 # | |
10 | |
11 INCLUDE_DIR := . | |
12 GTK_TOP := ../../../../win32-dev/gtk_2_0 | |
13 GAIM_TOP := ../../.. | |
14 YAHOO_ROOT := . | |
15 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir | |
16 | |
17 ## | |
18 ## VARIABLE DEFINITIONS | |
19 ## | |
20 | |
21 TARGET = libyahoo | |
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$(YAHOO_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 | |
5932
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
71 C_SRC = yahoo.c \ |
8349 | 72 yahoo_auth.c \ |
6745
57a24492434b
[gaim-migrate @ 7277]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6574
diff
changeset
|
73 yahoochat.c \ |
7659 | 74 yahoo_filexfer.c \ |
10393 | 75 yahoo_packet.c \ |
9162 | 76 yahoo_profile.c \ |
9306 | 77 yahoo_picture.c \ |
9278 | 78 yahoo_friend.c \ |
9376 | 79 ycht.c \ |
6574
6256c2903d56
[gaim-migrate @ 7096]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5932
diff
changeset
|
80 crypt.c \ |
6256c2903d56
[gaim-migrate @ 7096]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5932
diff
changeset
|
81 util.c |
3630 | 82 |
83 | |
84 OBJECTS = $(C_SRC:%.c=%.o) | |
85 | |
86 | |
87 ## | |
88 ## LIBRARIES | |
89 ## | |
90 | |
5932
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
91 LIBS = -lgtk-win32-2.0 \ |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
92 -lglib-2.0 \ |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
93 -lgdk-win32-2.0 \ |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
94 -lgmodule-2.0 \ |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
95 -lgobject-2.0 \ |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
96 -lws2_32 \ |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
97 -lintl \ |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
98 -lgaim |
3630 | 99 |
100 | |
101 ## | |
102 ## RULES | |
103 ## | |
104 | |
105 # How to make a C file | |
106 | |
107 %.o: %.c | |
108 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
109 | |
110 ## | |
111 ## TARGET DEFINITIONS | |
112 ## | |
113 | |
114 .PHONY: all clean | |
115 | |
116 all: $(TARGET).dll | |
117 | |
118 install: | |
119 cp $(YAHOO_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR) | |
120 | |
121 | |
122 ## | |
123 ## BUILD Dependencies | |
124 ## | |
125 | |
126 $(GAIM_TOP)/src/gaim.lib: | |
127 $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib | |
128 | |
129 ## | |
130 ## BUILD DLL | |
131 ## | |
132 | |
5932
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
133 $(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
134 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--out-implib,$(TARGET).lib -o $(TARGET).dll |
3630 | 135 |
136 | |
137 ## | |
138 ## CLEAN RULES | |
139 ## | |
140 | |
141 clean: | |
142 rm -rf *.o | |
143 rm -rf $(TARGET).dll | |
144 rm -rf $(TARGET).lib |