attempt at getting the build tool to use the new makefiles
authorDavid Anderson <dvander@alliedmods.net>
Fri Feb 22 14:20:02 2008 +0000 (2008-02-22)
changeset 187964edd58691ab
parent 1878 e5c26be56941
child 1880 202fa67fc0a9
attempt at getting the build tool to use the new makefiles
tools/builder/LinuxBuilder.cs
     1.1 --- a/tools/builder/LinuxBuilder.cs	Fri Feb 22 14:16:53 2008 +0000
     1.2 +++ b/tools/builder/LinuxBuilder.cs	Fri Feb 22 14:20:02 2008 +0000
     1.3 @@ -49,25 +49,25 @@
     1.4  				File.Delete(binpath);
     1.5  			}
     1.6  
     1.7 -			string makefile_name = "Makefile";
     1.8 +			string makefile_args = null;
     1.9  
    1.10  			if (lib.build_mode == BuildMode.BuildMode_Episode1)
    1.11  			{
    1.12 -				makefile_name = "Makefile.ep1";
    1.13 +				makefile_args = null;
    1.14  			}
    1.15  			else if (lib.build_mode == BuildMode.BuildMode_Episode2)
    1.16  			{
    1.17 -				makefile_name = "Makefile.ep2";
    1.18 +				makefile_args = "ENGINE=\"orangebox\"";
    1.19  			}
    1.20  			else if (lib.build_mode == BuildMode.BuildMode_OldMetamod)
    1.21  			{
    1.22 -				makefile_name = "Makefile.orig";
    1.23 +				makefile_args = "ENGINE=\"original\"";
    1.24  			}
    1.25  
    1.26  			/* Clean the project first */
    1.27  			info.WorkingDirectory = path;
    1.28  			info.FileName = cfg.builder_path;
    1.29 -			info.Arguments = "-f " + makefile_name + " clean";
    1.30 +			info.Arguments = makefile_args + " clean";
    1.31  			info.UseShellExecute = false;
    1.32  
    1.33  			Process p = Process.Start(info);
    1.34 @@ -77,7 +77,7 @@
    1.35  			/* Now build it */
    1.36  			info.WorkingDirectory = path;
    1.37  			info.FileName = cfg.builder_path;
    1.38 -			info.Arguments = "-f " + makefile_name;
    1.39 +			info.Arguments = makefile_args + " clean";
    1.40  			info.UseShellExecute = false;
    1.41  
    1.42  			if (cfg.build_options != null)