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

  1. rem /* Windows NT (LIB) - Cygnus GNU-Win32 Development Kit (gcc 2.7.2)
  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=gcc
  9. set CFLAGS=-I../include -I./include -O2 -Wall
  10. set MYLIB=lzo.a
  11.  
  12. echo Compiling, please be patient...
  13. set CC=%_CC%
  14. cd src
  15. del *.o
  16. %CC% %CFLAGS% -c *.c
  17. if errorlevel 1 goto error
  18. if exist %MYLIB% del %MYLIB%
  19. ar.exe rcs %MYLIB% *.o
  20. if errorlevel 1 goto error
  21. copy %MYLIB% ..
  22. cd ..
  23.  
  24. set CC=%_CC% -D__LZO_NO_ASM
  25. %CC% %CFLAGS% -o lzo_test.exe lzo_test.c %MYLIB%
  26. if errorlevel 1 goto error
  27.  
  28. %CC% %CFLAGS% -o simple.exe examples\simple.c %MYLIB%
  29. if errorlevel 1 goto error
  30.  
  31. %CC% %CFLAGS% -Isrc -o align.exe tests\align.c %MYLIB%
  32. if errorlevel 1 goto error
  33. %CC% %CFLAGS% -Isrc -o chksum.exe tests\chksum.c %MYLIB%
  34. if errorlevel 1 goto error
  35.  
  36. %CC% %CFLAGS% -o testmini.exe minilzo\testmini.c minilzo\minilzo.c
  37. if errorlevel 1 goto error
  38.  
  39. echo Done.
  40. goto end
  41. :error
  42. echo error!
  43. :end
  44.