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

  1. rem /* DOS 32 bit - gcc 2.6.3 (djgpp v1)
  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 EXTRA_CFLAGS=
  9.  
  10. set CC=gcc
  11. set CFLAGS=@b\gcc.opt @b\dos32\dj1.opt @b\gcc_lzo.opt %EXTRA_CFLAGS%
  12. set ASFLAGS=-x assembler-with-cpp -Wall
  13. set MYLIB=liblzo.a
  14.  
  15. echo Compiling, please be patient...
  16. %CC% %CFLAGS% -Isrc -c src\*.c
  17. if errorlevel 1 goto error
  18. %CC% %ASFLAGS% -Isrc/i386/src -c src\i386\src\*.s
  19. if errorlevel 1 goto error
  20. if exist %MYLIB% del %MYLIB%
  21. ar rcs %MYLIB% @b\dos32\dj1.rsp
  22. if errorlevel 1 goto error
  23.  
  24. set CFLAGS=@b\gcc.opt @b\dos32\dj1.opt %EXTRA_CFLAGS%
  25. %CC% -s %CFLAGS% lzo_test.c %MYLIB% -o lzo_test.out
  26. if errorlevel 1 goto error
  27. coff2exe lzo_test.out
  28.  
  29. %CC% -s %CFLAGS% examples\simple.c %MYLIB% -o simple.out
  30. if errorlevel 1 goto error
  31. coff2exe simple.out
  32.  
  33. %CC% -s %CFLAGS% -Isrc tests\align.c %MYLIB% -o align.out
  34. if errorlevel 1 goto error
  35. coff2exe align.out
  36. %CC% -s %CFLAGS% -Isrc tests\chksum.c %MYLIB% -o chksum.out
  37. if errorlevel 1 goto error
  38. coff2exe chksum.out
  39.  
  40. set CFLAGS=@b\gcc.opt @b\dos32\dj1.opt @b\gcc_lzo.opt %EXTRA_CFLAGS%
  41. %CC% -s %CFLAGS% -Iminilzo minilzo\*.c -o testmini.out
  42. if errorlevel 1 goto error
  43. coff2exe testmini.out
  44.  
  45. echo Done.
  46. goto end
  47. :error
  48. echo error!
  49. :end
  50.