libpurple/plugins/perl/Makefile.mingw

Wed, 30 Jul 2008 03:58:21 +0000

author
Daniel Atallah <datallah@pidgin.im>
date
Wed, 30 Jul 2008 03:58:21 +0000
changeset 23931
8975bb78b51a
parent 23915
b62601fd6e7d
child 28783
7271f3acaae4
permissions
-rwxr-xr-x

Cleanup unnecessary casts and etc.

5467
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
1 #
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
2 # Makefile.mingw
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
3 #
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
4 # Description: Makefile for perl plugin loader plugin.
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
5 #
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
6
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15438
diff changeset
7 PIDGIN_TREE_TOP := ../../..
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15438
diff changeset
8 include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak
5467
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
9
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
10 TARGET = perl
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
11
8184
cbe8144455ba [gaim-migrate @ 8904]
Herman Bloggs <herman@bluedigits.com>
parents: 6816
diff changeset
12 # Perl headers with /* /* */ type comments.. Turn off warnings.
cbe8144455ba [gaim-migrate @ 8904]
Herman Bloggs <herman@bluedigits.com>
parents: 6816
diff changeset
13 CFLAGS += -Wno-comment
cbe8144455ba [gaim-migrate @ 8904]
Herman Bloggs <herman@bluedigits.com>
parents: 6816
diff changeset
14
5467
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
15 ##
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
16 ## INCLUDE PATHS
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
17 ##
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
18 INCLUDE_PATHS += -I. \
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15438
diff changeset
19 -I$(PIDGIN_TREE_TOP) \
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15438
diff changeset
20 -I$(PURPLE_TOP) \
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15438
diff changeset
21 -I$(PURPLE_TOP)/win32 \
5467
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
22 -I$(GTK_TOP)/include \
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
23 -I$(GTK_TOP)/include/glib-2.0 \
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
24 -I$(GTK_TOP)/lib/glib-2.0/include \
14377
c0440e16bacd [gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents: 14286
diff changeset
25 -I$(PERL_LIB_TOP)/CORE
5467
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
26
16393
d89faf3f5282 Allow include and lib paths to be overridden from local.ent
Daniel Atallah <datallah@pidgin.im>
parents: 16100
diff changeset
27 LIB_PATHS += -L$(GTK_TOP)/lib \
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15438
diff changeset
28 -L$(PURPLE_TOP) \
14377
c0440e16bacd [gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents: 14286
diff changeset
29 -L$(PERL_LIB_TOP)
5467
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
30
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
31 ##
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
32 ## SOURCES, OBJECTS
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
33 ##
6576
ebc7e2effe6b [gaim-migrate @ 7098]
Herman Bloggs <herman@bluedigits.com>
parents: 5932
diff changeset
34 C_SRC = perl.c \
ebc7e2effe6b [gaim-migrate @ 7098]
Herman Bloggs <herman@bluedigits.com>
parents: 5932
diff changeset
35 perl-common.c \
ebc7e2effe6b [gaim-migrate @ 7098]
Herman Bloggs <herman@bluedigits.com>
parents: 5932
diff changeset
36 perl-handlers.c
5467
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
37
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
38 OBJECTS = $(C_SRC:%.c=%.o)
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
39
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
40 ##
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
41 ## LIBRARIES
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
42 ##
14286
9ff15ceacd34 [gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents: 14254
diff changeset
43 LIBS = \
5467
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
44 -lglib-2.0 \
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
45 -lgmodule-2.0 \
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
46 -lgobject-2.0 \
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
47 -lws2_32 \
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
48 -lintl \
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
49 -lpurple \
23915
b62601fd6e7d Update the Perl plugin loader to work with Perl 5.10.
Daniel Atallah <datallah@pidgin.im>
parents: 16393
diff changeset
50 -lperl510
5467
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
51
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15438
diff changeset
52 include $(PIDGIN_COMMON_RULES)
5467
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
53
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
54 ##
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
55 ## TARGET DEFINITIONS
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
56 ##
14638
b0fa76dac93f [gaim-migrate @ 17300]
Daniel Atallah <datallah@pidgin.im>
parents: 14509
diff changeset
57 .PHONY: all install clean
5467
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
58
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
59 all: $(TARGET).dll
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15438
diff changeset
60 $(MAKE) -C ./common -f $(MINGW_MAKEFILE)
5467
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
61
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15438
diff changeset
62 install: all $(PURPLE_INSTALL_PLUGINS_DIR)
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15438
diff changeset
63 cp $(TARGET).dll $(PURPLE_INSTALL_PLUGINS_DIR)
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15438
diff changeset
64 $(MAKE) -C ./common -f $(MINGW_MAKEFILE) install
5467
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
65
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15438
diff changeset
66 $(OBJECTS): $(PURPLE_CONFIG_H)
5467
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
67
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
68 ##
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
69 ## BUILD DLL
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
70 ##
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15438
diff changeset
71 $(TARGET).dll $(TARGET).dll.a: $(PURPLE_DLL).a $(OBJECTS)
14509
e46c4ed7e331 [gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents: 14435
diff changeset
72 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--export-all-symbols -Wl,--out-implib,$(TARGET).dll.a -o $(TARGET).dll
5467
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
73
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
74 ##
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
75 ## CLEAN RULES
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
76 ##
14377
c0440e16bacd [gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents: 14286
diff changeset
77 clean:
c0440e16bacd [gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents: 14286
diff changeset
78 rm -rf $(OBJECTS)
14913
d7070b12458a [gaim-migrate @ 17620]
Lee Roach <phroggster@gmail.com>
parents: 14638
diff changeset
79 rm -rf $(TARGET).dll $(TARGET).dll.a
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15438
diff changeset
80 $(MAKE) -C ./common -f $(MINGW_MAKEFILE) clean
5467
5f3f1b4dcb83 [gaim-migrate @ 5859]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
81
16100
a0ab70986c10 This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents: 15438
diff changeset
82 include $(PIDGIN_COMMON_TARGETS)

mercurial