Mercurial > pidgin.yaz
comparison libgaim/Makefile.mingw @ 14224:ab8a105eff62
[gaim-migrate @ 16905]
First step of getting wingaim working again.
libgaim and gtk are compiling.
The protocols aren't compiling yet.
There are a number of things that are compiling, but should be cleaned up.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Sun, 20 Aug 2006 16:49:37 +0000 |
parents | |
children | a7590884324d |
comparison
equal
deleted
inserted
replaced
14223:7c560c01b8f9 | 14224:ab8a105eff62 |
---|---|
1 # | |
2 # Makefile.mingw | |
3 # | |
4 # Description: Makefile for win32 (mingw) version of Gaim | |
5 # | |
6 | |
7 # | |
8 # PATHS | |
9 # | |
10 | |
11 INCLUDE_DIR := . | |
12 GTK_TOP := ../../win32-dev/gtk_2_0 | |
13 GAIM_TOP := .. | |
14 GAIM_SRC := . | |
15 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir | |
16 LIBXML2_DIR := ../../win32-dev/libxml2 | |
17 | |
18 ## | |
19 ## VARIABLE DEFINITIONS | |
20 ## | |
21 | |
22 TARGET = libgaim | |
23 | |
24 # Compiler and Linker Options | |
25 | |
26 CFLAGS = | |
27 | |
28 DEFINES = | |
29 | |
30 ## | |
31 ## INCLUDE MAKEFILES | |
32 ## | |
33 | |
34 include $(GAIM_TOP)/libgaim/win32/global.mak | |
35 | |
36 ## | |
37 ## INCLUDE PATHS | |
38 ## | |
39 | |
40 INCLUDE_PATHS = \ | |
41 -I$(INCLUDE_DIR) \ | |
42 -I$(INCLUDE_DIR)/win32 \ | |
43 -I$(GAIM_TOP) \ | |
44 -I$(GTK_TOP)/include \ | |
45 -I$(GTK_TOP)/include/glib-2.0 \ | |
46 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
47 -I$(LIBXML2_DIR)/include | |
48 | |
49 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
50 -L$(GAIM_SRC) \ | |
51 -L$(LIBXML2_DIR)/lib | |
52 | |
53 ## | |
54 ## SOURCES, OBJECTS | |
55 ## | |
56 | |
57 C_SRC = \ | |
58 account.c \ | |
59 accountopt.c \ | |
60 blist.c \ | |
61 buddyicon.c \ | |
62 cipher.c \ | |
63 cmds.c \ | |
64 connection.c \ | |
65 conversation.c \ | |
66 core.c \ | |
67 debug.c \ | |
68 dnsquery.c \ | |
69 dnssrv.c \ | |
70 eventloop.c \ | |
71 ft.c \ | |
72 circbuffer.c \ | |
73 idle.c \ | |
74 imgstore.c \ | |
75 log.c \ | |
76 mime.c \ | |
77 network.c \ | |
78 notify.c \ | |
79 ntlm.c \ | |
80 plugin.c \ | |
81 pluginpref.c \ | |
82 pounce.c \ | |
83 prefs.c \ | |
84 privacy.c \ | |
85 proxy.c \ | |
86 prpl.c \ | |
87 request.c \ | |
88 roomlist.c \ | |
89 savedstatuses.c \ | |
90 server.c \ | |
91 signals.c \ | |
92 sound.c \ | |
93 sslconn.c \ | |
94 status.c \ | |
95 stringref.c \ | |
96 stun.c \ | |
97 upnp.c \ | |
98 util.c \ | |
99 value.c \ | |
100 xmlnode.c \ | |
101 whiteboard.c \ | |
102 win32/libc_interface.c \ | |
103 win32/win32dep.c | |
104 | |
105 | |
106 OBJECTS = $(C_SRC:%.c=%.o) | |
107 | |
108 ## | |
109 ## LIBRARIES | |
110 ## | |
111 | |
112 LIBS = \ | |
113 -lglib-2.0 \ | |
114 -lgthread-2.0 \ | |
115 -lgobject-2.0 \ | |
116 -lgmodule-2.0 \ | |
117 -lintl \ | |
118 -lws2_32 \ | |
119 -liberty \ | |
120 -lxml2 | |
121 | |
122 ## | |
123 ## RULES | |
124 ## | |
125 | |
126 # How to make a C file | |
127 %.o: %.c | |
128 $(CC) $(CFLAGS) $(INCLUDE_PATHS) $(DEFINES) -c $< -o $@ | |
129 | |
130 ## | |
131 ## TARGET DEFINITIONS | |
132 ## | |
133 | |
134 .PHONY: all clean include_path | |
135 | |
136 all: $(TARGET).dll | |
137 | |
138 install: all | |
139 cp $(GAIM_SRC)/$(TARGET).dll $(GAIM_INSTALL_DIR) | |
140 | |
141 # | |
142 # BUILD DLL | |
143 # | |
144 $(TARGET).dll.a $(TARGET).dll: | |
145 $(TARGET).dll.a $(TARGET).dll: $(OBJECTS) | |
146 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--out-implib,$(TARGET).dll.a -o $(TARGET).dll | |
147 | |
148 ## | |
149 ## CLEAN RULES | |
150 ## | |
151 | |
152 clean: | |
153 rm -rf *.o ./win32/*.o | |
154 rm -rf $(TARGET).dll | |
155 rm -rf $(TARGET).dll.a |