1echo off 2 3cls 4rem *** This is the make command file that is used under OS/2 to make the 5rem *** first version of dmake. It isn't pretty but it does work, assuming 6rem *** the compilers have been correctly setup. 7rem 8 9if %0%1 == %0 goto error 10 11if %1 == os2-gcc goto mkgcc 12if %1 == os2-ibm goto mkibm 13if %1 == os2-ibm3 goto mkibm3 14if %1 == winnt-bcc40 goto mkwntb40 15if %1 == winnt-bcc45 goto mkwntb45 16if %1 == winnt-bcc50 goto mkwntb50 17if %1 == winnt-vpp40 goto mkwntv40 18 19 20rem label the possible DOS variations for dmake here. 21:error 22echo OS/2 INDEX: You must specify one of: 23echo ------------------ 24echo os2-gcc - gcc&klibc compile (this is the only supported configuration). 25echo os2-ibm - IBM OS/2 ICC compile (deprecated). 26echo os2-ibm3 - IBM OS/2 ICC3 compile (deprecated). 27echo winnt-bcc40 - Windows-NT Borland C++ 4.0 Compile 28echo winnt-bcc45 - Windows-NT Borland C++ 4.5 Compile 29echo winnt-bcc50 - Windows-NT Borland C++ 5.0 Compile 30echo winnt-vpp40 - Windows-NT Microsoft VC++ 4.0 Compile 31goto end 32 33rem This is the script that builds OS/2 dmake using gcc & klibc 34 35:mkgcc 36set CONFIG_SHELL=sh 37set CFLAGS=-g -O3 -march=pentium4 38set CXXFLAGS=-g -O3 -march=pentium4 39set LDFLAGS=-s -Zomf -Zhigh-mem -Zargs-wild -Zargs-resp 40set LN_CP_F=cp.exe 41set RANLIB=echo 42set AR=emxomfar -p128 43sh -c "./configure --enable-spawn" 44make.exe 45 46goto end 47 48rem This is the script that bilds OS/2 dmake using IBM ICC Compiler 49:mkibm 50os2\ibm\icc\mk.cmd 51goto end 52 53:mkibm3 54os2\ibm\icc3\mk.cmd 55goto end 56 57rem This is the script that makes 32-bit dmake using Borland C++ 4.0. 58:mkwntb40 59cls 60echo WARNING: 61echo The default response files: 62echo winnt\borland\bcc40\obj.rsp 63echo winnt\borland\bcc40\lib.rsp 64echo contain absolute paths to Borland C++ runtime startup objects, and to 65echo the standard libraries. You should check that these files contain 66echo the correct path names for your installation of Borland C++ before 67echo proceeding further. Also check that the mkdir command at the start 68echo of the response file and the copy command at the end of the response 69echo file will work on your system. 70echo -- 71echo Continue if ok, or abort and edit the response files. 72pause 73winnt\borland\bcc40\mk.bat 74goto end 75 76rem This is the script that makes 32-bit dmake using Borland C++ 4.5. 77:mkwntb45 78cls 79echo WARNING: 80echo The default response files: 81echo winnt\borland\bcc45\obj.rsp 82echo winnt\borland\bcc45\lib.rsp 83echo contain absolute paths to Borland C++ runtime startup objects, and to 84echo the standard libraries. You should check that these files contain 85echo the correct path names for your installation of Borland C++ before 86echo proceeding further. Also check that the mkdir command at the start 87echo of the response file and the copy command at the end of the response 88echo file will work on your system. 89echo -- 90echo Continue if ok, or abort and edit the response files. 91pause 92winnt\borland\bcc45\mk.bat 93goto end 94 95rem All done! 96rem This is the script that makes 32-bit dmake using Borland C++ 5.0. 97:mkwntb50 98cls 99echo WARNING: 100echo The default response files: 101echo winnt\borland\bcc50\obj.rsp 102echo winnt\borland\bcc50\lib.rsp 103echo contain absolute paths to Borland C++ runtime startup objects, and to 104echo the standard libraries. You should check that these files contain 105echo the correct path names for your installation of Borland C++ before 106echo proceeding further. Also check that the mkdir command at the start 107echo of the response file and the copy command at the end of the response 108echo file will work on your system. 109echo -- 110echo Continue if ok, or abort and edit the response files. 111pause 112winnt\borland\bcc50\mk.bat 113goto end 114 115:mkwntv40 116winnt\microsft\vpp40\mk.bat 117goto end 118 119rem All done! 120:end 121