Mercurial > pidgin.yaz
annotate src/protocols/silc/Makefile.mingw @ 10589:0f7452b1f777
[gaim-migrate @ 11994]
Use GLib 2.6's gstdio functions. This should fix gaim not liking non-ascii filenames in win32.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Fri, 11 Feb 2005 05:10:40 +0000 |
parents | 5e1ca11db043 |
children | f4a066f2e6be |
rev | line source |
---|---|
9359 | 1 # |
2 # Makefile.mingw | |
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 | 5 # |
6 | |
7 # | |
8 # PATHS | |
9 # | |
10 | |
11 INCLUDE_DIR := . | |
12 GTK_TOP := ../../../../win32-dev/gtk_2_0 | |
13 GAIM_TOP := ../../.. | |
10201
5e1ca11db043
[gaim-migrate @ 11319]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9570
diff
changeset
|
14 SILC_TOP := . |
9359 | 15 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir |
10201
5e1ca11db043
[gaim-migrate @ 11319]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9570
diff
changeset
|
16 SILC_TOOLKIT := ../../../../win32-dev/silc-toolkit-0.9.12 |
9359 | 17 |
18 ## | |
19 ## VARIABLE DEFINITIONS | |
20 ## | |
21 | |
10201
5e1ca11db043
[gaim-migrate @ 11319]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9570
diff
changeset
|
22 TARGET = libsilc |
9359 | 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 | 26 |
27 # Compiler Options | |
28 | |
29 CFLAGS = | |
30 | |
31 DEFINES = | |
32 | |
33 # Static or Plugin... | |
34 ifeq ($(TYPE),STATIC) | |
35 DEFINES += -DSTATIC | |
36 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR) | |
37 else | |
38 ifeq ($(TYPE),PLUGIN) | |
39 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR)/plugins | |
40 endif | |
41 endif | |
42 | |
43 | |
44 ## | |
45 ## INCLUDE MAKEFILES | |
46 ## | |
47 | |
48 include $(GAIM_TOP)/src/win32/global.mak | |
49 | |
50 ## | |
51 ## INCLUDE PATHS | |
52 ## | |
53 | |
10201
5e1ca11db043
[gaim-migrate @ 11319]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9570
diff
changeset
|
54 INCLUDE_PATHS += -I$(SILC_TOP) \ |
9359 | 55 -I$(GTK_TOP)/include \ |
56 -I$(GTK_TOP)/include/gtk-2.0 \ | |
57 -I$(GTK_TOP)/include/glib-2.0 \ | |
58 -I$(GTK_TOP)/include/pango-1.0 \ | |
59 -I$(GTK_TOP)/include/atk-1.0 \ | |
60 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
61 -I$(GTK_TOP)/lib/gtk-2.0/include \ | |
62 -I$(GAIM_TOP)/src \ | |
63 -I$(GAIM_TOP)/src/win32 \ | |
64 -I$(GAIM_TOP) \ | |
10201
5e1ca11db043
[gaim-migrate @ 11319]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9570
diff
changeset
|
65 -I$(SILC_TOOLKIT)/include |
9359 | 66 |
67 | |
9570
24f84b7ffe8e
[gaim-migrate @ 10413]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9359
diff
changeset
|
68 LIB_PATHS = -L$(GTK_TOP)/lib \ |
9359 | 69 -L$(GAIM_TOP)/src \ |
10201
5e1ca11db043
[gaim-migrate @ 11319]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9570
diff
changeset
|
70 -L$(SILC_TOOLKIT)/lib |
9359 | 71 |
72 | |
73 ## | |
74 ## SOURCES, OBJECTS | |
75 ## | |
76 | |
9570
24f84b7ffe8e
[gaim-migrate @ 10413]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9359
diff
changeset
|
77 C_SRC = silc.c \ |
9359 | 78 buddy.c \ |
79 chat.c \ | |
80 ft.c \ | |
81 ops.c \ | |
82 pk.c \ | |
83 util.c | |
84 | |
85 | |
86 OBJECTS = $(C_SRC:%.c=%.o) | |
87 | |
88 | |
89 ## | |
90 ## LIBRARIES | |
91 ## | |
92 | |
9570
24f84b7ffe8e
[gaim-migrate @ 10413]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9359
diff
changeset
|
93 LIBS = -lgtk-win32-2.0 \ |
9359 | 94 -lglib-2.0 \ |
95 -lgdk-win32-2.0 \ | |
96 -lgmodule-2.0 \ | |
97 -lgobject-2.0 \ | |
98 -lws2_32 \ | |
99 -lintl \ | |
100 -lgaim \ | |
10201
5e1ca11db043
[gaim-migrate @ 11319]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9570
diff
changeset
|
101 -lsilc \ |
5e1ca11db043
[gaim-migrate @ 11319]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9570
diff
changeset
|
102 -lsilcclient |
9359 | 103 |
104 | |
105 ## | |
106 ## RULES | |
107 ## | |
108 | |
109 # How to make a C file | |
110 | |
111 %.o: %.c | |
112 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
113 | |
114 ## | |
115 ## TARGET DEFINITIONS | |
116 ## | |
117 | |
118 .PHONY: all clean | |
119 | |
120 all: $(TARGET).dll | |
121 | |
122 install: | |
10201
5e1ca11db043
[gaim-migrate @ 11319]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9570
diff
changeset
|
123 cp $(SILC_TOP)/$(TARGET).dll $(DLL_INSTALL_DIR) |
9359 | 124 cp $(NEEDED_DLLS) $(GAIM_INSTALL_DIR) |
125 | |
126 | |
127 ## | |
128 ## BUILD Dependencies | |
129 ## | |
130 | |
131 $(GAIM_TOP)/src/gaim.lib: | |
132 $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib | |
133 | |
134 ## | |
135 ## BUILD DLL | |
136 ## | |
137 | |
138 $(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib | |
9570
24f84b7ffe8e
[gaim-migrate @ 10413]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9359
diff
changeset
|
139 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--image-base,0x64000000 -o $(TARGET).dll |
9359 | 140 |
141 ## | |
142 ## CLEAN RULES | |
143 ## | |
144 | |
145 clean: | |
146 rm -rf *.o | |
147 rm -rf $(TARGET).dll | |
148 rm -rf $(TARGET).lib |