$(MSW_MAKEFILES_DIR)/makefile.g295: filelist.txt wxwin.pro g295.t
        $(TMAKE) -t g295 wxwin.pro -o $@
 
-$(WXDIR)/Makefile.in: filelist.txt wxwin.pro
-       $(TMAKE) -t unx wxwin.pro -o $@
+$(WXDIR)/src/gtk/files.lst: filelist.txt wxwin.pro
+       $(TMAKE) -t gtk wxwin.pro -o $@
+
+$(WXDIR)/src/motif/files.lst: filelist.txt wxwin.pro
+       $(TMAKE) -t motif wxwin.pro -o $@
+
+$(WXDIR)/src/os2/files.lst: filelist.txt wxwin.pro
+       $(TMAKE) -t os2 wxwin.pro -o $@
 
 echo Generating for Watcom C++...
 E:\Perl\5.00471\bin\MSWin32-x86\perl.exe g:\Unix\tmake\bin\tmake -t wat wxwin.pro -o %WXDIR%\src\msw\makefile.wat
 echo Generating for Unix and Configure...
-E:\Perl\5.00471\bin\MSWin32-x86\perl.exe g:\Unix\tmake\bin\tmake -t unx wxwin.pro -o %WXDIR%\Makefile.in
-
+E:\Perl\5.00471\bin\MSWin32-x86\perl.exe g:\Unix\tmake\bin\tmake -t gtk wxwin.pro -o %WXDIR%\src\gtk\files.lst
+E:\Perl\5.00471\bin\MSWin32-x86\perl.exe g:\Unix\tmake\bin\tmake -t motif wxwin.pro -o %WXDIR%\src\motif\files.lst
+E:\Perl\5.00471\bin\MSWin32-x86\perl.exe g:\Unix\tmake\bin\tmake -t os2 wxwin.pro -o %WXDIR%\src\os2\files.lst
 :end
 
            echo "Generating $mswdir/makefile.wat for Watcom C++..."
            tmake -t wat wxwin.pro -o $mswdir/makefile.wat;;
 
+       gtk.t)
+           echo "Generating $topdir/src/gtk/files.lst for GTK and Configure..."
+           tmake -t gtk wxwin.pro -o $topdir/src/gtk/files.lst;;
+
+       motif.t)
+           echo "Generating $topdir/src/motif/files.lst for Motif and Configure..."
+           tmake -t motif wxwin.pro -o $topdir/src/motif/files.lst;;
+
        unx.t)
-           echo "Generating $topdir/Makefile.in for Unix and Configure..."
-           tmake -t unx wxwin.pro -o $topdir/Makefile.in;;
+           echo "Generating $topdir/src/os2/files.lst for OS/2 PM and Configure..."
+           tmake -t os2 wxwin.pro -o $topdir/src/os2/files.lst;;
     esac
 done