comparison src/protocols/zephyr/Makefile.mingw @ 10867:5727afad0fb8

[gaim-migrate @ 12553] sf patch #991208, from Arun A Tharuvai "Here's a patch, against current CVS, to build and compile zephyr on Windows, with, or without Kerberos 4 Authentication. In order to be built (and run) with Kerberos 4 authentication, the Kerberos for Windows SDK (version 2.6.3 is the current version) (licensed under the MIT license) and runtimes, both available from http://web.mit.edu/kerberos/www/dist/index.html#KFW2.6.3 Also, USE_KRB4 should be set to true in the attached Makefile.mingw As on the UNIX side, an external 'zhm' binary needs to run for zephyr to work. Source and a win32 executable (using code from gaim's libzephyr, and also MIT's zephyr distribution), can be found at http://web.mit.edu/aatharuv/www/zhm-windows.html" I decided not to make zephyr compiled by default in Windows. If you want to compile it, I think you you can modify the root Makefile.mingw or cd to the src/protocols/zephyr/ directory and run "make -f Makefile.mingw" using make from mingw committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 25 Apr 2005 01:53:01 +0000
parents
children
comparison
equal deleted inserted replaced
10866:f38bda97f981 10867:5727afad0fb8
1 #
2 # Makefile.mingw
3 #
4 # Description: Makefile for win32 (mingw) version of libzephyr
5 #
6
7 #
8 # PATHS
9 #
10
11 INCLUDE_DIR := .
12 GTK_TOP := ../../../../win32-dev/gtk_2_0
13 GAIM_TOP := ../../..
14 ZEPHYR_ROOT := .
15 KRB4_TOP := ../../../../win32-dev/kfw-2.6.3-final.fixed
16 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir
17
18 USE_KRB4 := false
19
20 ##
21 ## VARIABLE DEFINITIONS
22 ##
23
24 TARGET = libzephyr
25
26 # Compiler Options
27
28 CFLAGS =
29
30 DEFINES =
31
32 # Static or Plugin...
33 ifeq ($(TYPE),STATIC)
34 DEFINES += -DSTATIC
35 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR)
36 else
37 ifeq ($(TYPE),PLUGIN)
38 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR)/plugins
39 endif
40 endif
41
42 DEFINES += -DWIN32 -DKRB5_SYSTYPES__
43
44 ifeq ($(USE_KRB4),true)
45 DEFINES += -DZEPHYR_USES_KERBEROS
46 endif
47
48 ##
49 ## INCLUDE MAKEFILES
50 ##
51
52 include $(GAIM_TOP)/src/win32/global.mak
53
54 ##
55 ## INCLUDE PATHS
56 ##
57
58 INCLUDE_PATHS += -I$(ZEPHYR_ROOT) \
59 -I$(GTK_TOP)/include \
60 -I$(GTK_TOP)/include/gtk-2.0 \
61 -I$(GTK_TOP)/include/glib-2.0 \
62 -I$(GTK_TOP)/include/pango-1.0 \
63 -I$(GTK_TOP)/include/atk-1.0 \
64 -I$(GTK_TOP)/lib/glib-2.0/include \
65 -I$(GTK_TOP)/lib/gtk-2.0/include \
66 -I$(GAIM_TOP)/src \
67 -I$(GAIM_TOP)/src/win32 \
68 -I$(GAIM_TOP)
69
70 ifeq ($(USE_KRB4), true)
71 INCLUDE_PATHS += -I$(KRB4_TOP)/inc/krb4
72 endif
73
74 LIB_PATHS = -L$(GTK_TOP)/lib \
75 -L$(GAIM_TOP)/src
76
77 ifeq ($(USE_KRB4), true)
78 LIB_PATHS+=-L$(KRB4_TOP)/lib/i386
79 endif
80
81 ##
82 ## SOURCES, OBJECTS
83 ##
84
85 C_SRC = ZAsyncLocate.c \
86 ZCkAuth.c \
87 ZCkIfNot.c \
88 ZClosePort.c \
89 ZCmpUID.c \
90 ZCmpUIDP.c \
91 ZFlsLocs.c \
92 ZFlsSubs.c \
93 ZFmtAuth.c \
94 ZFmtList.c \
95 ZFmtNotice.c \
96 ZFmtRaw.c \
97 ZFmtRawLst.c \
98 ZFmtSmRLst.c \
99 ZFmtSmRaw.c \
100 ZFreeNot.c \
101 ZGetLocs.c \
102 ZGetSender.c \
103 ZGetSubs.c \
104 ZGetWGPort.c \
105 ZIfNotice.c \
106 ZInit.c \
107 ZLocations.c \
108 ZMakeAscii.c \
109 ZMkAuth.c \
110 ZNewLocU.c \
111 ZOpenPort.c \
112 ZParseNot.c \
113 ZPeekIfNot.c \
114 ZPeekNot.c \
115 ZPeekPkt.c \
116 ZPending.c \
117 ZReadAscii.c \
118 ZRecvNot.c \
119 ZRecvPkt.c \
120 ZRetSubs.c \
121 ZSendList.c \
122 ZSendNot.c \
123 ZSendPkt.c \
124 ZSendRLst.c \
125 ZSendRaw.c \
126 ZSetDest.c \
127 ZSetFD.c \
128 ZSetSrv.c \
129 ZSubs.c \
130 ZVariables.c \
131 ZWait4Not.c \
132 ZhmStat.c \
133 Zinternal.c \
134 error_message.c \
135 et_name.c \
136 init_et.c \
137 zephyr_err.c \
138 zephyr.c
139
140
141 OBJECTS = $(C_SRC:%.c=%.o)
142
143
144 ##
145 ## LIBRARIES
146 ##
147
148 LIBS = -lgtk-win32-2.0 \
149 -lglib-2.0 \
150 -lgdk-win32-2.0 \
151 -lgmodule-2.0 \
152 -lgobject-2.0 \
153 -lws2_32 \
154 -lintl \
155 -lgaim
156
157 ifeq ($(USE_KRB4),true)
158 LIBS+= -lkrbv4w32
159 endif
160
161 ##
162 ## RULES
163 ##
164
165 # How to make a C file
166
167 %.o: %.c
168 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $<
169
170 ##
171 ## TARGET DEFINITIONS
172 ##
173
174 .PHONY: all clean
175
176 all: $(TARGET).dll
177
178 install:
179 cp $(ZEPHYR_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR)
180
181
182 ##
183 ## BUILD Dependencies
184 ##
185
186 $(GAIM_TOP)/src/gaim.lib:
187 $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib
188
189 ##
190 ## BUILD DLL
191 ##
192
193 $(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib
194 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--enable-stdcall-fixup -Wl,--out-implib,$(TARGET).lib -o $(TARGET).dll
195
196
197 ##
198 ## CLEAN RULES
199 ##
200
201 clean:
202 rm -rf *.o
203 rm -rf $(TARGET).dll
204 rm -rf $(TARGET).lib