pidgin/plugins/perl/common/Makefile.mingw

Sun, 08 Mar 2009 06:24:15 +0000

author
Sulabh Mahajan <sulabh@pidgin.im>
date
Sun, 08 Mar 2009 06:24:15 +0000
changeset 26378
e85d894af8a5
parent 23915
b62601fd6e7d
child 27665
00196a586c45
permissions
-rw-r--r--

propagate from branch 'im.pidgin.pidgin' (head 168b66075e088f3baaa85ebba520e37d42aa3d0c)
to branch 'im.pidgin.soc.2008.yahoo' (head 9124a345ed3a0154f0c4f10fe2b2c67e9b49215f)

14509
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
1 #
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
2 # Makefile.mingw
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
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
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
5 #
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
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 := ../../../..
23915
b62601fd6e7d Update the Perl plugin loader to work with Perl 5.10.
Daniel Atallah <datallah@pidgin.im>
parents: 18633
diff changeset
8 GCCWARNINGS := -Wno-comment -Waggregate-return -Wcast-align -Wdeclaration-after-statement -Werror-implicit-function-declaration -Wextra -Wno-sign-compare -Wno-unused-parameter -Winit-self -Wmissing-declarations -Wmissing-prototypes -Wpointer-arith -Wundef -Wno-unused
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15636
diff changeset
9 include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak
14509
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
10
16108
f034f01bc55e Fix some mingw makefile rename glitches.
Daniel Atallah <datallah@pidgin.im>
parents: 16100
diff changeset
11 TARGET = Pidgin
15533
1787d1216249 Some more changes to the win32 build to support cross-compiling.
Daniel Atallah <datallah@pidgin.im>
parents: 15438
diff changeset
12 EXTUTILS ?= C:/perl/lib/ExtUtils
14509
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
13
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
14 ##
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
15 ## INCLUDE PATHS
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
16 ##
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
17 INCLUDE_PATHS = -I. \
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15636
diff changeset
18 -I$(PIDGIN_TREE_TOP) \
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15636
diff changeset
19 -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
20 -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
21 -I$(PIDGIN_TOP) \
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15636
diff changeset
22 -I$(PIDGIN_TOP)/win32 \
14509
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
23 -I$(GTK_TOP)/include \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
24 -I$(GTK_TOP)/include/atk-1.0 \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
25 -I$(GTK_TOP)/include/glib-2.0 \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
26 -I$(GTK_TOP)/include/gtk-2.0 \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
27 -I$(GTK_TOP)/include/pango-1.0 \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
28 -I$(GTK_TOP)/lib/glib-2.0/include \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
29 -I$(GTK_TOP)/lib/gtk-2.0/include \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
30 -I$(PERL_LIB_TOP)/CORE
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
31
16393
d89faf3f5282 Allow include and lib paths to be overridden from local.ent
Daniel Atallah <datallah@pidgin.im>
parents: 16108
diff changeset
32 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
33 -L$(PURPLE_TOP) \
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15636
diff changeset
34 -L$(PIDGIN_TOP) \
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15636
diff changeset
35 -L$(PURPLE_PERL_TOP) \
14509
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
36 -L$(GTK_TOP)/lib
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
37
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
38 ##
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
39 ## SOURCES, OBJECTS
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
40 ##
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
41 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
42 Pidgin.xs \
14509
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
43 GtkAccount.xs \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
44 GtkBlist.xs \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
45 GtkConn.xs \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
46 GtkConv.xs \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
47 GtkConvWin.xs \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
48 GtkDebug.xs \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
49 GtkDialogs.xs \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
50 GtkFt.xs \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
51 GtkIMHtml.xs \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
52 GtkIMHtmlToolbar.xs \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
53 GtkLog.xs \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
54 GtkMenuTray.xs \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
55 GtkPlugin.xs \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
56 GtkPluginPref.xs \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
57 GtkPounce.xs \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
58 GtkPrefs.xs \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
59 GtkPrivacy.xs \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
60 GtkRoomlist.xs \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
61 GtkSavedStatuses.xs \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
62 GtkSound.xs \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
63 GtkStatusBox.xs \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
64 GtkThemes.xs \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
65 GtkUtils.xs
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
66
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
67
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
68 C_FILES = $(XS_FILES:%.xs=%.c)
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
69 OBJECTS = $(C_FILES:%.c=%.o)
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
70
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
71 ##
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
72 ## LIBRARIES
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
73 ##
23915
b62601fd6e7d Update the Perl plugin loader to work with Perl 5.10.
Daniel Atallah <datallah@pidgin.im>
parents: 18633
diff changeset
74 LIBS = -lperl510 \
14509
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
75 -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
76 -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
77 -lpidgin \
14509
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
78 -lglib-2.0
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
79
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15636
diff changeset
80 include $(PIDGIN_COMMON_RULES)
14509
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
81
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
82 ##
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
83 ## TARGETS
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
84 ##
14638
b0fa76dac93f [gaim-migrate @ 17300]
Daniel Atallah <datallah@pidgin.im>
parents: 14637
diff changeset
85 .PHONY: all install clean
14509
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
86
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
87 all: $(TARGET).dll
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
88
16108
f034f01bc55e Fix some mingw makefile rename glitches.
Daniel Atallah <datallah@pidgin.im>
parents: 16100
diff changeset
89 $(PURPLE_INSTALL_PERLMOD_DIR)/Purple.pm:
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15636
diff changeset
90 $(MAKE) -C $(PURPLE_PERL_TOP)/common -f $(MINGW_MAKEFILE) install
14509
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
91
16108
f034f01bc55e Fix some mingw makefile rename glitches.
Daniel Atallah <datallah@pidgin.im>
parents: 16100
diff changeset
92 install: all $(PURPLE_INSTALL_PERLMOD_DIR)/Purple.pm
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15636
diff changeset
93 rm -f $(PIDGIN_INSTALL_PERLMOD_DIR)/$(TARGET).dll $(PIDGIN_INSTALL_PERLMOD_DIR)/Pidgin/$(TARGET).pm
16641
dca38ef38fc4 Fix win32 pidgin perl stuff. This hasn't been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 16529
diff changeset
94 mkdir -p $(PIDGIN_INSTALL_PERLMOD_DIR)
dca38ef38fc4 Fix win32 pidgin perl stuff. This hasn't been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 16529
diff changeset
95 cp $(TARGET).pm $(PIDGIN_INSTALL_PERLMOD_DIR)
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15636
diff changeset
96 cp $(TARGET).dll $(PIDGIN_INSTALL_PERLMOD_DIR)
14509
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
97
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15636
diff changeset
98 $(C_FILES): $(PIDGIN_CONFIG_H)
14509
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
99
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15636
diff changeset
100 $(TARGET).dll: $(PIDGIN_DLL).a $(PURPLE_PERL_DLL).a $(OBJECTS)
14509
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
101 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) -o $(TARGET).dll
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
102
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
103 ##
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
104 ## CLEAN
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
105 ##
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
106 clean:
14761
d90178571681 [gaim-migrate @ 17451]
Daniel Atallah <datallah@pidgin.im>
parents: 14638
diff changeset
107 rm -f *.o $(C_FILES) $(TARGET).dll
14509
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
108
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15636
diff changeset
109 include $(PIDGIN_COMMON_TARGETS)

mercurial