Fri, 02 Jul 2010 18:21:07 +0000
Fix the mingw Makefiles to ensure plugins are rebuilt when config.h or
version.h changes
| 14286 | 1 | # |
| 2 | # Makefile.mingw | |
| 3 | # | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16096
diff
changeset
|
4 | # Description: Makefile for win32 (mingw) version of Pidgin Plugins |
| 14286 | 5 | # |
| 6 | ||
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16096
diff
changeset
|
7 | PIDGIN_TREE_TOP := ../.. |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16096
diff
changeset
|
8 | include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak |
| 14286 | 9 | |
|
27360
3c5ef391cd63
Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
24195
diff
changeset
|
10 | DISCO_PLUGIN := ./disco |
|
14509
e46c4ed7e331
[gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
11 | GTKPERL_PLUGIN := ./perl |
|
e46c4ed7e331
[gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
12 | TICKER_PLUGIN := ./ticker |
|
e46c4ed7e331
[gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
13 | TRANSPARENCY_PLUGIN := ./win32/transparency |
|
e46c4ed7e331
[gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
14 | WINPREFS_PLUGIN := ./win32/winprefs |
| 14286 | 15 | |
| 16 | .SUFFIXES: | |
| 17 | .SUFFIXES: .c .dll | |
| 18 | ||
| 19 | ## | |
| 20 | ## INCLUDE PATHS | |
| 21 | ## | |
| 22 | INCLUDE_PATHS += \ | |
| 23 | -I$(GTK_TOP)/include \ | |
| 24 | -I$(GTK_TOP)/include/gtk-2.0 \ | |
| 25 | -I$(GTK_TOP)/include/glib-2.0 \ | |
| 26 | -I$(GTK_TOP)/include/pango-1.0 \ | |
| 27 | -I$(GTK_TOP)/include/atk-1.0 \ | |
|
16294
8310c8cce698
Add cairo to the mingw build include path. Fixes #175 .
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
28 | -I$(GTK_TOP)/include/cairo \ |
| 14286 | 29 | -I$(GTK_TOP)/lib/glib-2.0/include \ |
| 30 | -I$(GTK_TOP)/lib/gtk-2.0/include \ | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16096
diff
changeset
|
31 | -I$(PIDGIN_TREE_TOP) \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16096
diff
changeset
|
32 | -I$(PURPLE_TOP) \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16096
diff
changeset
|
33 | -I$(PURPLE_TOP)/win32 \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16096
diff
changeset
|
34 | -I$(PIDGIN_TOP) \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16096
diff
changeset
|
35 | -I$(PIDGIN_TOP)/win32 |
| 14286 | 36 | |
|
16393
d89faf3f5282
Allow include and lib paths to be overridden from local.ent
Daniel Atallah <datallah@pidgin.im>
parents:
16294
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:
16096
diff
changeset
|
38 | -L$(PURPLE_TOP) \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16096
diff
changeset
|
39 | -L$(PIDGIN_TOP) |
| 14286 | 40 | |
| 41 | ## | |
| 42 | ## LIBRARIES | |
| 43 | ## | |
| 44 | LIBS = -lgtk-win32-2.0 \ | |
| 45 | -lglib-2.0 \ | |
| 46 | -lgdk-win32-2.0 \ | |
| 47 | -lgobject-2.0 \ | |
| 48 | -lgmodule-2.0 \ | |
| 49 | -lgdk_pixbuf-2.0 \ | |
| 50 | -lpango-1.0 \ | |
| 51 | -lintl \ | |
| 52 | -lws2_32 \ | |
|
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
|
53 | -lpurple \ |
|
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
|
54 | -lpidgin |
| 14286 | 55 | |
| 56 | ## | |
| 57 | ## TARGET DEFINITIONS | |
| 58 | ## | |
|
14638
b0fa76dac93f
[gaim-migrate @ 17300]
Daniel Atallah <datallah@pidgin.im>
parents:
14509
diff
changeset
|
59 | .PHONY: all clean plugins install |
| 14286 | 60 | |
| 61 | all: plugins | |
|
27360
3c5ef391cd63
Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
24195
diff
changeset
|
62 | $(MAKE) -C $(DISCO_PLUGIN) -f $(MINGW_MAKEFILE) |
|
16641
dca38ef38fc4
Fix win32 pidgin perl stuff. This hasn't been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
16393
diff
changeset
|
63 | $(MAKE) -C $(GTKPERL_PLUGIN) -f $(MINGW_MAKEFILE) |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16096
diff
changeset
|
64 | $(MAKE) -C $(TICKER_PLUGIN) -f $(MINGW_MAKEFILE) |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16096
diff
changeset
|
65 | $(MAKE) -C $(TRANSPARENCY_PLUGIN) -f $(MINGW_MAKEFILE) |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16096
diff
changeset
|
66 | $(MAKE) -C $(WINPREFS_PLUGIN) -f $(MINGW_MAKEFILE) |
| 14286 | 67 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16096
diff
changeset
|
68 | install: all $(PIDGIN_INSTALL_PLUGINS_DIR) |
|
27360
3c5ef391cd63
Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
24195
diff
changeset
|
69 | $(MAKE) -C $(DISCO_PLUGIN) -f $(MINGW_MAKEFILE) install |
|
16641
dca38ef38fc4
Fix win32 pidgin perl stuff. This hasn't been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
16393
diff
changeset
|
70 | $(MAKE) -C $(GTKPERL_PLUGIN) -f $(MINGW_MAKEFILE) install |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16096
diff
changeset
|
71 | $(MAKE) -C $(TICKER_PLUGIN) -f $(MINGW_MAKEFILE) install |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16096
diff
changeset
|
72 | $(MAKE) -C $(TRANSPARENCY_PLUGIN) -f $(MINGW_MAKEFILE) install |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16096
diff
changeset
|
73 | $(MAKE) -C $(WINPREFS_PLUGIN) -f $(MINGW_MAKEFILE) install |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16096
diff
changeset
|
74 | cp *.dll $(PIDGIN_INSTALL_PLUGINS_DIR) |
| 14286 | 75 | |
|
30486
987bed7429a5
Fix the mingw Makefiles to ensure plugins are rebuilt when config.h or
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
27360
diff
changeset
|
76 | %.dll: %.c $(PURPLE_CONFIG_H) $(PURPLE_VERSION_H) |
| 14286 | 77 | $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@.o -c $< |
| 78 | $(CC) -shared $@.o $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $@ | |
| 79 | ||
| 80 | plugins: \ | |
|
15231
f13829d20a13
[gaim-migrate @ 17955]
Gary Kramlich <grim@reaperworld.com>
parents:
14745
diff
changeset
|
81 | convcolors.dll \ |
| 14286 | 82 | extplacement.dll \ |
|
17681
b16ce226d996
Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
16641
diff
changeset
|
83 | gtkbuddynote.dll \ |
| 14286 | 84 | history.dll \ |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
85 | iconaway.dll \ |
|
15231
f13829d20a13
[gaim-migrate @ 17955]
Gary Kramlich <grim@reaperworld.com>
parents:
14745
diff
changeset
|
86 | markerline.dll \ |
| 14286 | 87 | notify.dll \ |
|
17681
b16ce226d996
Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
16641
diff
changeset
|
88 | pidginrc.dll \ |
| 14286 | 89 | relnot.dll \ |
|
23167
d542424833f9
applied changes from ae9d7912dfb7c1627441484bfe471dd4d370d346
Daniel Atallah <datallah@pidgin.im>
parents:
17681
diff
changeset
|
90 | sendbutton.dll \ |
| 14286 | 91 | spellchk.dll \ |
| 92 | timestamp_format.dll \ | |
|
24195
c8c6f34b091d
Build the XMPP Console plugin by default on windows too.
Daniel Atallah <datallah@pidgin.im>
parents:
23167
diff
changeset
|
93 | timestamp.dll \ |
|
c8c6f34b091d
Build the XMPP Console plugin by default on windows too.
Daniel Atallah <datallah@pidgin.im>
parents:
23167
diff
changeset
|
94 | xmppconsole.dll |
| 14286 | 95 | |
| 96 | ## | |
| 97 | ## CLEAN RULES | |
| 98 | ## | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
99 | clean: |
|
14638
b0fa76dac93f
[gaim-migrate @ 17300]
Daniel Atallah <datallah@pidgin.im>
parents:
14509
diff
changeset
|
100 | rm -f *.o *.dll |
|
27360
3c5ef391cd63
Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
24195
diff
changeset
|
101 | $(MAKE) -C $(DISCO_PLUGIN) -f $(MINGW_MAKEFILE) clean |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16096
diff
changeset
|
102 | $(MAKE) -C $(GTKPERL_PLUGIN) -f $(MINGW_MAKEFILE) clean |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16096
diff
changeset
|
103 | $(MAKE) -C $(TICKER_PLUGIN) -f $(MINGW_MAKEFILE) clean |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16096
diff
changeset
|
104 | $(MAKE) -C $(TRANSPARENCY_PLUGIN) -f $(MINGW_MAKEFILE) clean |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16096
diff
changeset
|
105 | $(MAKE) -C $(WINPREFS_PLUGIN) -f $(MINGW_MAKEFILE) clean |
| 14286 | 106 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16096
diff
changeset
|
107 | include $(PIDGIN_COMMON_TARGETS) |