%---------- HP 9000/700 ----------
if strcmpi(computer,'HP700'),
   mex dd1fall.c ../kalmlbhp.o
   mex dd2fall.c ../kalmlbhp.o
   mex dd1agv.c ../kalmlbhp.o
   mex dd1magv.c ../kalmlbhp.o
   mex dd2agv.c ../kalmlbhp.o
   mex dd2magv.c ../kalmlbhp.o

%---------- Linux Intel ----------
elseif strcmpi(computer,'LNX86'),
   mex dd1fall.c ../kalmlblx.o
   mex dd2fall.c ../kalmlblx.o
   mex dd1agv.c ../kalmlblx.o
   mex dd1magv.c ../kalmlblx.o
   mex dd2agv.c ../kalmlblx.o
   mex dd2magv.c ../kalmlblx.o


%---------- SUN SPARC ----------
%elseif strcmpi(computer,'SUN4'),
%   mex dd1fall.c ../kalmlbs4.o
%   mex dd2fall.c ../kalmlbs4.o
%   mex dd1agv.c ../kalmlbs4.o
%   mex dd1magv.c ../kalmlbs4.o
%   mex dd2agv.c ../kalmlbs4.o
%   mex dd2magv.c ../kalmlbs4.o


%---------- MS-Windows ----------
elseif strcmpi(computer,'PCWIN'),
   comp=input('Specify C compiler (1,2,3): \n1: Watcom 11.0\n2: Borland 5.2\n3: Microsoft Visual Studio 6.0\n');
   switch comp
      case 1
        mex dd1fall.c ../kalmlbwc.obj
        mex dd2fall.c ../kalmlbwc.obj
        mex dd1agv.c ../kalmlbwc.obj
        mex dd1magv.c ../kalmlbwc.obj
        mex dd2agv.c ../kalmlbwc.obj
        mex dd2magv.c ../kalmlbwc.obj
     case 2
        mex dd1fall.c ../kalmlbbc.obj
        mex dd2fall.c ../kalmlbbc.obj
        mex dd1agv.c ../kalmlbbc.obj
        mex dd1magv.c ../kalmlbbc.obj
        mex dd2agv.c ../kalmlbbc.obj
        mex dd2magv.c ../kalmlbbc.obj
     case 3
        mex dd1fall.c ../kalmlbms.obj
        mex dd2fall.c ../kalmlbms.obj
        mex dd1agv.c ../kalmlbms.obj
        mex dd1magv.c ../kalmlbms.obj
        mex dd2agv.c ../kalmlbms.obj
        mex dd2magv.c ../kalmlbms.obj
     otherwise
            disp('Unknown compiler. Mex not performed')
     end
end
