File: Makefile.mingw

package info (click to toggle)
pidgin-sipe 1.25.0-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,052 kB
  • sloc: ansic: 52,128; objc: 980; makefile: 662; lex: 357; perl: 335; sh: 284; xml: 30
file content (82 lines) | stat: -rw-r--r-- 2,378 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
################################### tell Emacs this is a -*- makefile-gmake -*-
#
# Copyright (C) 2012-2014 SIPE Project <http://sipe.sourceforge.net/>
#
# Makefile.mingw
#
# Author: pier11@operamail.com
# Author: zup@sbox.tugraz.at
# Date 11 Nov 2009
# Description: Top Makefile for win32 (mingw) port of LCS protocol plugin
#
###############################################################################

ifndef PIDGIN_TREE_TOP
# standalone MinGW build
export PIDGIN_TREE_TOP := ../pidgin-2.10.0
endif
include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak

export CFLAGS=-Werror

WIX3_HOME := /cygdrive/c/Program\ Files/Windows\ Installer\ XML\ v3
WXS_NAME := pidgin-sipe
export VERSION := $(shell cat VERSION)
PIDGIN_VERSION := $(shell cat $(PIDGIN_TREE_TOP)/VERSION)

.PHONY: all clean install msi dev devinst nsis

all:
	$(MAKE) -C src -f $(MINGW_MAKEFILE)
	$(MAKE) -C po -f $(MINGW_MAKEFILE)

dev:
	$(MAKE) -C src -f $(MINGW_MAKEFILE)

clean:
	$(MAKE) -C src -f $(MINGW_MAKEFILE) clean
	$(MAKE) -C po -f $(MINGW_MAKEFILE) clean
	rm -f $(WXS_NAME).wix*
	rm -f $(WXS_NAME)-$(VERSION).msi
	rm -f pidgin-sipe-$(VERSION).exe

rmbak:
	rm -f *~
	$(MAKE) -C src -f $(MINGW_MAKEFILE) rmbak

install: all
	$(MAKE) -C src -f $(MINGW_MAKEFILE) install
	$(MAKE) -C po -f $(MINGW_MAKEFILE) install
	$(MAKE) -C pixmaps -f $(MINGW_MAKEFILE) install

devinst: dev
	$(MAKE) -C src -f $(MINGW_MAKEFILE) install

tests: dev
	$(MAKE) -C src -f $(MINGW_MAKEFILE) tests

msi: all
	PACKAGE_VERSION=$(VERSION) $(WIX3_HOME)/bin/candle $(WXS_NAME).wxs
	$(WIX3_HOME)/bin/light $(WXS_NAME).wixobj
	mv $(WXS_NAME).msi $(WXS_NAME)-$(VERSION).msi

nsis: install
	makensis -DTREETOP=..\\pidgin-2.10.0 -DVERSION=$(VERSION) pidgin-sipe.nsi

# MinGW cross-compile build (see contrib/mingw-cross-compile/README.txt)
.PHONY: cross-compile-nsis
cross-compile-nsis:
	$(MAKE) -f Makefile.mingw install
	mv $(PIDGIN_INSTALL_DIR)/plugins $(PIDGIN_INSTALL_DIR)/purple-2
	perl contrib/opensuse-build-service/generate_nsi.pl po/LINGUAS \
		<contrib/opensuse-build-service/pidgin-sipe.nsi.template \
		>$(PIDGIN_INSTALL_DIR)/pidgin-sipe.nsi
	set -e; cd $(PIDGIN_INSTALL_DIR); \
	makensis \
		-DPIDGIN_VERSION=$(PIDGIN_VERSION) \
		-DVERSION=$(VERSION) \
		-DMINGW_LIBDIR=. \
		-DMINGW_DATADIR=. \
		pidgin-sipe.nsi
	mv $(PIDGIN_INSTALL_DIR)/pidgin-sipe-$(VERSION).exe $(PIDGIN_TREE_TOP)
	rm -rf $(PIDGIN_INSTALL_DIR)