annotate src/protocols/silc/Makefile.mingw @ 19824:a8d00b8dae40

[gaim-migrate @ 17040] send OIM middle version. Now can send to server, but need to encode the friend name to MIME format committed by MaYuan<mayuan2006@gmail.com> committer: Ethan Blanton <elb@pidgin.im>
author Ma Yuan <mayuan2006@gmail.com>
date Sat, 26 Aug 2006 08:07:08 +0000
parents 88c75956dbbf
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9359
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
1 #
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
2 # Makefile.mingw
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
3 #
10201
5e1ca11db043 [gaim-migrate @ 11319]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 9570
diff changeset
4 # Description: Makefile for win32 (mingw) version of libsilc protocol plugin
9359
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
5 #
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
6
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
7 #
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
8 # PATHS
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
9 #
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
10
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
11 INCLUDE_DIR := .
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
12 GTK_TOP := ../../../../win32-dev/gtk_2_0
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
13 GAIM_TOP := ../../..
10201
5e1ca11db043 [gaim-migrate @ 11319]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 9570
diff changeset
14 SILC_TOP := .
9359
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
15 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir
12590
88c75956dbbf [gaim-migrate @ 14920]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 12071
diff changeset
16 SILC_TOOLKIT := ../../../../win32-dev/silc-toolkit-1.0.2
9359
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
17
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
18 ##
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
19 ## VARIABLE DEFINITIONS
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
20 ##
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
21
10201
5e1ca11db043 [gaim-migrate @ 11319]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 9570
diff changeset
22 TARGET = libsilc
9359
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
23
10201
5e1ca11db043 [gaim-migrate @ 11319]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 9570
diff changeset
24 NEEDED_DLLS = $(SILC_TOOLKIT)/lib/silc.dll \
5e1ca11db043 [gaim-migrate @ 11319]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 9570
diff changeset
25 $(SILC_TOOLKIT)/lib/silcclient.dll
9359
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
26
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
27 # Compiler Options
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
28
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
29 CFLAGS =
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
30
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
31 DEFINES =
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
32
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
33 # Static or Plugin...
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
34 ifeq ($(TYPE),STATIC)
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
35 DEFINES += -DSTATIC
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
36 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR)
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
37 else
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
38 ifeq ($(TYPE),PLUGIN)
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
39 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR)/plugins
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
40 endif
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
41 endif
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
42
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
43
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
44 ##
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
45 ## INCLUDE MAKEFILES
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
46 ##
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
47
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
48 include $(GAIM_TOP)/src/win32/global.mak
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
49
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
50 ##
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
51 ## INCLUDE PATHS
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
52 ##
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
53
10201
5e1ca11db043 [gaim-migrate @ 11319]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 9570
diff changeset
54 INCLUDE_PATHS += -I$(SILC_TOP) \
9359
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
55 -I$(GTK_TOP)/include \
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
56 -I$(GTK_TOP)/include/glib-2.0 \
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
57 -I$(GTK_TOP)/lib/glib-2.0/include \
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
58 -I$(GAIM_TOP)/src \
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
59 -I$(GAIM_TOP)/src/win32 \
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
60 -I$(GAIM_TOP) \
10201
5e1ca11db043 [gaim-migrate @ 11319]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 9570
diff changeset
61 -I$(SILC_TOOLKIT)/include
9359
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
62
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
63
9570
24f84b7ffe8e [gaim-migrate @ 10413]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 9359
diff changeset
64 LIB_PATHS = -L$(GTK_TOP)/lib \
9359
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
65 -L$(GAIM_TOP)/src \
10201
5e1ca11db043 [gaim-migrate @ 11319]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 9570
diff changeset
66 -L$(SILC_TOOLKIT)/lib
9359
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
67
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
68
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
69 ##
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
70 ## SOURCES, OBJECTS
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
71 ##
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
72
9570
24f84b7ffe8e [gaim-migrate @ 10413]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 9359
diff changeset
73 C_SRC = silc.c \
9359
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
74 buddy.c \
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
75 chat.c \
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
76 ft.c \
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
77 ops.c \
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
78 pk.c \
12071
f4a066f2e6be [gaim-migrate @ 14366]
Nathan Walp <nwalp@pidgin.im>
parents: 10201
diff changeset
79 util.c \
f4a066f2e6be [gaim-migrate @ 14366]
Nathan Walp <nwalp@pidgin.im>
parents: 10201
diff changeset
80 wb.c
9359
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
81
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
82
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
83 OBJECTS = $(C_SRC:%.c=%.o)
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
84
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
85
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
86 ##
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
87 ## LIBRARIES
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
88 ##
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
89
12590
88c75956dbbf [gaim-migrate @ 14920]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 12071
diff changeset
90 LIBS = \
9359
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
91 -lglib-2.0 \
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
92 -lws2_32 \
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
93 -lintl \
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
94 -lgaim \
10201
5e1ca11db043 [gaim-migrate @ 11319]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 9570
diff changeset
95 -lsilc \
5e1ca11db043 [gaim-migrate @ 11319]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 9570
diff changeset
96 -lsilcclient
9359
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
97
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
98
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
99 ##
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
100 ## RULES
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
101 ##
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
102
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
103 # How to make a C file
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
104
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
105 %.o: %.c
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
106 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $<
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
107
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
108 ##
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
109 ## TARGET DEFINITIONS
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
110 ##
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
111
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
112 .PHONY: all clean
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
113
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
114 all: $(TARGET).dll
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
115
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
116 install:
10201
5e1ca11db043 [gaim-migrate @ 11319]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 9570
diff changeset
117 cp $(SILC_TOP)/$(TARGET).dll $(DLL_INSTALL_DIR)
9359
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
118 cp $(NEEDED_DLLS) $(GAIM_INSTALL_DIR)
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
119
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
120
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
121 ##
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
122 ## BUILD Dependencies
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
123 ##
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
124
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
125 $(GAIM_TOP)/src/gaim.lib:
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
126 $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
127
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
128 ##
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
129 ## BUILD DLL
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
130 ##
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
131
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
132 $(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib
9570
24f84b7ffe8e [gaim-migrate @ 10413]
Herman Bloggs <hermanator12002@yahoo.com>
parents: 9359
diff changeset
133 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--image-base,0x64000000 -o $(TARGET).dll
9359
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
134
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
135 ##
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
136 ## CLEAN RULES
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
137 ##
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
138
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
139 clean:
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
140 rm -rf *.o
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
141 rm -rf $(TARGET).dll
43741d8f76f7 [gaim-migrate @ 10167]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
142 rm -rf $(TARGET).lib