presence: all statuses can hold Note now
[siplcs.git] / Makefile.mingw
blobc6732fccedb08fe4ef04fbc2de09f42bc7c244d6
1 # Makefile.mingw
3 # Author: pier11@operamail.com
4 # Author: zup@sbox.tugraz.at
5 # Date 11 Nov 2009
6 # Description: Top Makefile for win32 (mingw) port of LCS protocol plugin
9 export PIDGIN_TREE_TOP := ../pidgin-2.6.5
10 include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak
12 export CFLAGS=-Werror
14 WIX3_HOME := /cygdrive/c/Program\ Files/Windows\ Installer\ XML\ v3
15 WXS_NAME := pidgin-sipe
16 export VERSION := $(shell cat VERSION)
18 .PHONY: all clean install msi dev devinst
20 all: 
21         $(MAKE) -C src -f $(MINGW_MAKEFILE)
22         $(MAKE) -C po -f $(MINGW_MAKEFILE)
23         
24 dev: 
25         $(MAKE) -C src -f $(MINGW_MAKEFILE)
27 clean:
28         $(MAKE) -C src -f $(MINGW_MAKEFILE) clean
29         $(MAKE) -C po -f $(MINGW_MAKEFILE) clean
30         rm -f $(WXS_NAME).wix*
31         rm -f $(WXS_NAME)-$(VERSION).msi
32   
33 rmbak:
34         rm -f *~
35         $(MAKE) -C src -f $(MINGW_MAKEFILE) rmbak
36         
37 install: all
38         $(MAKE) -C src -f $(MINGW_MAKEFILE) install
39         $(MAKE) -C po -f $(MINGW_MAKEFILE) install
40         $(MAKE) -C pixmaps -f $(MINGW_MAKEFILE) install
41         
42 devinst: dev
43         $(MAKE) -C src -f $(MINGW_MAKEFILE) install
44         
45 msi: all
46         SIPE_VERSION=$(VERSION) $(WIX3_HOME)/bin/candle $(WXS_NAME).wxs
47         $(WIX3_HOME)/bin/light $(WXS_NAME).wixobj
48         mv $(WXS_NAME).msi $(WXS_NAME)-$(VERSION).msi