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

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