-objdir_wxbase_shared=objs_wxbase_sh
-objdir_wxbase_static=objs_wxbase_st
-objdir_wxbase_debug=objs_wxbase_d
-objdir_gtk_shared=objs_gtk_sh
-objdir_gtk_static=objs_gtk_st
-objdir_gtk_debug=objs_gtk_d
-objdir_doc_cruft=objs_doc_con
-objdir_doc=docs/wxWindows-manual.html
-objdir_examples=docs/examples
-objdirs=$(objdir_wxbase_shared) $(objdir_wxbase_static) $(objdir_wxbase_debug) \
- $(objdir_gtk_shared) $(objdir_gtk_static) $(objdir_gtk_debug) \
- $(objdir_doc) $(objdir_examples)
-
-build_stamps=build-wxbase-shared-stamp build-wxbase-static-stamp \
- build-wxbase-debug-stamp build-gtk-shared-stamp \
- build-gtk-static-stamp build-gtk-debug-stamp \
- build-contrib-shared-stamp build-contrib-static-stamp \
- build-gtk-python-stamp build-examples-stamp build-doc-stamp
-
-install_all=install-wxbase-lib install-wxbase-dev install-wxbase-dbg \
- install-gtk-lib install-gtk-dev install-gtk-dbg \
- install-gtk-contrib install-gtk-contrib-dev install-gtk-py \
- install-headers install-doc install-examples
-
-wxconfig:=$(shell pwd)/$(objdir_gtk_shared)/wx-config \
- --prefix=$(shell pwd) \
- --exec-prefix=$(shell pwd)/$(objdir_gtk_shared)
+objdir_gtk_shared = objs_gtk_sh
+objdir_gtk_static = objs_gtk_st
+objdir_gtk_debug = objs_gtk_d
+objdir_gtk_install = objs_gtk_install
+objdir_gtk_contrib_install = objs_gtk_contrib_install
+objdir_doc_cruft = objs_doc_con
+objdir_doc = docs/wx-manual.html
+objdir_examples = docs/examples
+objdir_i18n = locale
+
+objdir_msw_shared = objs_msw_sh
+objdir_msw_static = objs_msw_st
+objdir_msw_dbg = objs_msw_d
+
+objdirs = $(objdir_gtk_shared) $(objdir_gtk_static) $(objdir_gtk_debug) \
+ $(objdir_gtk_install) $(objdir_gtk_contrib_install) \
+ $(objdir_doc_cruft) $(objdir_doc) $(objdir_examples) \
+ $(objdir_msw_shared) $(objdir_msw_static) $(objdir_msw_dbg)
+
+# note that the i18n package is actually arch indep (once built)
+# but must be built (and installed) during the arch any phase as
+# it's pulled out of the wxGTK shared lib package.
+
+
+# Build stamps:
+build_arch_stamps = build-gtk-shared-stamp build-gtk-static-stamp \
+ build-gtk-debug-stamp \
+ build-contrib-shared-stamp build-contrib-static-stamp \
+ build-i18n-stamp build-gtk-py-stamp
+
+
+build_indep_stamps = build-examples-stamp build-doc-stamp
+
+build_cross_stamps = build-msw-shared-stamp build-msw-static-stamp build-msw-dbg-stamp
+
+build_stamps_native = $(build_arch_stamps) $(build_indep_stamps)
+
+build_stamps = $(build_stamps_native) $(build_cross_stamps)
+
+
+# Install targets:
+install_all_arch = install-gtk-lib install-gtk-dev install-gtk-dbg \
+ install-gtk-contrib install-gtk-contrib-dev \
+ install-headers install-i18n install-gtk-py
+
+install_all_indep = install-examples install-doc
+
+install_all_cross = install-msw-dev install-msw-dbg install-headers-msw
+
+install_all_native = $(install_all_arch) $(install_all_indep)
+
+install_all = $(install_all_native) $(install_all_cross)
+
+
+wxconfig := $(shell pwd)/$(objdir_gtk_shared)/wx-config \
+ --prefix=$(shell pwd) \
+ --exec-prefix=$(shell pwd)/$(objdir_gtk_shared)
+
+contrib_libs := $(subst CVS,,$(notdir $(wildcard contrib/include/wx/*)))