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
|
|
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
|
|
24 PO = ./po
|
|
25
|
|
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
|
|
44
|
|
45 # For Gtk 2.0.3
|
|
46 # $(GTK_LIBS)/libjpeg6b.dll \
|
|
47 # $(GTK_LIBS)/libpng-3.dll \
|
|
48 # $(GTK_LIBS)/libtiff.dll \
|
|
49 # $(GTK_LIBS)/libz.dll \
|
|
50
|
|
51 # For Gtk 2.0.6
|
|
52 # $(GTK_TOP)/bin/libjpeg.dll \
|
|
53 # $(GTK_TOP)/bin/libpng.dll \
|
|
54 # $(GTK_TOP)/bin/libtiff.dll \
|
|
55 # $(GTK_TOP)/bin/zlib.dll \
|
|
56
|
|
57
|
|
58
|
|
59
|
|
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
|
|
64
|
|
65 PIXMAPS_BUTTONS = $(GAIM_PIXMAPS)/edit.png
|
|
66
|
|
67 PIXMAPS = $(GAIM_PIXMAPS)/away.png \
|
|
68 $(GAIM_PIXMAPS)/connect.png \
|
|
69 $(GAIM_PIXMAPS)/msgpend.png \
|
|
70 $(GAIM_PIXMAPS)/msgunread.png \
|
|
71 $(GAIM_PIXMAPS)/offline.png \
|
|
72 $(GAIM_PIXMAPS)/online.png
|
|
73
|
|
74
|
|
75 ##
|
|
76 ## Don't forget to change STATIC_PROTO_INIT, in config.h.mingw if you
|
|
77 ## change the status of a protocol (static/plugin)
|
|
78 ##
|
|
79
|
|
80 OSCAR_TYPE = PLUGIN
|
|
81 YAHOO_TYPE = PLUGIN
|
|
82 MSN_TYPE = PLUGIN
|
|
83 TOC_TYPE = PLUGIN
|
|
84 IRC_TYPE = PLUGIN
|
|
85 JABBER_TYPE = PLUGIN
|
|
86 NAPSTER_TYPE = PLUGIN
|
|
87 GG_TYPE = PLUGIN
|
|
88
|
|
89 all:
|
|
90 cp config.h.mingw config.h
|
|
91 $(MAKE) TYPE='$(OSCAR_TYPE)' -C $(OSCAR) -f Makefile.mingw
|
|
92 $(MAKE) TYPE='$(YAHOO_TYPE)' -C $(YAHOO) -f Makefile.mingw
|
|
93 $(MAKE) TYPE='$(MSN_TYPE)' -C $(MSN) -f Makefile.mingw
|
|
94 $(MAKE) TYPE='$(TOC_TYPE)' -C $(TOC) -f Makefile.mingw
|
|
95 $(MAKE) TYPE='$(IRC_TYPE)' -C $(IRC) -f Makefile.mingw
|
|
96 $(MAKE) TYPE='$(JABBER_TYPE)' -C $(JABBER) -f Makefile.mingw
|
|
97 $(MAKE) TYPE='$(GG_TYPE)' -C $(GG) -f Makefile.mingw
|
|
98 $(MAKE) -C $(GAIM_SRC) -f Makefile.mingw
|
|
99 $(MAKE) -C $(GAIM_PLUGINS) -f Makefile.mingw
|
|
100
|
|
101
|
|
102 install: all
|
|
103 mkdir -p $(GAIM_INSTALL_DIR)/plugins
|
|
104 mkdir -p $(GAIM_INSTALL_DIR)/pixmaps/gaim/dialogs
|
|
105 mkdir -p $(GAIM_INSTALL_DIR)/pixmaps/gaim/buttons
|
|
106 $(MAKE) -C $(PO) -f Makefile.mingw install
|
|
107 $(MAKE) -C $(GAIM_SRC) -f Makefile.mingw install
|
|
108 $(MAKE) -C $(GAIM_PLUGINS) -f Makefile.mingw install
|
|
109 $(MAKE) TYPE='$(OSCAR_TYPE)' -C $(OSCAR) -f Makefile.mingw install
|
|
110 $(MAKE) TYPE='$(YAHOO_TYPE)' -C $(YAHOO) -f Makefile.mingw install
|
|
111 $(MAKE) TYPE='$(MSN_TYPE)' -C $(MSN) -f Makefile.mingw install
|
|
112 $(MAKE) TYPE='$(TOC_TYPE)' -C $(TOC) -f Makefile.mingw install
|
|
113 $(MAKE) TYPE='$(IRC_TYPE)' -C $(IRC) -f Makefile.mingw install
|
|
114 $(MAKE) TYPE='$(JABBER_TYPE)' -C $(JABBER) -f Makefile.mingw install
|
|
115 $(MAKE) TYPE='$(GG_TYPE)' -C $(GG) -f Makefile.mingw install
|
|
116 cp $(NEEDED_DLLS) $(GAIM_INSTALL_DIR)
|
|
117 cp $(PIXMAPS_DIALOGS) $(GAIM_INSTALL_DIR)/pixmaps/gaim/dialogs
|
|
118 cp $(PIXMAPS_BUTTONS) $(GAIM_INSTALL_DIR)/pixmaps/gaim/buttons
|
|
119 cp $(PIXMAPS) $(GAIM_INSTALL_DIR)/pixmaps/gaim
|
|
120 mkdir -p $(GAIM_INSTALL_DIR)/lib/gtk-2.0
|
|
121 cp -R $(GTK_LIBS)/gtk-2.0/2.0.0 $(GAIM_INSTALL_DIR)/lib/gtk-2.0
|
|
122 cp -R $(GTK_LIBS)/pango $(GAIM_INSTALL_DIR)/lib
|
|
123 cp -R $(GTK_TOP)/etc $(GAIM_INSTALL_DIR)
|
|
124
|
|
125 installer:
|
|
126 makensis.exe gaim-installer.nsi
|
|
127
|
|
128 clean:
|
|
129 $(MAKE) -C $(PO) -f Makefile.mingw clean
|
|
130 $(MAKE) -C $(OSCAR) -f Makefile.mingw clean
|
|
131 $(MAKE) -C $(YAHOO) -f Makefile.mingw clean
|
|
132 $(MAKE) -C $(MSN) -f Makefile.mingw clean
|
|
133 $(MAKE) -C $(TOC) -f Makefile.mingw clean
|
|
134 $(MAKE) -C $(IRC) -f Makefile.mingw clean
|
|
135 $(MAKE) -C $(JABBER) -f Makefile.mingw clean
|
|
136 $(MAKE) -C $(GG) -f Makefile.mingw clean
|
|
137 $(MAKE) -C $(GAIM_SRC) -f Makefile.mingw clean
|
|
138 $(MAKE) -C $(GAIM_PLUGINS) -f Makefile.mingw clean
|
|
139 rm -rf config.h $(GAIM_INSTALL_DIR)
|
|
140 rm -rf Install-Gaim*.exe
|