Mercurial > pidgin.yaz
annotate src/protocols/silc/Makefile.mingw @ 12312:1c8ea8f3b84e
[gaim-migrate @ 14616]
forgot a line, and infamy
committer: Tailor Script <tailor@pidgin.im>
author | Christopher O'Brien <siege@pidgin.im> |
---|---|
date | Sun, 04 Dec 2005 05:04:39 +0000 |
parents | f4a066f2e6be |
children | 88c75956dbbf |
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 \ | |
12071 | 83 util.c \ |
84 wb.c | |
9359 | 85 |
86 | |
87 OBJECTS = $(C_SRC:%.c=%.o) | |
88 | |
89 | |
90 ## | |
91 ## LIBRARIES | |
92 ## | |
93 | |
9570
24f84b7ffe8e
[gaim-migrate @ 10413]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9359
diff
changeset
|
94 LIBS = -lgtk-win32-2.0 \ |
9359 | 95 -lglib-2.0 \ |
96 -lgdk-win32-2.0 \ | |
97 -lgmodule-2.0 \ | |
98 -lgobject-2.0 \ | |
99 -lws2_32 \ | |
100 -lintl \ | |
101 -lgaim \ | |
10201
5e1ca11db043
[gaim-migrate @ 11319]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9570
diff
changeset
|
102 -lsilc \ |
5e1ca11db043
[gaim-migrate @ 11319]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9570
diff
changeset
|
103 -lsilcclient |
9359 | 104 |
105 | |
106 ## | |
107 ## RULES | |
108 ## | |
109 | |
110 # How to make a C file | |
111 | |
112 %.o: %.c | |
113 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
114 | |
115 ## | |
116 ## TARGET DEFINITIONS | |
117 ## | |
118 | |
119 .PHONY: all clean | |
120 | |
121 all: $(TARGET).dll | |
122 | |
123 install: | |
10201
5e1ca11db043
[gaim-migrate @ 11319]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9570
diff
changeset
|
124 cp $(SILC_TOP)/$(TARGET).dll $(DLL_INSTALL_DIR) |
9359 | 125 cp $(NEEDED_DLLS) $(GAIM_INSTALL_DIR) |
126 | |
127 | |
128 ## | |
129 ## BUILD Dependencies | |
130 ## | |
131 | |
132 $(GAIM_TOP)/src/gaim.lib: | |
133 $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib | |
134 | |
135 ## | |
136 ## BUILD DLL | |
137 ## | |
138 | |
139 $(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib | |
9570
24f84b7ffe8e
[gaim-migrate @ 10413]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
9359
diff
changeset
|
140 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--image-base,0x64000000 -o $(TARGET).dll |
9359 | 141 |
142 ## | |
143 ## CLEAN RULES | |
144 ## | |
145 | |
146 clean: | |
147 rm -rf *.o | |
148 rm -rf $(TARGET).dll | |
149 rm -rf $(TARGET).lib |