home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / lzo100.zip / lzo-1.00 / b / dos32 / wc105.bat < prev    next >
DOS Batch File  |  1997-07-08  |  1KB  |  45 lines

  1. rem /* DOS 32 bit - Watcom C 10.5
  2. rem  * a very simple make driver
  3. rem  * Copyright (C) 1996, 1997 Markus F.X.J. Oberhumer
  4. rem  */
  5.  
  6. @if "%LZO_ECHO%"=="n" echo off
  7. REM set WCGMEMORY=4096
  8. REM set WCGMEMORY=?
  9.  
  10. set _CC=wcl386 -zq -mf -5r -bt#dos4g
  11. set CFLAGS=-Iinclude -wx -oneatx
  12. set MYLIB=lzo.lib
  13.  
  14. echo Compiling, please be patient...
  15. set CC=%_CC%
  16. REM set CC=%CC% -cc++
  17. %CC% %CFLAGS% -zc -c src\*.c
  18. if errorlevel 1 goto error
  19. %CC% -c src\i386\d_asm2\*.asm
  20. if errorlevel 1 goto error
  21. if exist %MYLIB% del %MYLIB%
  22. wlib -b %MYLIB% @b\dos32\wc105.rsp
  23. if errorlevel 1 goto error
  24.  
  25. set CC=%_CC% -zc -l#dos4g
  26. %CC% %CFLAGS% lzo_test.c %MYLIB%
  27. if errorlevel 1 goto error
  28.  
  29. %CC% %CFLAGS% examples\simple.c %MYLIB%
  30. if errorlevel 1 goto error
  31.  
  32. %CC% %CFLAGS% -Isrc tests\align.c %MYLIB%
  33. if errorlevel 1 goto error
  34. %CC% %CFLAGS% -Isrc tests\chksum.c %MYLIB%
  35. if errorlevel 1 goto error
  36.  
  37. %CC% %CFLAGS% -zc -fe#testmini.exe minilzo\*.c
  38. if errorlevel 1 goto error
  39.  
  40. echo Done.
  41. goto end
  42. :error
  43. echo error!
  44. :end
  45.