/* setenv.cmd * * This script defines and setup the build environment for building the MultiMac drivers * * 24-Mar-2012: DAZ created. * * You'll have to edit this to set the correct paths. * if you already have these set in your environment, this command file will use what you already * have setup. */ VENDOR=EnvVar_Get_If('VENDOR','Unknown'); /* Your name here. */ WATCOM=EnvVar_Get_If('WATCOM','E:\Watcom'); /* the base of the Watcom installation on your system. */ TOOLKIT=EnvVar_Get_If('TOOLKIT','e:\os2tk45'); /* the base of the Toolkit (4.5) on you system. */ DDK=EnvVar_Get_If('DDK','e:\MiniDDK'); /* the base of the DDK */ /* You ONLY need the kits necessary for the driver you are building. * You DO NOT need all of these kits unless you are building ALL of the drivers. */ DRV32KIT=EnvVar_Get_If('DRV16KIT','f:\src\common'); DRV32KIT=EnvVar_Get_If('DRV32KIT','f:\src\common'); LCL32KIT=EnvVar_Get_If('LCL32KIT','f:\src\os2\Lcl32'); BCL32KIT=EnvVar_Get_If('BCL32KIT','f:\src\os2\Bcl32'); /* you should not need to change anything below this line */ ROOT=DIRECTORY(); ENV='OS2ENVIRONMENT'; rc=VALUE('ROOT', ROOT, ENV); rc=VALUE('VENDOR', VENDOR, ENV); rc=VALUE('BLD_DATE', date('S'), ENV); rc=VALUE('WATCOM', WATCOM, ENV); rc=VALUE('DDK', DDK, ENV); rc=VALUE('TOOLKIT', TOOLKIT, ENV); rc=VALUE('DRV16KIT', DRV32KIT, ENV); rc=VALUE('DRV32KIT', DRV32KIT, ENV); rc=VALUE('LCL32KIT', LCL32KIT, ENV); rc=VALUE('BCL32KIT', BCL32KIT, ENV); exit; /* * Returns value of sEnvVar from environment if set or returns default value. */ EnvVar_Get_If: procedure parse arg sEnvVar, sDefault; s = value(sEnvVar,, 'OS2ENVIRONMENT') if s == '' then s = sDefault; return s;