3 # Author: hermanator12002@yahoo.com
5 # Description: Top Makefile for win32 (mingw) port of Gaim
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
16 OSCAR = $(GAIM_PROTOS)/oscar
17 YAHOO = $(GAIM_PROTOS)/yahoo
18 MSN = $(GAIM_PROTOS)/msn
19 TOC = $(GAIM_PROTOS)/toc
20 IRC = $(GAIM_PROTOS)/irc
21 JABBER = $(GAIM_PROTOS)/jabber
22 NAPSTER = $(GAIM_PROTOS)/napster
23 GG = $(GAIM_PROTOS)/gg
26 NEEDED_DLLS = $(GTK_LIBS)/libgdk-win32-2.0-0.dll \
27 $(GTK_LIBS)/libglib-2.0-0.dll \
28 $(GTK_LIBS)/libintl-1.dll \
29 $(GTK_LIBS)/iconv.dll \
30 $(GTK_LIBS)/libgmodule-2.0-0.dll \
31 $(GTK_LIBS)/libgtk-win32-2.0-0.dll \
32 $(GTK_LIBS)/libgdk_pixbuf-2.0-0.dll \
33 $(GTK_LIBS)/libgobject-2.0-0.dll \
34 $(GTK_LIBS)/libgthread-2.0-0.dll \
35 $(GTK_TOP)/bin/libjpeg.dll \
36 $(GTK_TOP)/bin/libpng.dll \
37 $(GTK_TOP)/bin/libtiff.dll \
38 $(GTK_TOP)/bin/zlib.dll \
39 $(GTK_LIBS)/libpango-1.0-0.dll \
40 $(GTK_LIBS)/libpangoft2-1.0-0.dll \
41 $(GTK_LIBS)/libpangowin32-1.0-0.dll \
42 $(GTK_LIBS)/libatk-1.0-0.dll \
43 $(PERL_TOP)/perl56.dll
46 # $(GTK_LIBS)/libjpeg6b.dll \
47 # $(GTK_LIBS)/libpng-3.dll \
48 # $(GTK_LIBS)/libtiff.dll \
49 # $(GTK_LIBS)/libz.dll \
52 # $(GTK_TOP)/bin/libjpeg.dll \
53 # $(GTK_TOP)/bin/libpng.dll \
54 # $(GTK_TOP)/bin/libtiff.dll \
55 # $(GTK_TOP)/bin/zlib.dll \
60 PIXMAPS_DIALOGS = $(GAIM_PIXMAPS)/gaim_error.png \
61 $(GAIM_PIXMAPS)/gaim_info.png \
62 $(GAIM_PIXMAPS)/gaim_warning.png \
63 $(GAIM_PIXMAPS)/gaim_question.png
65 PIXMAPS_MENUS = $(GAIM_PIXMAPS)/insert-image-small.png
67 PIXMAPS_BUTTONS = $(GAIM_PIXMAPS)/edit.png \
68 $(GAIM_PIXMAPS)/accounts.png \
69 $(GAIM_PIXMAPS)/preferences.png \
70 $(GAIM_PIXMAPS)/signon.png \
71 $(GAIM_PIXMAPS)/insert-image-small.png \
72 $(GAIM_PIXMAPS)/insert-link-small.png \
73 $(GAIM_PIXMAPS)/insert-smiley-small.png \
74 $(GAIM_PIXMAPS)/text_bigger.png \
75 $(GAIM_PIXMAPS)/text_normal.png \
76 $(GAIM_PIXMAPS)/text_smaller.png
78 PIXMAPS = $(GAIM_PIXMAPS)/away.png \
79 $(GAIM_PIXMAPS)/connect.png \
80 $(GAIM_PIXMAPS)/msgpend.png \
81 $(GAIM_PIXMAPS)/msgunread.png \
82 $(GAIM_PIXMAPS)/offline.png \
83 $(GAIM_PIXMAPS)/online.png \
84 $(GAIM_PIXMAPS)/logo.png
88 ## Don't forget to change STATIC_PROTO_INIT, in config.h.mingw if you
89 ## change the status of a protocol (static/plugin)
102 cp config.h.mingw config.h
103 $(MAKE) TYPE='$(OSCAR_TYPE)' -C $(OSCAR) -f Makefile.mingw
104 $(MAKE) TYPE='$(YAHOO_TYPE)' -C $(YAHOO) -f Makefile.mingw
105 $(MAKE) TYPE='$(MSN_TYPE)' -C $(MSN) -f Makefile.mingw
106 $(MAKE) TYPE='$(TOC_TYPE)' -C $(TOC) -f Makefile.mingw
107 $(MAKE) TYPE='$(IRC_TYPE)' -C $(IRC) -f Makefile.mingw
108 $(MAKE) TYPE='$(JABBER_TYPE)' -C $(JABBER) -f Makefile.mingw
109 $(MAKE) TYPE='$(GG_TYPE)' -C $(GG) -f Makefile.mingw
110 $(MAKE) -C $(GAIM_SRC) -f Makefile.mingw
111 $(MAKE) -C $(GAIM_PLUGINS) -f Makefile.mingw
115 mkdir -p $(GAIM_INSTALL_DIR)/plugins
116 mkdir -p $(GAIM_INSTALL_DIR)/pixmaps/gaim/dialogs
117 mkdir -p $(GAIM_INSTALL_DIR)/pixmaps/gaim/buttons
118 mkdir -p $(GAIM_INSTALL_DIR)/pixmaps/gaim/menus
119 $(MAKE) -C $(PO) -f Makefile.mingw install
120 $(MAKE) -C $(GAIM_SRC) -f Makefile.mingw install
121 $(MAKE) -C $(GAIM_PLUGINS) -f Makefile.mingw install
122 $(MAKE) TYPE='$(OSCAR_TYPE)' -C $(OSCAR) -f Makefile.mingw install
123 $(MAKE) TYPE='$(YAHOO_TYPE)' -C $(YAHOO) -f Makefile.mingw install
124 $(MAKE) TYPE='$(MSN_TYPE)' -C $(MSN) -f Makefile.mingw install
125 $(MAKE) TYPE='$(TOC_TYPE)' -C $(TOC) -f Makefile.mingw install
126 $(MAKE) TYPE='$(IRC_TYPE)' -C $(IRC) -f Makefile.mingw install
127 $(MAKE) TYPE='$(JABBER_TYPE)' -C $(JABBER) -f Makefile.mingw install
128 $(MAKE) TYPE='$(GG_TYPE)' -C $(GG) -f Makefile.mingw install
129 cp $(NEEDED_DLLS) $(GAIM_INSTALL_DIR)
130 cp $(PIXMAPS_DIALOGS) $(GAIM_INSTALL_DIR)/pixmaps/gaim/dialogs
131 cp $(PIXMAPS_BUTTONS) $(GAIM_INSTALL_DIR)/pixmaps/gaim/buttons
132 cp $(PIXMAPS_MENUS) $(GAIM_INSTALL_DIR)/pixmaps/gaim/menus
133 cp $(PIXMAPS) $(GAIM_INSTALL_DIR)/pixmaps/gaim
134 mkdir -p $(GAIM_INSTALL_DIR)/lib/gtk-2.0
135 cp -R $(GTK_LIBS)/gtk-2.0/2.0.0 $(GAIM_INSTALL_DIR)/lib/gtk-2.0
136 cp -R $(GTK_LIBS)/pango $(GAIM_INSTALL_DIR)/lib
137 cp -R $(GTK_TOP)/etc $(GAIM_INSTALL_DIR)
140 makensis.exe gaim-installer.nsi
143 $(MAKE) -C $(PO) -f Makefile.mingw clean
144 $(MAKE) -C $(OSCAR) -f Makefile.mingw clean
145 $(MAKE) -C $(YAHOO) -f Makefile.mingw clean
146 $(MAKE) -C $(MSN) -f Makefile.mingw clean
147 $(MAKE) -C $(TOC) -f Makefile.mingw clean
148 $(MAKE) -C $(IRC) -f Makefile.mingw clean
149 $(MAKE) -C $(JABBER) -f Makefile.mingw clean
150 $(MAKE) -C $(GG) -f Makefile.mingw clean
151 $(MAKE) -C $(GAIM_SRC) -f Makefile.mingw clean
152 $(MAKE) -C $(GAIM_PLUGINS) -f Makefile.mingw clean
153 rm -rf config.h $(GAIM_INSTALL_DIR)
154 rm -rf Install-Gaim*.exe