Mercurial > pidgin
annotate Makefile.mingw @ 3967:cafc0968ea6b
[gaim-migrate @ 4151]
Passing Gaim version to makensis command line
committer: Tailor Script <tailor@pidgin.im>
author | Herman Bloggs <hermanator12002@yahoo.com> |
---|---|
date | Fri, 15 Nov 2002 17:09:47 +0000 |
parents | db0a88dd6fcf |
children | 4cf1d0ff9f5f |
rev | line source |
---|---|
3630 | 1 # Makefile.mingw |
2 # | |
3 # Author: hermanator12002@yahoo.com | |
4 # Date 9/11/02 | |
5 # Description: Top Makefile for win32 (mingw) port of Gaim | |
6 # | |
7 | |
8 GAIM_SRC = ./src | |
9 GAIM_PROTOS = $(GAIM_SRC)/protocols | |
10 GAIM_PLUGINS = ./plugins | |
11 GAIM_PIXMAPS = ./pixmaps | |
12 GAIM_INSTALL_DIR = ./win32-install-dir | |
13 GTK_TOP = ../win32-dev/gtk_2_0 | |
14 GTK_LIBS = $(GTK_TOP)/lib | |
15 PERL_TOP = ../win32-dev/perl56 | |
3905
3e508dd31b76
[gaim-migrate @ 4058]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3898
diff
changeset
|
16 IDLETRACKER_TOP = $(GAIM_SRC)/win32/IdleTracker |
3920
1b3beae6c59c
[gaim-migrate @ 4085]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3905
diff
changeset
|
17 GTKRC_TOP = ../win32-dev/gtkrc |
3630 | 18 OSCAR = $(GAIM_PROTOS)/oscar |
19 YAHOO = $(GAIM_PROTOS)/yahoo | |
20 MSN = $(GAIM_PROTOS)/msn | |
21 TOC = $(GAIM_PROTOS)/toc | |
22 IRC = $(GAIM_PROTOS)/irc | |
23 JABBER = $(GAIM_PROTOS)/jabber | |
24 NAPSTER = $(GAIM_PROTOS)/napster | |
25 GG = $(GAIM_PROTOS)/gg | |
26 PO = ./po | |
27 | |
3967
cafc0968ea6b
[gaim-migrate @ 4151]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3963
diff
changeset
|
28 VERSION := $(shell cat ./VERSION) |
cafc0968ea6b
[gaim-migrate @ 4151]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3963
diff
changeset
|
29 |
3630 | 30 NEEDED_DLLS = $(GTK_LIBS)/libgdk-win32-2.0-0.dll \ |
31 $(GTK_LIBS)/libglib-2.0-0.dll \ | |
32 $(GTK_LIBS)/libintl-1.dll \ | |
33 $(GTK_LIBS)/iconv.dll \ | |
34 $(GTK_LIBS)/libgmodule-2.0-0.dll \ | |
35 $(GTK_LIBS)/libgtk-win32-2.0-0.dll \ | |
36 $(GTK_LIBS)/libgdk_pixbuf-2.0-0.dll \ | |
37 $(GTK_LIBS)/libgobject-2.0-0.dll \ | |
38 $(GTK_LIBS)/libgthread-2.0-0.dll \ | |
39 $(GTK_TOP)/bin/libjpeg.dll \ | |
40 $(GTK_TOP)/bin/libpng.dll \ | |
41 $(GTK_TOP)/bin/libtiff.dll \ | |
42 $(GTK_TOP)/bin/zlib.dll \ | |
43 $(GTK_LIBS)/libpango-1.0-0.dll \ | |
44 $(GTK_LIBS)/libpangoft2-1.0-0.dll \ | |
45 $(GTK_LIBS)/libpangowin32-1.0-0.dll \ | |
46 $(GTK_LIBS)/libatk-1.0-0.dll \ | |
3896 | 47 $(PERL_TOP)/perl56.dll \ |
3905
3e508dd31b76
[gaim-migrate @ 4058]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3898
diff
changeset
|
48 $(IDLETRACKER_TOP)/IdleTrac.dll |
3630 | 49 |
50 # For Gtk 2.0.3 | |
51 # $(GTK_LIBS)/libjpeg6b.dll \ | |
52 # $(GTK_LIBS)/libpng-3.dll \ | |
53 # $(GTK_LIBS)/libtiff.dll \ | |
54 # $(GTK_LIBS)/libz.dll \ | |
55 | |
56 # For Gtk 2.0.6 | |
57 # $(GTK_TOP)/bin/libjpeg.dll \ | |
58 # $(GTK_TOP)/bin/libpng.dll \ | |
59 # $(GTK_TOP)/bin/libtiff.dll \ | |
60 # $(GTK_TOP)/bin/zlib.dll \ | |
61 | |
62 | |
63 | |
64 | |
65 PIXMAPS_DIALOGS = $(GAIM_PIXMAPS)/gaim_error.png \ | |
66 $(GAIM_PIXMAPS)/gaim_info.png \ | |
67 $(GAIM_PIXMAPS)/gaim_warning.png \ | |
68 $(GAIM_PIXMAPS)/gaim_question.png | |
69 | |
3881 | 70 PIXMAPS_MENUS = $(GAIM_PIXMAPS)/about_menu.png \ |
3883 | 71 $(GAIM_PIXMAPS)/accounts-menu.png \ |
72 $(GAIM_PIXMAPS)/import-menu.png \ | |
3896 | 73 $(GAIM_PIXMAPS)/insert-image-small.png \ |
74 $(GAIM_PIXMAPS)/insert-link-small.png | |
3675 | 75 |
3670
773dbe57e635
[gaim-migrate @ 3800]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
76 PIXMAPS_BUTTONS = $(GAIM_PIXMAPS)/edit.png \ |
773dbe57e635
[gaim-migrate @ 3800]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
77 $(GAIM_PIXMAPS)/accounts.png \ |
3923 | 78 $(GAIM_PIXMAPS)/change-bgcolor-small.png \ |
79 $(GAIM_PIXMAPS)/change-fgcolor-small.png \ | |
3670
773dbe57e635
[gaim-migrate @ 3800]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
80 $(GAIM_PIXMAPS)/preferences.png \ |
3672 | 81 $(GAIM_PIXMAPS)/signon.png \ |
82 $(GAIM_PIXMAPS)/insert-image-small.png \ | |
83 $(GAIM_PIXMAPS)/insert-link-small.png \ | |
84 $(GAIM_PIXMAPS)/insert-smiley-small.png \ | |
85 $(GAIM_PIXMAPS)/text_bigger.png \ | |
86 $(GAIM_PIXMAPS)/text_normal.png \ | |
3674 | 87 $(GAIM_PIXMAPS)/text_smaller.png |
3630 | 88 |
89 PIXMAPS = $(GAIM_PIXMAPS)/away.png \ | |
90 $(GAIM_PIXMAPS)/connect.png \ | |
91 $(GAIM_PIXMAPS)/msgpend.png \ | |
92 $(GAIM_PIXMAPS)/msgunread.png \ | |
93 $(GAIM_PIXMAPS)/offline.png \ | |
3670
773dbe57e635
[gaim-migrate @ 3800]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
94 $(GAIM_PIXMAPS)/online.png \ |
773dbe57e635
[gaim-migrate @ 3800]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
95 $(GAIM_PIXMAPS)/logo.png |
3630 | 96 |
3920
1b3beae6c59c
[gaim-migrate @ 4085]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3905
diff
changeset
|
97 GTKRC_ENGINES = $(GTKRC_TOP)/libnativewin.dll |
1b3beae6c59c
[gaim-migrate @ 4085]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3905
diff
changeset
|
98 |
3630 | 99 |
100 ## | |
101 ## Don't forget to change STATIC_PROTO_INIT, in config.h.mingw if you | |
102 ## change the status of a protocol (static/plugin) | |
103 ## | |
104 | |
105 OSCAR_TYPE = PLUGIN | |
106 YAHOO_TYPE = PLUGIN | |
107 MSN_TYPE = PLUGIN | |
108 TOC_TYPE = PLUGIN | |
109 IRC_TYPE = PLUGIN | |
110 JABBER_TYPE = PLUGIN | |
111 NAPSTER_TYPE = PLUGIN | |
112 GG_TYPE = PLUGIN | |
113 | |
114 all: | |
115 cp config.h.mingw config.h | |
116 $(MAKE) TYPE='$(OSCAR_TYPE)' -C $(OSCAR) -f Makefile.mingw | |
117 $(MAKE) TYPE='$(YAHOO_TYPE)' -C $(YAHOO) -f Makefile.mingw | |
118 $(MAKE) TYPE='$(MSN_TYPE)' -C $(MSN) -f Makefile.mingw | |
119 $(MAKE) TYPE='$(TOC_TYPE)' -C $(TOC) -f Makefile.mingw | |
120 $(MAKE) TYPE='$(IRC_TYPE)' -C $(IRC) -f Makefile.mingw | |
121 $(MAKE) TYPE='$(JABBER_TYPE)' -C $(JABBER) -f Makefile.mingw | |
122 $(MAKE) TYPE='$(GG_TYPE)' -C $(GG) -f Makefile.mingw | |
123 $(MAKE) -C $(GAIM_SRC) -f Makefile.mingw | |
124 $(MAKE) -C $(GAIM_PLUGINS) -f Makefile.mingw | |
125 | |
126 | |
127 install: all | |
128 mkdir -p $(GAIM_INSTALL_DIR)/plugins | |
129 mkdir -p $(GAIM_INSTALL_DIR)/pixmaps/gaim/dialogs | |
130 mkdir -p $(GAIM_INSTALL_DIR)/pixmaps/gaim/buttons | |
3676 | 131 mkdir -p $(GAIM_INSTALL_DIR)/pixmaps/gaim/menus |
3630 | 132 $(MAKE) -C $(PO) -f Makefile.mingw install |
133 $(MAKE) -C $(GAIM_SRC) -f Makefile.mingw install | |
134 $(MAKE) -C $(GAIM_PLUGINS) -f Makefile.mingw install | |
135 $(MAKE) TYPE='$(OSCAR_TYPE)' -C $(OSCAR) -f Makefile.mingw install | |
136 $(MAKE) TYPE='$(YAHOO_TYPE)' -C $(YAHOO) -f Makefile.mingw install | |
137 $(MAKE) TYPE='$(MSN_TYPE)' -C $(MSN) -f Makefile.mingw install | |
138 $(MAKE) TYPE='$(TOC_TYPE)' -C $(TOC) -f Makefile.mingw install | |
139 $(MAKE) TYPE='$(IRC_TYPE)' -C $(IRC) -f Makefile.mingw install | |
140 $(MAKE) TYPE='$(JABBER_TYPE)' -C $(JABBER) -f Makefile.mingw install | |
141 $(MAKE) TYPE='$(GG_TYPE)' -C $(GG) -f Makefile.mingw install | |
142 cp $(NEEDED_DLLS) $(GAIM_INSTALL_DIR) | |
143 cp $(PIXMAPS_DIALOGS) $(GAIM_INSTALL_DIR)/pixmaps/gaim/dialogs | |
144 cp $(PIXMAPS_BUTTONS) $(GAIM_INSTALL_DIR)/pixmaps/gaim/buttons | |
3675 | 145 cp $(PIXMAPS_MENUS) $(GAIM_INSTALL_DIR)/pixmaps/gaim/menus |
3630 | 146 cp $(PIXMAPS) $(GAIM_INSTALL_DIR)/pixmaps/gaim |
147 mkdir -p $(GAIM_INSTALL_DIR)/lib/gtk-2.0 | |
148 cp -R $(GTK_LIBS)/gtk-2.0/2.0.0 $(GAIM_INSTALL_DIR)/lib/gtk-2.0 | |
149 cp -R $(GTK_LIBS)/pango $(GAIM_INSTALL_DIR)/lib | |
150 cp -R $(GTK_TOP)/etc $(GAIM_INSTALL_DIR) | |
3963
db0a88dd6fcf
[gaim-migrate @ 4147]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3923
diff
changeset
|
151 mkdir -p $(GAIM_INSTALL_DIR)/share/themes/NativeWin/gtk-2.0 |
db0a88dd6fcf
[gaim-migrate @ 4147]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3923
diff
changeset
|
152 cp $(GTKRC_TOP)/nativewin.gtkrc $(GAIM_INSTALL_DIR)/share/themes/NativeWin/gtk-2.0/gtkrc |
3920
1b3beae6c59c
[gaim-migrate @ 4085]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3905
diff
changeset
|
153 mkdir -p $(GAIM_INSTALL_DIR)/lib/gtk-2.0/2.0.0/engines |
1b3beae6c59c
[gaim-migrate @ 4085]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3905
diff
changeset
|
154 cp $(GTKRC_ENGINES) $(GAIM_INSTALL_DIR)/lib/gtk-2.0/2.0.0/engines |
3963
db0a88dd6fcf
[gaim-migrate @ 4147]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3923
diff
changeset
|
155 cp $(GAIM_SRC)/win32/themes/gtkrc $(GAIM_INSTALL_DIR)/etc/gtk-2.0 |
3630 | 156 |
157 installer: | |
3967
cafc0968ea6b
[gaim-migrate @ 4151]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3963
diff
changeset
|
158 makensis.exe /DGAIM_VERSION="$(VERSION)" gaim-installer.nsi |
3630 | 159 |
160 clean: | |
161 $(MAKE) -C $(PO) -f Makefile.mingw clean | |
162 $(MAKE) -C $(OSCAR) -f Makefile.mingw clean | |
163 $(MAKE) -C $(YAHOO) -f Makefile.mingw clean | |
164 $(MAKE) -C $(MSN) -f Makefile.mingw clean | |
165 $(MAKE) -C $(TOC) -f Makefile.mingw clean | |
166 $(MAKE) -C $(IRC) -f Makefile.mingw clean | |
167 $(MAKE) -C $(JABBER) -f Makefile.mingw clean | |
168 $(MAKE) -C $(GG) -f Makefile.mingw clean | |
169 $(MAKE) -C $(GAIM_SRC) -f Makefile.mingw clean | |
170 $(MAKE) -C $(GAIM_PLUGINS) -f Makefile.mingw clean | |
171 rm -rf config.h $(GAIM_INSTALL_DIR) | |
3898
34292bf25e4d
[gaim-migrate @ 4050]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3896
diff
changeset
|
172 rm -rf gaim*.exe |