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

  1. rem /* Windows NT (LIB) - 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.  
  8. set _CC=wcl386 -zq -mf -5r -bt#nt
  9. set CFLAGS=-Iinclude -wx -oneatx
  10. set MYLIB=lzo.lib
  11.  
  12. echo Compiling, please be patient...
  13. set CC=%_CC%
  14. %CC% %CFLAGS% -zc -c src\*.c
  15. if errorlevel 1 goto error
  16. %CC% -c src\i386\d_asm2\*.asm
  17. if errorlevel 1 goto error
  18. if exist %MYLIB% del %MYLIB%
  19. wlib -b %MYLIB% @b\win32\wc105.rsp
  20. if errorlevel 1 goto error
  21.  
  22. set CC=%_CC% -zc -l#nt
  23. %CC% %CFLAGS% lzo_test.c %MYLIB%
  24. if errorlevel 1 goto error
  25.  
  26. %CC% %CFLAGS% examples\simple.c %MYLIB%
  27. if errorlevel 1 goto error
  28.  
  29. %CC% %CFLAGS% -Isrc tests\align.c %MYLIB%
  30. if errorlevel 1 goto error
  31. %CC% %CFLAGS% -Isrc tests\chksum.c %MYLIB%
  32. if errorlevel 1 goto error
  33.  
  34. %CC% %CFLAGS% -fe#testmini.exe minilzo\*.c
  35. if errorlevel 1 goto error
  36.  
  37. echo Done.
  38. goto end
  39. :error
  40. echo error!
  41. :end
  42.