Sat, 10 Nov 2007 04:52:20 +0000
propagate from branch 'im.pidgin.pidgin.next.minor' (head 2f91b326b3f073672c2475a8c30a06826da9b82f)
to branch 'im.pidgin.pidgin' (head 326d5b91950b3d78c445722f6d726cfa6b1c525d)
| 9359 | 1 | # |
| 2 | # Makefile.mingw | |
| 3 | # | |
|
10201
6fd2263c79cc
[gaim-migrate @ 11319]
Herman Bloggs <herman@bluedigits.com>
parents:
9570
diff
changeset
|
4 | # Description: Makefile for win32 (mingw) version of libsilc protocol plugin |
| 9359 | 5 | # |
| 6 | ||
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
7 | PIDGIN_TREE_TOP := ../../.. |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
8 | include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak |
| 9359 | 9 | |
|
10201
6fd2263c79cc
[gaim-migrate @ 11319]
Herman Bloggs <herman@bluedigits.com>
parents:
9570
diff
changeset
|
10 | TARGET = libsilc |
|
19684
cb06b0123bd5
Upgrade the win32 build to use version 1.1.2 of the SILC toolkit.
Daniel Atallah <datallah@pidgin.im>
parents:
16393
diff
changeset
|
11 | NEEDED_DLLS = $(SILC_TOOLKIT)/bin/libsilc-1-1-2.dll \ |
|
cb06b0123bd5
Upgrade the win32 build to use version 1.1.2 of the SILC toolkit.
Daniel Atallah <datallah@pidgin.im>
parents:
16393
diff
changeset
|
12 | $(SILC_TOOLKIT)/bin/libsilcclient-1-1-2.dll |
|
14617
7e4c1a72656a
[gaim-migrate @ 17278]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
13 | TYPE = PLUGIN |
| 9359 | 14 | |
|
14294
04b7598fdbad
[gaim-migrate @ 16914]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
15 | # Static or Plugin... |
| 9359 | 16 | ifeq ($(TYPE),STATIC) |
| 17 | DEFINES += -DSTATIC | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
18 | DLL_INSTALL_DIR = $(PURPLE_INSTALL_DIR) |
| 9359 | 19 | else |
| 20 | ifeq ($(TYPE),PLUGIN) | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
21 | DLL_INSTALL_DIR = $(PURPLE_INSTALL_PLUGINS_DIR) |
| 9359 | 22 | endif |
| 23 | endif | |
| 24 | ||
| 25 | ## | |
| 26 | ## INCLUDE PATHS | |
| 27 | ## | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
28 | INCLUDE_PATHS += -I. \ |
| 9359 | 29 | -I$(GTK_TOP)/include \ |
| 30 | -I$(GTK_TOP)/include/glib-2.0 \ | |
| 31 | -I$(GTK_TOP)/lib/glib-2.0/include \ | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
32 | -I$(PURPLE_TOP) \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
33 | -I$(PURPLE_TOP)/win32 \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
34 | -I$(PIDGIN_TREE_TOP) \ |
|
10201
6fd2263c79cc
[gaim-migrate @ 11319]
Herman Bloggs <herman@bluedigits.com>
parents:
9570
diff
changeset
|
35 | -I$(SILC_TOOLKIT)/include |
| 9359 | 36 | |
|
16393
d89faf3f5282
Allow include and lib paths to be overridden from local.ent
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
37 | LIB_PATHS += -L$(GTK_TOP)/lib \ |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
38 | -L$(PURPLE_TOP) \ |
|
10201
6fd2263c79cc
[gaim-migrate @ 11319]
Herman Bloggs <herman@bluedigits.com>
parents:
9570
diff
changeset
|
39 | -L$(SILC_TOOLKIT)/lib |
| 9359 | 40 | |
| 41 | ## | |
| 42 | ## SOURCES, OBJECTS | |
| 43 | ## | |
|
9570
8b3f38824cd3
[gaim-migrate @ 10413]
Herman Bloggs <herman@bluedigits.com>
parents:
9359
diff
changeset
|
44 | C_SRC = silc.c \ |
| 9359 | 45 | buddy.c \ |
| 46 | chat.c \ | |
| 47 | ft.c \ | |
| 48 | ops.c \ | |
| 49 | pk.c \ | |
| 12071 | 50 | util.c \ |
| 51 | wb.c | |
| 9359 | 52 | |
| 53 | OBJECTS = $(C_SRC:%.c=%.o) | |
| 54 | ||
| 55 | ## | |
| 56 | ## LIBRARIES | |
| 57 | ## | |
|
12590
42435b5b0752
[gaim-migrate @ 14920]
Daniel Atallah <datallah@pidgin.im>
parents:
12071
diff
changeset
|
58 | LIBS = \ |
| 9359 | 59 | -lglib-2.0 \ |
| 60 | -lws2_32 \ | |
| 61 | -lintl \ | |
|
15438
c3e93cd038c5
Update win32 build for libpurple and pidgin renames. This compiles, but is far from complete.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
62 | -lpurple \ |
|
10201
6fd2263c79cc
[gaim-migrate @ 11319]
Herman Bloggs <herman@bluedigits.com>
parents:
9570
diff
changeset
|
63 | -lsilc \ |
|
6fd2263c79cc
[gaim-migrate @ 11319]
Herman Bloggs <herman@bluedigits.com>
parents:
9570
diff
changeset
|
64 | -lsilcclient |
| 9359 | 65 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
66 | include $(PIDGIN_COMMON_RULES) |
| 9359 | 67 | |
| 68 | ## | |
| 69 | ## TARGET DEFINITIONS | |
| 70 | ## | |
|
14638
b0fa76dac93f
[gaim-migrate @ 17300]
Daniel Atallah <datallah@pidgin.im>
parents:
14617
diff
changeset
|
71 | .PHONY: all install clean |
| 9359 | 72 | |
| 73 | all: $(TARGET).dll | |
| 74 | ||
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
75 | install: all $(DLL_INSTALL_DIR) $(PURPLE_INSTALL_DIR) |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
76 | cp $(TARGET).dll $(DLL_INSTALL_DIR) |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
77 | cp $(NEEDED_DLLS) $(PURPLE_INSTALL_DIR) |
| 9359 | 78 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
79 | $(OBJECTS): $(PURPLE_CONFIG_H) |
| 9359 | 80 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
81 | $(TARGET).dll: $(PURPLE_DLL).a $(OBJECTS) |
|
9570
8b3f38824cd3
[gaim-migrate @ 10413]
Herman Bloggs <herman@bluedigits.com>
parents:
9359
diff
changeset
|
82 | $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--image-base,0x64000000 -o $(TARGET).dll |
| 9359 | 83 | |
| 84 | ## | |
| 85 | ## CLEAN RULES | |
| 86 | ## | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14294
diff
changeset
|
87 | clean: |
|
14617
7e4c1a72656a
[gaim-migrate @ 17278]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
88 | rm -f $(OBJECTS) |
|
7e4c1a72656a
[gaim-migrate @ 17278]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
89 | rm -f $(TARGET).dll |
| 9359 | 90 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
91 | include $(PIDGIN_COMMON_TARGETS) |