pidgin/plugins/perl/common/Makefile.mingw

Sun, 09 Oct 2016 17:18:55 -0500

author
Mike Ruprecht <cmaiku@gmail.com>
date
Sun, 09 Oct 2016 17:18:55 -0500
changeset 38316
7d7cab247dcd
parent 36308
4432aff3b90d
permissions
-rw-r--r--

po/POTFILES.skip: Clean out files no longer in the tree

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 := ../../../..
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
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
9
35616
bf491142b9ce Fix win32 build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 33364
diff changeset
10 #we cannot include win32dep.h, but we need struct sockaddr_in6 definition
bf491142b9ce Fix win32 build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 33364
diff changeset
11 CFLAGS += -include ws2tcpip.h
bf491142b9ce Fix win32 build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 33364
diff changeset
12
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
13 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
14
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
15 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
16
16108
f034f01bc55e Fix some mingw makefile rename glitches.
Daniel Atallah <datallah@pidgin.im>
parents: 16100
diff changeset
17 TARGET = Pidgin
14509
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
18
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
19 ##
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
20 ## INCLUDE PATHS
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
21 ##
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
22 INCLUDE_PATHS = -I. \
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15636
diff changeset
23 -I$(PIDGIN_TREE_TOP) \
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15636
diff changeset
24 -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
25 -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
26 -I$(PIDGIN_TOP) \
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15636
diff changeset
27 -I$(PIDGIN_TOP)/win32 \
14509
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
28 -I$(GTK_TOP)/include \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
29 -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
30 -I$(GTK_TOP)/include/cairo \
14509
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
31 -I$(GTK_TOP)/include/glib-2.0 \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
32 -I$(GTK_TOP)/include/gtk-2.0 \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
33 -I$(GTK_TOP)/include/pango-1.0 \
33854
5744cfb1c3d1 Fix 3.0.0 compilation for win32, switch gtk (and others) runtimes from gnome.org to opensuse build service
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33364
diff changeset
34 -I$(GTK_TOP)/include/gdk-pixbuf-2.0 \
14509
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
35 -I$(GTK_TOP)/lib/glib-2.0/include \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
36 -I$(GTK_TOP)/lib/gtk-2.0/include \
33854
5744cfb1c3d1 Fix 3.0.0 compilation for win32, switch gtk (and others) runtimes from gnome.org to opensuse build service
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33364
diff changeset
37 -I$(LIBSOUP_TOP)/include/libsoup-2.4 \
5744cfb1c3d1 Fix 3.0.0 compilation for win32, switch gtk (and others) runtimes from gnome.org to opensuse build service
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33364
diff changeset
38 -I$(WEBKITGTK_TOP)/include/webkitgtk-1.0 \
33873
21b6ce1aae13 win32: tidy up perl package, fix warnings
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33854
diff changeset
39 -I$(PERL_LIB_TOP)/include
14509
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
40
33873
21b6ce1aae13 win32: tidy up perl package, fix warnings
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33854
diff changeset
41 LIB_PATHS += \
21b6ce1aae13 win32: tidy up perl package, fix warnings
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33854
diff changeset
42 -L$(PERL_LIB_TOP)/lib \
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15636
diff changeset
43 -L$(PURPLE_TOP) \
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15636
diff changeset
44 -L$(PIDGIN_TOP) \
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15636
diff changeset
45 -L$(PURPLE_PERL_TOP) \
14509
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
46 -L$(GTK_TOP)/lib
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
47
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
48 ##
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
49 ## SOURCES, OBJECTS
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
50 ##
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
51 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
52 Pidgin.xs \
14509
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
53 GtkAccount.xs \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
54 GtkBlist.xs \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
55 GtkConn.xs \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
56 GtkConv.xs \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
57 GtkConvWin.xs \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
58 GtkDebug.xs \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
59 GtkDialogs.xs \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
60 GtkFt.xs \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
61 GtkLog.xs \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
62 GtkMenuTray.xs \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
63 GtkPlugin.xs \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
64 GtkPluginPref.xs \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
65 GtkPounce.xs \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
66 GtkPrefs.xs \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
67 GtkPrivacy.xs \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
68 GtkRoomlist.xs \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
69 GtkSavedStatuses.xs \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
70 GtkSound.xs \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
71 GtkStatusBox.xs \
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
72 GtkUtils.xs
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
73
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
74
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
75 C_FILES = $(XS_FILES:%.xs=%.c)
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
76 OBJECTS = $(C_FILES:%.c=%.o)
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
77
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
78 ##
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
79 ## LIBRARIES
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
80 ##
36301
2b4af2e09a67 Update windows build to use perl 5.20.1. Thanks to Renato Silva for much of this. Fixes #15599
Daniel Atallah <datallah@pidgin.im>
parents: 35616
diff changeset
81 LIBS = -lperl520 \
14509
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
82 -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
83 -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
84 -lpidgin \
14509
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
85 -lglib-2.0
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
86
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15636
diff changeset
87 include $(PIDGIN_COMMON_RULES)
14509
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
88
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
89 ##
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
90 ## TARGETS
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
91 ##
14638
b0fa76dac93f [gaim-migrate @ 17300]
Daniel Atallah <datallah@pidgin.im>
parents: 14637
diff changeset
92 .PHONY: all install clean
14509
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
93
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
94 all: $(TARGET).dll
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
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 $(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
97 $(MAKE) -C $(PURPLE_PERL_TOP)/common -f $(MINGW_MAKEFILE) install
14509
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
98
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
99 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
100 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
101 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
102 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
103 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
104 cp $(TARGET).dll $(PIDGIN_INSTALL_PERL_DIR)/auto/Pidgin
14509
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
105
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15636
diff changeset
106 $(C_FILES): $(PIDGIN_CONFIG_H)
14509
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
107
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15636
diff changeset
108 $(TARGET).dll: $(PIDGIN_DLL).a $(PURPLE_PERL_DLL).a $(OBJECTS)
33364
d9ebf57cd361 Enable DEP and ASLR flags as well as some other security related compiler flags
Daniel Atallah <datallah@pidgin.im>
parents: 29868
diff changeset
109 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(DLL_LD_FLAGS) $(LIBS) -o $(TARGET).dll
14509
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
110
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
111 ##
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
112 ## CLEAN
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
113 ##
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
114 clean:
14761
d90178571681 [gaim-migrate @ 17451]
Daniel Atallah <datallah@pidgin.im>
parents: 14638
diff changeset
115 rm -f *.o $(C_FILES) $(TARGET).dll
14509
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
116
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15636
diff changeset
117 include $(PIDGIN_COMMON_TARGETS)

mercurial