Thu, 13 Feb 2014 23:12:26 -0500
Remove unnecessary executable bits.
| 5467 | 1 | # |
| 2 | # Makefile.mingw | |
| 3 | # | |
| 4 | # Description: Makefile for perl plugin loader plugin. | |
| 5 | # | |
| 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 | 9 | |
|
28783
7271f3acaae4
Define WIN32_LEAN_AND_MEAN where possible during the compile to hopefully speed it up.
Daniel Atallah <datallah@pidgin.im>
parents:
23915
diff
changeset
|
10 | 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:
23915
diff
changeset
|
11 | |
| 5467 | 12 | TARGET = perl |
| 13 | ||
|
8184
cbe8144455ba
[gaim-migrate @ 8904]
Herman Bloggs <herman@bluedigits.com>
parents:
6816
diff
changeset
|
14 | # Perl headers with /* /* */ type comments.. Turn off warnings. |
|
28783
7271f3acaae4
Define WIN32_LEAN_AND_MEAN where possible during the compile to hopefully speed it up.
Daniel Atallah <datallah@pidgin.im>
parents:
23915
diff
changeset
|
15 | GCCWARNINGS += -Wno-comment |
|
8184
cbe8144455ba
[gaim-migrate @ 8904]
Herman Bloggs <herman@bluedigits.com>
parents:
6816
diff
changeset
|
16 | |
| 5467 | 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:
15438
diff
changeset
|
21 | -I$(PIDGIN_TREE_TOP) \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
22 | -I$(PURPLE_TOP) \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
23 | -I$(PURPLE_TOP)/win32 \ |
| 5467 | 24 | -I$(GTK_TOP)/include \ |
| 25 | -I$(GTK_TOP)/include/glib-2.0 \ | |
| 26 | -I$(GTK_TOP)/lib/glib-2.0/include \ | |
|
33873
21b6ce1aae13
win32: tidy up perl package, fix warnings
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
28783
diff
changeset
|
27 | -I$(PERL_LIB_TOP)/include |
| 5467 | 28 | |
|
16393
d89faf3f5282
Allow include and lib paths to be overridden from local.ent
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
29 | 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
|
30 | -L$(PURPLE_TOP) \ |
|
33873
21b6ce1aae13
win32: tidy up perl package, fix warnings
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
28783
diff
changeset
|
31 | -L$(PERL_LIB_TOP)/lib |
| 5467 | 32 | |
| 33 | ## | |
| 34 | ## SOURCES, OBJECTS | |
| 35 | ## | |
|
6576
ebc7e2effe6b
[gaim-migrate @ 7098]
Herman Bloggs <herman@bluedigits.com>
parents:
5932
diff
changeset
|
36 | C_SRC = perl.c \ |
|
ebc7e2effe6b
[gaim-migrate @ 7098]
Herman Bloggs <herman@bluedigits.com>
parents:
5932
diff
changeset
|
37 | perl-common.c \ |
|
ebc7e2effe6b
[gaim-migrate @ 7098]
Herman Bloggs <herman@bluedigits.com>
parents:
5932
diff
changeset
|
38 | perl-handlers.c |
| 5467 | 39 | |
| 40 | OBJECTS = $(C_SRC:%.c=%.o) | |
| 41 | ||
| 42 | ## | |
| 43 | ## LIBRARIES | |
| 44 | ## | |
|
14286
9ff15ceacd34
[gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
45 | LIBS = \ |
| 5467 | 46 | -lglib-2.0 \ |
| 47 | -lgmodule-2.0 \ | |
| 48 | -lgobject-2.0 \ | |
| 49 | -lws2_32 \ | |
| 50 | -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
|
51 | -lpurple \ |
|
23915
b62601fd6e7d
Update the Perl plugin loader to work with Perl 5.10.
Daniel Atallah <datallah@pidgin.im>
parents:
16393
diff
changeset
|
52 | -lperl510 |
| 5467 | 53 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
54 | include $(PIDGIN_COMMON_RULES) |
| 5467 | 55 | |
| 56 | ## | |
| 57 | ## TARGET DEFINITIONS | |
| 58 | ## | |
|
14638
b0fa76dac93f
[gaim-migrate @ 17300]
Daniel Atallah <datallah@pidgin.im>
parents:
14509
diff
changeset
|
59 | .PHONY: all install clean |
| 5467 | 60 | |
| 61 | all: $(TARGET).dll | |
|
33937
f15e97d8758e
win32: silence build even more
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33873
diff
changeset
|
62 | $(MAKE_at) $(MAKE) -C ./common -f $(MINGW_MAKEFILE) |
| 5467 | 63 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
64 | 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
|
65 | cp $(TARGET).dll $(PURPLE_INSTALL_PLUGINS_DIR) |
|
33937
f15e97d8758e
win32: silence build even more
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33873
diff
changeset
|
66 | $(MAKE_at) $(MAKE) -C ./common -f $(MINGW_MAKEFILE) install |
| 5467 | 67 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
68 | $(OBJECTS): $(PURPLE_CONFIG_H) |
| 5467 | 69 | |
| 70 | ## | |
| 71 | ## BUILD DLL | |
| 72 | ## | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
73 | $(TARGET).dll $(TARGET).dll.a: $(PURPLE_DLL).a $(OBJECTS) |
|
14509
e46c4ed7e331
[gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
14435
diff
changeset
|
74 | $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--export-all-symbols -Wl,--out-implib,$(TARGET).dll.a -o $(TARGET).dll |
| 5467 | 75 | |
| 76 | ## | |
| 77 | ## CLEAN RULES | |
| 78 | ## | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
79 | clean: |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
80 | rm -rf $(OBJECTS) |
| 14913 | 81 | rm -rf $(TARGET).dll $(TARGET).dll.a |
|
33937
f15e97d8758e
win32: silence build even more
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33873
diff
changeset
|
82 | $(MAKE_at) $(MAKE) -C ./common -f $(MINGW_MAKEFILE) clean |
| 5467 | 83 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
84 | include $(PIDGIN_COMMON_TARGETS) |