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

  1. rem /* Windows 16 bit (DLL) - 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=wcl -zq -ml -5 -bt#windows
  9. set CFLAGS=-Iinclude -wx -oneatx
  10. set MYDLL=lzo16.dll
  11. set MYLIB=lzo16.lib
  12.  
  13. echo Compiling, please be patient...
  14. set CC=%_CC%
  15. %CC% %CFLAGS% -zc -zu -bd -D__LZO_EXPORT2=__export -c src\*.c
  16. if errorlevel 1 goto error
  17. if exist %MYDLL% del %MYDLL%
  18. if exist %MYLIB% del %MYLIB%
  19. wlink name %MYDLL% @b\win16\wc105dll.def @b\win16\wc105dll.rsp
  20. if errorlevel 1 goto error
  21. wlib -b %MYLIB% +%MYDLL%
  22. if errorlevel 1 goto error
  23.  
  24. set CC=%_CC% -zc -l#windows
  25. %CC% %CFLAGS% lzo_test.c %MYLIB%
  26. if errorlevel 1 goto error
  27.  
  28. %CC% %CFLAGS% examples\simple.c %MYLIB%
  29. if errorlevel 1 goto error
  30.  
  31. %CC% %CFLAGS% -Isrc tests\align.c %MYLIB%
  32. if errorlevel 1 goto error
  33. %CC% %CFLAGS% -Isrc tests\chksum.c %MYLIB%
  34. if errorlevel 1 goto error
  35.  
  36. %CC% %CFLAGS% -fe#testmini.exe minilzo\*.c
  37. if errorlevel 1 goto error
  38.  
  39. echo Done.
  40. goto end
  41. :error
  42. echo error!
  43. :end
  44.