Sat, 31 Oct 2009 19:26:19 +0000
propagate from branch 'im.pidgin.pidgin' (head 7271f3acaae450e032403ec462b1ccb6668d5097)
to branch 'im.pidgin.pidgin.next.minor' (head 7ba47b28bda9b650688c6d65002b355d6e1e4d2b)
| 14509 | 1 | # |
| 2 | # Makefile.mingw | |
| 3 | # | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
4 | # Description: Makefile for Pidgin perl module. |
| 14509 | 5 | # |
| 6 | ||
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
7 | PIDGIN_TREE_TOP := ../../../.. |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
8 | include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak |
| 14509 | 9 | |
|
28783
7271f3acaae4
Define WIN32_LEAN_AND_MEAN where possible during the compile to hopefully speed it up.
Daniel Atallah <datallah@pidgin.im>
parents:
27665
diff
changeset
|
10 | GCCWARNINGS += -Wno-comment -Wno-unused -Wno-nested-externs |
|
7271f3acaae4
Define WIN32_LEAN_AND_MEAN where possible during the compile to hopefully speed it up.
Daniel Atallah <datallah@pidgin.im>
parents:
27665
diff
changeset
|
11 | |
|
7271f3acaae4
Define WIN32_LEAN_AND_MEAN where possible during the compile to hopefully speed it up.
Daniel Atallah <datallah@pidgin.im>
parents:
27665
diff
changeset
|
12 | DEFINES := $(subst -DWIN32_LEAN_AND_MEAN,,$(DEFINES)) |
|
7271f3acaae4
Define WIN32_LEAN_AND_MEAN where possible during the compile to hopefully speed it up.
Daniel Atallah <datallah@pidgin.im>
parents:
27665
diff
changeset
|
13 | |
|
16108
f034f01bc55e
Fix some mingw makefile rename glitches.
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
14 | TARGET = Pidgin |
|
15533
1787d1216249
Some more changes to the win32 build to support cross-compiling.
Daniel Atallah <datallah@pidgin.im>
parents:
15438
diff
changeset
|
15 | EXTUTILS ?= C:/perl/lib/ExtUtils |
| 14509 | 16 | |
| 17 | ## | |
| 18 | ## INCLUDE PATHS | |
| 19 | ## | |
| 20 | INCLUDE_PATHS = -I. \ | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
21 | -I$(PIDGIN_TREE_TOP) \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
22 | -I$(PURPLE_TOP) \ |
|
18633
34ba43198355
Fix the win32 build. Thanks to Etan and Lee Roach. Fixes #1929.
Daniel Atallah <datallah@pidgin.im>
parents:
16641
diff
changeset
|
23 | -I$(PURPLE_TOP)/win32 \ |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
24 | -I$(PIDGIN_TOP) \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
25 | -I$(PIDGIN_TOP)/win32 \ |
| 14509 | 26 | -I$(GTK_TOP)/include \ |
| 27 | -I$(GTK_TOP)/include/atk-1.0 \ | |
|
29502
93207c23495b
Fix Windows build with gtk-dev-2.10.3-rev-a.tar.gz package that doesn't
Kevin Stange <kstange@pidgin.im>
parents:
27665
diff
changeset
|
28 | -I$(GTK_TOP)/include/cairo \ |
| 14509 | 29 | -I$(GTK_TOP)/include/glib-2.0 \ |
| 30 | -I$(GTK_TOP)/include/gtk-2.0 \ | |
| 31 | -I$(GTK_TOP)/include/pango-1.0 \ | |
| 32 | -I$(GTK_TOP)/lib/glib-2.0/include \ | |
| 33 | -I$(GTK_TOP)/lib/gtk-2.0/include \ | |
| 34 | -I$(PERL_LIB_TOP)/CORE | |
| 35 | ||
|
16393
d89faf3f5282
Allow include and lib paths to be overridden from local.ent
Daniel Atallah <datallah@pidgin.im>
parents:
16108
diff
changeset
|
36 | LIB_PATHS += -L$(PERL_LIB_TOP) \ |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
37 | -L$(PURPLE_TOP) \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
38 | -L$(PIDGIN_TOP) \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
39 | -L$(PURPLE_PERL_TOP) \ |
| 14509 | 40 | -L$(GTK_TOP)/lib |
| 41 | ||
| 42 | ## | |
| 43 | ## SOURCES, OBJECTS | |
| 44 | ## | |
| 45 | XS_FILES = \ | |
|
16529
1d0da9270ff9
This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <deryni@pidgin.im>
parents:
16393
diff
changeset
|
46 | Pidgin.xs \ |
| 14509 | 47 | GtkAccount.xs \ |
| 48 | GtkBlist.xs \ | |
| 49 | GtkConn.xs \ | |
| 50 | GtkConv.xs \ | |
| 51 | GtkConvWin.xs \ | |
| 52 | GtkDebug.xs \ | |
| 53 | GtkDialogs.xs \ | |
| 54 | GtkFt.xs \ | |
| 55 | GtkIMHtml.xs \ | |
| 56 | GtkIMHtmlToolbar.xs \ | |
| 57 | GtkLog.xs \ | |
| 58 | GtkMenuTray.xs \ | |
| 59 | GtkPlugin.xs \ | |
| 60 | GtkPluginPref.xs \ | |
| 61 | GtkPounce.xs \ | |
| 62 | GtkPrefs.xs \ | |
| 63 | GtkPrivacy.xs \ | |
| 64 | GtkRoomlist.xs \ | |
| 65 | GtkSavedStatuses.xs \ | |
| 66 | GtkSound.xs \ | |
| 67 | GtkStatusBox.xs \ | |
| 68 | GtkThemes.xs \ | |
| 69 | GtkUtils.xs | |
| 70 | ||
| 71 | ||
| 72 | C_FILES = $(XS_FILES:%.xs=%.c) | |
| 73 | OBJECTS = $(C_FILES:%.c=%.o) | |
| 74 | ||
| 75 | ## | |
| 76 | ## LIBRARIES | |
| 77 | ## | |
|
23915
b62601fd6e7d
Update the Perl plugin loader to work with Perl 5.10.
Daniel Atallah <datallah@pidgin.im>
parents:
18633
diff
changeset
|
78 | LIBS = -lperl510 \ |
| 14509 | 79 | -lperl \ |
|
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
|
80 | -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
|
81 | -lpidgin \ |
| 14509 | 82 | -lglib-2.0 |
| 83 | ||
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
84 | include $(PIDGIN_COMMON_RULES) |
| 14509 | 85 | |
| 86 | ## | |
| 87 | ## TARGETS | |
| 88 | ## | |
|
14638
b0fa76dac93f
[gaim-migrate @ 17300]
Daniel Atallah <datallah@pidgin.im>
parents:
14637
diff
changeset
|
89 | .PHONY: all install clean |
| 14509 | 90 | |
| 91 | all: $(TARGET).dll | |
| 92 | ||
|
27665
00196a586c45
Modify the Windows build/install setup to deal with the perl modules the way
Etan Reisner <deryni@pidgin.im>
parents:
23915
diff
changeset
|
93 | $(PURPLE_INSTALL_PERL_DIR)/Purple.pm: |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
94 | $(MAKE) -C $(PURPLE_PERL_TOP)/common -f $(MINGW_MAKEFILE) install |
| 14509 | 95 | |
|
27665
00196a586c45
Modify the Windows build/install setup to deal with the perl modules the way
Etan Reisner <deryni@pidgin.im>
parents:
23915
diff
changeset
|
96 | install: all $(PURPLE_INSTALL_PERL_DIR)/Purple.pm |
|
00196a586c45
Modify the Windows build/install setup to deal with the perl modules the way
Etan Reisner <deryni@pidgin.im>
parents:
23915
diff
changeset
|
97 | rm -f $(PIDGIN_INSTALL_PERL_DIR)/$(TARGET).dll $(PIDGIN_INSTALL_PERL_DIR)/auto/Pidgin/$(TARGET).pm |
|
00196a586c45
Modify the Windows build/install setup to deal with the perl modules the way
Etan Reisner <deryni@pidgin.im>
parents:
23915
diff
changeset
|
98 | mkdir -p $(PIDGIN_INSTALL_PERL_DIR) |
|
00196a586c45
Modify the Windows build/install setup to deal with the perl modules the way
Etan Reisner <deryni@pidgin.im>
parents:
23915
diff
changeset
|
99 | cp $(TARGET).pm $(PIDGIN_INSTALL_PERL_DIR) |
|
00196a586c45
Modify the Windows build/install setup to deal with the perl modules the way
Etan Reisner <deryni@pidgin.im>
parents:
23915
diff
changeset
|
100 | mkdir -p $(PIDGIN_INSTALL_PERL_DIR)/auto/Pidgin |
|
00196a586c45
Modify the Windows build/install setup to deal with the perl modules the way
Etan Reisner <deryni@pidgin.im>
parents:
23915
diff
changeset
|
101 | cp $(TARGET).dll $(PIDGIN_INSTALL_PERL_DIR)/auto/Pidgin |
| 14509 | 102 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
103 | $(C_FILES): $(PIDGIN_CONFIG_H) |
| 14509 | 104 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
105 | $(TARGET).dll: $(PIDGIN_DLL).a $(PURPLE_PERL_DLL).a $(OBJECTS) |
| 14509 | 106 | $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) -o $(TARGET).dll |
| 107 | ||
| 108 | ## | |
| 109 | ## CLEAN | |
| 110 | ## | |
| 111 | clean: | |
|
14761
d90178571681
[gaim-migrate @ 17451]
Daniel Atallah <datallah@pidgin.im>
parents:
14638
diff
changeset
|
112 | rm -f *.o $(C_FILES) $(TARGET).dll |
| 14509 | 113 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15636
diff
changeset
|
114 | include $(PIDGIN_COMMON_TARGETS) |