Mon, 23 Apr 2007 01:30:49 +0000
Allow include and lib paths to be overridden from local.ent
| 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 | |
|
14509
e46c4ed7e331
[gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
10 | GTKPERL_PLUGIN := ./perl |
|
e46c4ed7e331
[gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
11 | TICKER_PLUGIN := ./ticker |
|
e46c4ed7e331
[gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
12 | TRANSPARENCY_PLUGIN := ./win32/transparency |
|
e46c4ed7e331
[gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
13 | WINPREFS_PLUGIN := ./win32/winprefs |
| 14286 | 14 | |
| 15 | .SUFFIXES: | |
| 16 | .SUFFIXES: .c .dll | |
| 17 | ||
| 18 | ## | |
| 19 | ## INCLUDE PATHS | |
| 20 | ## | |
| 21 | INCLUDE_PATHS += \ | |
| 22 | -I$(GTK_TOP)/include \ | |
| 23 | -I$(GTK_TOP)/include/gtk-2.0 \ | |
| 24 | -I$(GTK_TOP)/include/glib-2.0 \ | |
| 25 | -I$(GTK_TOP)/include/pango-1.0 \ | |
| 26 | -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
|
27 | -I$(GTK_TOP)/include/cairo \ |
| 14286 | 28 | -I$(GTK_TOP)/lib/glib-2.0/include \ |
| 29 | -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
|
30 | -I$(PIDGIN_TREE_TOP) \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16096
diff
changeset
|
31 | -I$(PURPLE_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)/win32 \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16096
diff
changeset
|
33 | -I$(PIDGIN_TOP) \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16096
diff
changeset
|
34 | -I$(PIDGIN_TOP)/win32 |
| 14286 | 35 | |
|
16393
d89faf3f5282
Allow include and lib paths to be overridden from local.ent
Daniel Atallah <datallah@pidgin.im>
parents:
16294
diff
changeset
|
36 | 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
|
37 | -L$(PURPLE_TOP) \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16096
diff
changeset
|
38 | -L$(PIDGIN_TOP) |
| 14286 | 39 | |
| 40 | ## | |
| 41 | ## LIBRARIES | |
| 42 | ## | |
| 43 | LIBS = -lgtk-win32-2.0 \ | |
| 44 | -lglib-2.0 \ | |
| 45 | -lgdk-win32-2.0 \ | |
| 46 | -lgobject-2.0 \ | |
| 47 | -lgmodule-2.0 \ | |
| 48 | -lgdk_pixbuf-2.0 \ | |
| 49 | -lpango-1.0 \ | |
| 50 | -lintl \ | |
| 51 | -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
|
52 | -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
|
53 | -lpidgin |
| 14286 | 54 | |
| 55 | ## | |
| 56 | ## TARGET DEFINITIONS | |
| 57 | ## | |
|
14638
b0fa76dac93f
[gaim-migrate @ 17300]
Daniel Atallah <datallah@pidgin.im>
parents:
14509
diff
changeset
|
58 | .PHONY: all clean plugins install |
| 14286 | 59 | |
| 60 | all: plugins | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16096
diff
changeset
|
61 | # $(MAKE) -C $(GTKPERL_PLUGIN) -f $(MINGW_MAKEFILE) |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16096
diff
changeset
|
62 | $(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
|
63 | $(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
|
64 | $(MAKE) -C $(WINPREFS_PLUGIN) -f $(MINGW_MAKEFILE) |
| 14286 | 65 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16096
diff
changeset
|
66 | install: all $(PIDGIN_INSTALL_PLUGINS_DIR) |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16096
diff
changeset
|
67 | # $(MAKE) -C $(GTKPERL_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
|
68 | $(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
|
69 | $(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
|
70 | $(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
|
71 | cp *.dll $(PIDGIN_INSTALL_PLUGINS_DIR) |
| 14286 | 72 | |
| 73 | .c.dll: | |
| 74 | $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@.o -c $< | |
| 75 | $(CC) -shared $@.o $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $@ | |
| 76 | ||
| 77 | plugins: \ | |
|
15231
f13829d20a13
[gaim-migrate @ 17955]
Gary Kramlich <grim@reaperworld.com>
parents:
14745
diff
changeset
|
78 | convcolors.dll \ |
| 14286 | 79 | extplacement.dll \ |
|
16096
05253a59bd91
Fix plugins compilation. I forgot to commit this.
Daniel Atallah <datallah@pidgin.im>
parents:
15636
diff
changeset
|
80 | pidginrc.dll \ |
| 14286 | 81 | history.dll \ |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
82 | iconaway.dll \ |
|
15231
f13829d20a13
[gaim-migrate @ 17955]
Gary Kramlich <grim@reaperworld.com>
parents:
14745
diff
changeset
|
83 | markerline.dll \ |
| 14286 | 84 | notify.dll \ |
| 85 | relnot.dll \ | |
| 86 | spellchk.dll \ | |
| 87 | timestamp_format.dll \ | |
| 88 | timestamp.dll | |
| 89 | ||
| 90 | ## | |
| 91 | ## CLEAN RULES | |
| 92 | ## | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
93 | clean: |
|
14638
b0fa76dac93f
[gaim-migrate @ 17300]
Daniel Atallah <datallah@pidgin.im>
parents:
14509
diff
changeset
|
94 | rm -f *.o *.dll |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16096
diff
changeset
|
95 | $(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
|
96 | $(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
|
97 | $(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
|
98 | $(MAKE) -C $(WINPREFS_PLUGIN) -f $(MINGW_MAKEFILE) clean |
| 14286 | 99 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
16096
diff
changeset
|
100 | include $(PIDGIN_COMMON_TARGETS) |