Mercurial > pidgin.yaz
annotate libgaim/protocols/zephyr/Makefile.mingw @ 15034:b28f5caf9445
[gaim-migrate @ 17816]
This fixes gnt builds for me (avoiding multiple-definition errors when linking) by marking some declarations as extern in the gntkeys.h and actually defining them in gntkeys.c
committer: Tailor Script <tailor@pidgin.im>
author | Christopher O'Brien <siege@pidgin.im> |
---|---|
date | Thu, 23 Nov 2006 15:22:53 +0000 |
parents | 5d03b309b482 |
children |
rev | line source |
---|---|
14192 | 1 # |
2 # Makefile.mingw | |
3 # | |
4 # Description: Makefile for win32 (mingw) version of libzephyr | |
5 # | |
6 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
7 GAIM_TOP := ../../.. |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
8 include $(GAIM_TOP)/libgaim/win32/global.mak |
14192 | 9 |
10 TARGET = libzephyr | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
11 KRB4_TOP := $(WIN32_DEV_TOP)/kfw-2.6.3-final.fixed |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
12 USE_KRB4 := false |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
13 DEFINES += -DWIN32 -DKRB5_SYSTYPES__ |
14555
12cb76aeb21c
[gaim-migrate @ 17278]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14315
diff
changeset
|
14 TYPE = PLUGIN |
14192 | 15 |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
16 ifeq ($(USE_KRB4),true) |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
17 DEFINES += -DZEPHYR_USES_KERBEROS |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
18 endif |
14192 | 19 |
14293
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
20 # Static or Plugin... |
14192 | 21 ifeq ($(TYPE),STATIC) |
22 DEFINES += -DSTATIC | |
23 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR) | |
24 else | |
25 ifeq ($(TYPE),PLUGIN) | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
26 DLL_INSTALL_DIR = $(GAIM_INSTALL_PLUGINS_DIR) |
14192 | 27 endif |
28 endif | |
29 | |
30 ## | |
31 ## INCLUDE PATHS | |
32 ## | |
33 INCLUDE_PATHS += -I$(ZEPHYR_ROOT) \ | |
34 -I$(GTK_TOP)/include \ | |
35 -I$(GTK_TOP)/include/glib-2.0 \ | |
36 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
37 -I$(GAIM_LIB_TOP) \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
38 -I$(GAIM_LIB_TOP)/win32 \ |
14192 | 39 -I$(GAIM_TOP) |
40 | |
41 ifeq ($(USE_KRB4), true) | |
42 INCLUDE_PATHS += -I$(KRB4_TOP)/inc/krb4 | |
43 endif | |
44 | |
45 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
46 -L$(GAIM_LIB_TOP) |
14192 | 47 |
48 ifeq ($(USE_KRB4), true) | |
49 LIB_PATHS+=-L$(KRB4_TOP)/lib/i386 | |
50 endif | |
51 | |
52 ## | |
53 ## SOURCES, OBJECTS | |
54 ## | |
55 C_SRC = ZAsyncLocate.c \ | |
56 ZCkAuth.c \ | |
57 ZCkIfNot.c \ | |
58 ZClosePort.c \ | |
59 ZCmpUID.c \ | |
60 ZCmpUIDP.c \ | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
61 ZFlsLocs.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
62 ZFlsSubs.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
63 ZFmtAuth.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
64 ZFmtList.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
65 ZFmtNotice.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
66 ZFmtRaw.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
67 ZFmtRawLst.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
68 ZFmtSmRLst.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
69 ZFmtSmRaw.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
70 ZFreeNot.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
71 ZGetLocs.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
72 ZGetSender.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
73 ZGetSubs.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
74 ZGetWGPort.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
75 ZIfNotice.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
76 ZInit.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
77 ZLocations.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
78 ZMakeAscii.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
79 ZMkAuth.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
80 ZNewLocU.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
81 ZOpenPort.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
82 ZParseNot.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
83 ZPeekIfNot.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
84 ZPeekNot.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
85 ZPeekPkt.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
86 ZPending.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
87 ZReadAscii.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
88 ZRecvNot.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
89 ZRecvPkt.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
90 ZRetSubs.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
91 ZSendList.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
92 ZSendNot.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
93 ZSendPkt.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
94 ZSendRLst.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
95 ZSendRaw.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
96 ZSetDest.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
97 ZSetFD.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
98 ZSetSrv.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
99 ZSubs.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
100 ZVariables.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
101 ZWait4Not.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
102 ZhmStat.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
103 Zinternal.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
104 error_message.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
105 et_name.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
106 init_et.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
107 zephyr_err.c \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
108 zephyr.c |
14192 | 109 |
110 OBJECTS = $(C_SRC:%.c=%.o) | |
111 | |
112 ## | |
113 ## LIBRARIES | |
114 ## | |
14293
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
115 LIBS = \ |
14192 | 116 -lglib-2.0 \ |
117 -lws2_32 \ | |
118 -lintl \ | |
119 -lgaim | |
120 | |
14293
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
121 ifeq ($(USE_KRB4),true) |
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
122 LIBS+= -lkrbv4w32 |
14192 | 123 endif |
124 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
125 include $(GAIM_COMMON_RULES) |
14192 | 126 |
127 ## | |
128 ## TARGET DEFINITIONS | |
129 ## | |
14576
5d03b309b482
[gaim-migrate @ 17300]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14555
diff
changeset
|
130 .PHONY: all install clean |
14192 | 131 |
132 all: $(TARGET).dll | |
133 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
134 install: all $(DLL_INSTALL_DIR) |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
135 cp $(TARGET).dll $(DLL_INSTALL_DIR) |
14192 | 136 |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
137 $(OBJECTS): $(GAIM_CONFIG_H) |
14192 | 138 |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
139 $(TARGET).dll: $(GAIM_LIBGAIM_DLL).a $(OBJECTS) |
14293
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
140 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--enable-stdcall-fixup -o $(TARGET).dll |
14192 | 141 |
142 ## | |
143 ## CLEAN RULES | |
144 ## | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
145 clean: |
14555
12cb76aeb21c
[gaim-migrate @ 17278]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14315
diff
changeset
|
146 rm -f $(OBJECTS) |
12cb76aeb21c
[gaim-migrate @ 17278]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14315
diff
changeset
|
147 rm -f $(TARGET).dll |
14192 | 148 |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
149 include $(GAIM_COMMON_TARGETS) |