Mercurial > pidgin
annotate src/protocols/silc/Makefile.mingw @ 19802:4a832e480178
[gaim-migrate @ 16771]
add README file
comitted by Ma Yuan<mayuan2006@gmail.com>
committer: Ethan Blanton <elb@pidgin.im>
author | Ma Yuan <mayuan2006@gmail.com> |
---|---|
date | Tue, 15 Aug 2006 15:57:07 +0000 |
parents | 88c75956dbbf |
children |
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 |
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 | 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/glib-2.0 \ | |
57 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
58 -I$(GAIM_TOP)/src \ | |
59 -I$(GAIM_TOP)/src/win32 \ | |
60 -I$(GAIM_TOP) \ | |
10201
5e1ca11db043
[gaim-migrate @ 11319]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9570
diff
changeset
|
61 -I$(SILC_TOOLKIT)/include |
9359 | 62 |
63 | |
9570
24f84b7ffe8e
[gaim-migrate @ 10413]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9359
diff
changeset
|
64 LIB_PATHS = -L$(GTK_TOP)/lib \ |
9359 | 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 | 67 |
68 | |
69 ## | |
70 ## SOURCES, OBJECTS | |
71 ## | |
72 | |
9570
24f84b7ffe8e
[gaim-migrate @ 10413]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9359
diff
changeset
|
73 C_SRC = silc.c \ |
9359 | 74 buddy.c \ |
75 chat.c \ | |
76 ft.c \ | |
77 ops.c \ | |
78 pk.c \ | |
12071 | 79 util.c \ |
80 wb.c | |
9359 | 81 |
82 | |
83 OBJECTS = $(C_SRC:%.c=%.o) | |
84 | |
85 | |
86 ## | |
87 ## LIBRARIES | |
88 ## | |
89 | |
12590
88c75956dbbf
[gaim-migrate @ 14920]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
12071
diff
changeset
|
90 LIBS = \ |
9359 | 91 -lglib-2.0 \ |
92 -lws2_32 \ | |
93 -lintl \ | |
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 | 97 |
98 | |
99 ## | |
100 ## RULES | |
101 ## | |
102 | |
103 # How to make a C file | |
104 | |
105 %.o: %.c | |
106 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
107 | |
108 ## | |
109 ## TARGET DEFINITIONS | |
110 ## | |
111 | |
112 .PHONY: all clean | |
113 | |
114 all: $(TARGET).dll | |
115 | |
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 | 118 cp $(NEEDED_DLLS) $(GAIM_INSTALL_DIR) |
119 | |
120 | |
121 ## | |
122 ## BUILD Dependencies | |
123 ## | |
124 | |
125 $(GAIM_TOP)/src/gaim.lib: | |
126 $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib | |
127 | |
128 ## | |
129 ## BUILD DLL | |
130 ## | |
131 | |
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 | 134 |
135 ## | |
136 ## CLEAN RULES | |
137 ## | |
138 | |
139 clean: | |
140 rm -rf *.o | |
141 rm -rf $(TARGET).dll | |
142 rm -rf $(TARGET).lib |