Mercurial > pidgin
annotate Makefile.mingw @ 15765:51dd9ae01585
pass the correct domain to cyrus sasl (sf patch 1663064)
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sat, 03 Mar 2007 19:18:38 +0000 |
parents | e00b89c00bf6 |
children | e11859350489 |
rev | line source |
---|---|
3630 | 1 # Makefile.mingw |
8615 | 2 # |
3630 | 3 # Author: hermanator12002@yahoo.com |
4 # Date 9/11/02 | |
5 # Description: Top Makefile for win32 (mingw) port of Gaim | |
6 # | |
7 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14241
diff
changeset
|
8 GAIM_TOP := . |
15376
0e17470b47c2
Update win32 build for libpurple and pidgin renames. This compiles, but is far from complete.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15363
diff
changeset
|
9 include $(GAIM_TOP)/libpurple/win32/global.mak |
10804 | 10 |
14454
22cb019456bd
[gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14315
diff
changeset
|
11 # Generate a X.X.X.X version for the installer file versioning header |
22cb019456bd
[gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14315
diff
changeset
|
12 # The last digit will be 99 for a final release, 0 for dev or unknown, or the beta number |
22cb019456bd
[gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14315
diff
changeset
|
13 GAIM_PRODUCT_VERSION = $(shell \ |
22cb019456bd
[gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14315
diff
changeset
|
14 awk 'BEGIN {FS="."} { \ |
22cb019456bd
[gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14315
diff
changeset
|
15 if (int($$3) == $$3) { \ |
22cb019456bd
[gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14315
diff
changeset
|
16 $$4 = "99"; \ |
22cb019456bd
[gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14315
diff
changeset
|
17 } else { \ |
22cb019456bd
[gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14315
diff
changeset
|
18 $$5 = $$3; \ |
22cb019456bd
[gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14315
diff
changeset
|
19 sub(int($$3), "", $$5); \ |
22cb019456bd
[gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14315
diff
changeset
|
20 if ($$5 == "dev") { \ |
22cb019456bd
[gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14315
diff
changeset
|
21 $$4 = "0"; \ |
22cb019456bd
[gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14315
diff
changeset
|
22 } else { \ |
22cb019456bd
[gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14315
diff
changeset
|
23 if (sub("beta", "", $$5) > 0) { \ |
22cb019456bd
[gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14315
diff
changeset
|
24 $$4 = $$5; \ |
22cb019456bd
[gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14315
diff
changeset
|
25 } else { \ |
22cb019456bd
[gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14315
diff
changeset
|
26 $$4 = "0"; \ |
22cb019456bd
[gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14315
diff
changeset
|
27 } \ |
22cb019456bd
[gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14315
diff
changeset
|
28 } \ |
22cb019456bd
[gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14315
diff
changeset
|
29 } \ |
22cb019456bd
[gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14315
diff
changeset
|
30 printf("%s.%s.%s.%s", $$1, $$2, int($$3), $$4); \ |
22cb019456bd
[gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14315
diff
changeset
|
31 exit; \ |
22cb019456bd
[gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14315
diff
changeset
|
32 }' VERSION) |
22cb019456bd
[gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14315
diff
changeset
|
33 |
15363
d9ef62fb7e7b
[gaim-migrate @ 18156]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15082
diff
changeset
|
34 GTK_INSTALL_VERSION = $(shell \ |
d9ef62fb7e7b
[gaim-migrate @ 18156]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15082
diff
changeset
|
35 source ../gtk_installer/version.sh; \ |
d9ef62fb7e7b
[gaim-migrate @ 18156]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15082
diff
changeset
|
36 echo $$gtk_version \ |
d9ef62fb7e7b
[gaim-migrate @ 18156]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15082
diff
changeset
|
37 ) |
d9ef62fb7e7b
[gaim-migrate @ 18156]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15082
diff
changeset
|
38 |
15082
133af8458cbd
[gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14699
diff
changeset
|
39 # Any *.dll or *.exe files included in win32-install-dir that we don't compile |
133af8458cbd
[gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14699
diff
changeset
|
40 # should be included in this list so they don't get stripped |
133af8458cbd
[gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14699
diff
changeset
|
41 NON_GAIM_DLLS = \ |
133af8458cbd
[gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14699
diff
changeset
|
42 freebl3.dll \ |
133af8458cbd
[gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14699
diff
changeset
|
43 libgtkspell.dll \ |
133af8458cbd
[gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14699
diff
changeset
|
44 libmeanwhile-1.dll \ |
133af8458cbd
[gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14699
diff
changeset
|
45 libxml2.dll \ |
133af8458cbd
[gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14699
diff
changeset
|
46 nspr4.dll \ |
133af8458cbd
[gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14699
diff
changeset
|
47 nss3.dll \ |
133af8458cbd
[gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14699
diff
changeset
|
48 nssckbi.dll \ |
133af8458cbd
[gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14699
diff
changeset
|
49 plc4.dll \ |
133af8458cbd
[gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14699
diff
changeset
|
50 plds4.dll \ |
133af8458cbd
[gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14699
diff
changeset
|
51 silc.dll \ |
133af8458cbd
[gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14699
diff
changeset
|
52 silcclient.dll \ |
133af8458cbd
[gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14699
diff
changeset
|
53 softokn3.dll \ |
133af8458cbd
[gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14699
diff
changeset
|
54 ssl3.dll |
133af8458cbd
[gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14699
diff
changeset
|
55 |
133af8458cbd
[gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14699
diff
changeset
|
56 #build an expression for `find` to use to ignore the above files |
133af8458cbd
[gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14699
diff
changeset
|
57 NON_GAIM_DLLS_FIND_EXP = $(patsubst %,-o -name %,$(NON_GAIM_DLLS)) |
133af8458cbd
[gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14699
diff
changeset
|
58 |
133af8458cbd
[gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14699
diff
changeset
|
59 .PHONY: all install installer installer_nogtk installer_debug installers clean uninstall create_release_install_dir |
14454
22cb019456bd
[gaim-migrate @ 17168]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14315
diff
changeset
|
60 |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14241
diff
changeset
|
61 all: $(GAIM_CONFIG_H) |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14241
diff
changeset
|
62 $(MAKE) -C $(GAIM_LIB_TOP) -f $(GAIM_WIN32_MAKEFILE) |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14241
diff
changeset
|
63 $(MAKE) -C $(GAIM_GTK_TOP) -f $(GAIM_WIN32_MAKEFILE) |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14241
diff
changeset
|
64 $(MAKE) -C $(GAIM_PO_TOP) -f $(GAIM_WIN32_MAKEFILE) |
3630 | 65 |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14241
diff
changeset
|
66 install: all $(GAIM_INSTALL_DIR) |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14241
diff
changeset
|
67 $(MAKE) -C $(GAIM_LIB_TOP) -f $(GAIM_WIN32_MAKEFILE) install |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14241
diff
changeset
|
68 $(MAKE) -C $(GAIM_GTK_TOP) -f $(GAIM_WIN32_MAKEFILE) install |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14241
diff
changeset
|
69 $(MAKE) -C $(GAIM_PO_TOP) -f $(GAIM_WIN32_MAKEFILE) install |
3630 | 70 |
15082
133af8458cbd
[gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14699
diff
changeset
|
71 create_release_install_dir: install |
133af8458cbd
[gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14699
diff
changeset
|
72 rm -rf $(GAIM_INSTALL_DIR).release |
133af8458cbd
[gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14699
diff
changeset
|
73 cp -R $(GAIM_INSTALL_DIR) $(GAIM_INSTALL_DIR).release |
133af8458cbd
[gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14699
diff
changeset
|
74 find $(GAIM_INSTALL_DIR).release \( -name '*.dll' -o -name '*.exe' \) \ |
15470
015ad1283216
Some more changes to the win32 build to support cross-compiling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15376
diff
changeset
|
75 -not \( -false $(NON_GAIM_DLLS_FIND_EXP) \) -exec $(STRIP) --strip-unneeded {} ';' |
5384
0b544518a365
[gaim-migrate @ 5760]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4897
diff
changeset
|
76 |
15082
133af8458cbd
[gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14699
diff
changeset
|
77 installer: create_release_install_dir |
15363
d9ef62fb7e7b
[gaim-migrate @ 18156]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15082
diff
changeset
|
78 $(MAKENSIS) /V3 /DGAIM_VERSION="$(GAIM_VERSION)" /DGAIM_PRODUCT_VERSION="$(GAIM_PRODUCT_VERSION)" /DWITH_GTK /DGAIM_INSTALL_DIR="$(GAIM_INSTALL_DIR).release" /DGTK_INSTALL_VERSION="$(GTK_INSTALL_VERSION)" gaim-installer.nsi |
15082
133af8458cbd
[gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14699
diff
changeset
|
79 |
133af8458cbd
[gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14699
diff
changeset
|
80 installer_nogtk: create_release_install_dir |
15470
015ad1283216
Some more changes to the win32 build to support cross-compiling.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15376
diff
changeset
|
81 $(MAKENSIS) -V3 -DGAIM_VERSION="$(GAIM_VERSION)" -DGAIM_PRODUCT_VERSION="$(GAIM_PRODUCT_VERSION)" -DGAIM_INSTALL_DIR="$(GAIM_INSTALL_DIR).release" -DGTK_INSTALL_VERSION="$(GTK_INSTALL_VERSION)" gaim-installer.nsi |
3630 | 82 |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14241
diff
changeset
|
83 installer_debug: install |
15363
d9ef62fb7e7b
[gaim-migrate @ 18156]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15082
diff
changeset
|
84 $(MAKENSIS) /V3 /DGAIM_VERSION="$(GAIM_VERSION)" /DGAIM_PRODUCT_VERSION="$(GAIM_PRODUCT_VERSION)" /DGAIM_INSTALL_DIR="$(GAIM_INSTALL_DIR)" /DDEBUG /DGTK_INSTALL_VERSION="$(GTK_INSTALL_VERSION)" gaim-installer.nsi |
5931
8b5dd7117f56
[gaim-migrate @ 6371]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5387
diff
changeset
|
85 |
15082
133af8458cbd
[gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14699
diff
changeset
|
86 installers: installer installer_nogtk installer_debug |
5384
0b544518a365
[gaim-migrate @ 5760]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4897
diff
changeset
|
87 |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14241
diff
changeset
|
88 clean: |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14241
diff
changeset
|
89 $(MAKE) -C $(GAIM_PO_TOP) -f $(GAIM_WIN32_MAKEFILE) clean |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14241
diff
changeset
|
90 $(MAKE) -C $(GAIM_GTK_TOP) -f $(GAIM_WIN32_MAKEFILE) clean |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14241
diff
changeset
|
91 $(MAKE) -C $(GAIM_LIB_TOP) -f $(GAIM_WIN32_MAKEFILE) clean |
15581
e00b89c00bf6
Delete VERSION in the mingw 'clean' target since it is a generated file.
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15470
diff
changeset
|
92 rm -f $(GAIM_CONFIG_H) VERSION gaim*.exe |
14699
cd1ddfa8868c
[gaim-migrate @ 17451]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14576
diff
changeset
|
93 |
cd1ddfa8868c
[gaim-migrate @ 17451]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14576
diff
changeset
|
94 uninstall: |
15082
133af8458cbd
[gaim-migrate @ 17868]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14699
diff
changeset
|
95 rm -rf $(GAIM_INSTALL_PERLMOD_DIR) $(GAIM_INSTALL_PLUGINS_DIR) $(GAIM_INSTALL_PO_DIR) $(GAIM_INSTALL_DIR) $(GAIM_INSTALL_DIR).release |
5931
8b5dd7117f56
[gaim-migrate @ 6371]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5387
diff
changeset
|
96 |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14241
diff
changeset
|
97 include $(GAIM_COMMON_TARGETS) |