Fix one forgotten warning -> diagnostics change
[siplcs.git] / Makefile.mingw
blobc6f03743ee5063c0049091e24d5b172f243fc0d5
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.2
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 tests: dev
46         $(MAKE) -C src -f $(MINGW_MAKEFILE) tests
47         
48 msi: all
49         SIPE_VERSION=$(VERSION) $(WIX3_HOME)/bin/candle $(WXS_NAME).wxs
50         $(WIX3_HOME)/bin/light $(WXS_NAME).wixobj
51         mv $(WXS_NAME).msi $(WXS_NAME)-$(VERSION).msi