diff --git a/build/bakefiles/Bakefiles.bkgen b/build/bakefiles/Bakefiles.bkgen
index 97c32e6071..4b93267534 100644
--- a/build/bakefiles/Bakefiles.bkgen
+++ b/build/bakefiles/Bakefiles.bkgen
@@ -256,6 +256,15 @@
-DOPTIONS_FILE=../../../../build/msw/config.wat
+
+
+
+ gnu
+
+
+ -DOUT_OF_TREE_MAKEFILES=1 -o$(INPUT_FILE_DIR)/makefile.unx
+
diff --git a/build/bakefiles/common_samples.bkl b/build/bakefiles/common_samples.bkl
index 0633b53fe4..07889de21c 100644
--- a/build/bakefiles/common_samples.bkl
+++ b/build/bakefiles/common_samples.bkl
@@ -3,121 +3,17 @@
-
1
-
-
-
-
-
-
-
- Carbon.r sample.r
-
-
+
+ 0
-
- WXUSINGDLL
-
-
-
- $(SRCDIR)
- $(DLLFLAG)
-
-
-
- gui
- $(MACOSX_RESOURCES)
-
- $(SRCDIR)/$(WXTOPDIR)samples
-
-
- $(RCDEFDIR)
- $(TOP_SRCDIR)include
-
-
- $(WXTOPDIR)samples/sample.rc
-
-
-
-
-
-
- NOPCH
-
-
-
-
- console
- wxUSE_GUI=0
-
-
-
-
-
- $(SAMPLES_RPATH_FLAG)
- $(SAMPLES_RPATH_POSTLINK)
-
-
-
-
- $(SAMPLES_RPATH_FLAG)
- $(SAMPLES_RPATH_POSTLINK)
-
-
-
-
-
-
-
-
-
-
- all
- $(BUILDDIR)
- $(SRCDIR)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- $(TOP_SRCDIR)include/wx/os2/wx.res
-
-
- $(os2_lib_res)
-
+
+
+
+
+
-
diff --git a/build/bakefiles/common_samples_intree.bkl b/build/bakefiles/common_samples_intree.bkl
new file mode 100644
index 0000000000..6b9b66cb58
--- /dev/null
+++ b/build/bakefiles/common_samples_intree.bkl
@@ -0,0 +1,121 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Carbon.r sample.r
+
+
+
+
+
+ WXUSINGDLL
+
+
+
+ $(SRCDIR)
+ $(DLLFLAG)
+
+
+
+ gui
+ $(MACOSX_RESOURCES)
+
+ $(SRCDIR)/$(WXTOPDIR)samples
+
+
+ $(RCDEFDIR)
+ $(TOP_SRCDIR)include
+
+
+ $(WXTOPDIR)samples/sample.rc
+
+
+
+
+
+
+ NOPCH
+
+
+
+
+ console
+ wxUSE_GUI=0
+
+
+
+
+
+ $(SAMPLES_RPATH_FLAG)
+ $(SAMPLES_RPATH_POSTLINK)
+
+
+
+
+ $(SAMPLES_RPATH_FLAG)
+ $(SAMPLES_RPATH_POSTLINK)
+
+
+
+
+
+
+
+
+
+
+ all
+ $(BUILDDIR)
+ $(SRCDIR)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ $(TOP_SRCDIR)include/wx/os2/wx.res
+
+
+ $(os2_lib_res)
+
+
+
+
diff --git a/build/bakefiles/common_samples_outoftree.bkl b/build/bakefiles/common_samples_outoftree.bkl
new file mode 100644
index 0000000000..afdb4db98d
--- /dev/null
+++ b/build/bakefiles/common_samples_outoftree.bkl
@@ -0,0 +1,43 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ $(SRCDIR)
+
+
+
+ gui
+
+
+
+ console
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/samples/db/db.bkl b/samples/db/db.bkl
index bdadb27d17..22d5c339c0 100644
--- a/samples/db/db.bkl
+++ b/samples/db/db.bkl
@@ -3,6 +3,10 @@
+
+ 1
+
+
diff --git a/samples/dialogs/dialogs.bkl b/samples/dialogs/dialogs.bkl
index 684193e7df..d859d80752 100644
--- a/samples/dialogs/dialogs.bkl
+++ b/samples/dialogs/dialogs.bkl
@@ -4,6 +4,9 @@
+
+
+
$(WXTOPDIR)src/generic/colrdlgg.cpp
$(WXTOPDIR)src/generic/dirdlgg.cpp
diff --git a/samples/opengl/cube/cube.bkl b/samples/opengl/cube/cube.bkl
index 342b43bb7a..a391390a71 100644
--- a/samples/opengl/cube/cube.bkl
+++ b/samples/opengl/cube/cube.bkl
@@ -5,6 +5,10 @@
+
+ 1
+
+
cube.cpp
gl
diff --git a/samples/opengl/isosurf/isosurf.bkl b/samples/opengl/isosurf/isosurf.bkl
index 05da183204..3d922da778 100644
--- a/samples/opengl/isosurf/isosurf.bkl
+++ b/samples/opengl/isosurf/isosurf.bkl
@@ -5,6 +5,10 @@
+
+ 1
+
+
isosurf.cpp
gl
diff --git a/samples/opengl/penguin/penguin.bkl b/samples/opengl/penguin/penguin.bkl
index 28b64c2bae..c53872944f 100644
--- a/samples/opengl/penguin/penguin.bkl
+++ b/samples/opengl/penguin/penguin.bkl
@@ -4,6 +4,10 @@
+
+
+ 1
+
diff --git a/samples/render/render.bkl b/samples/render/render.bkl
index 503c147147..d2324e13aa 100644
--- a/samples/render/render.bkl
+++ b/samples/render/render.bkl
@@ -5,6 +5,13 @@
+
+
+
+
render.cpp
core