home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / lzo100.zip / lzo-1.00 / b / os2 / emx_aout.cmd < prev    next >
OS/2 REXX Batch file  |  1997-07-07  |  1KB  |  45 lines

  1. rem /* OS/2 32 bit - gcc 2.7.2 (emx 0.9b - A.OUT)
  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. REM set EXTRA_CFLAGS=-fbounds-checking
  10.  
  11. set CC=gcc
  12. set CFLAGS=@b\gcc.opt @b\os2\emx_aout.opt @b\gcc_lzo.opt %EXTRA_CFLAGS%
  13. set ASFLAGS=-x assembler-with-cpp -Wall
  14. set MYLIB=lzo.a
  15.  
  16. echo Compiling, please be patient...
  17. %CC% %CFLAGS% -c src\*.c
  18. if errorlevel 1 goto error
  19. %CC% %ASFLAGS% -c src\i386\src\*.s
  20. if errorlevel 1 goto error
  21. if exist %MYLIB% del %MYLIB%
  22. ar rcs %MYLIB% @b\os2\emx_aout.rsp
  23. if errorlevel 1 goto error
  24.  
  25. set CFLAGS=@b\gcc.opt @b\os2\emx_aout.opt %EXTRA_CFLAGS%
  26. %CC% -s %CFLAGS% lzo_test.c %MYLIB% -o lzo_test.exe
  27. if errorlevel 1 goto error
  28.  
  29. %CC% -s %CFLAGS% examples\simple.c %MYLIB% -o simple.exe
  30. if errorlevel 1 goto error
  31.  
  32. %CC% -s %CFLAGS% -Isrc tests\align.c %MYLIB% -o align.exe
  33. if errorlevel 1 goto error
  34. %CC% -s %CFLAGS% -Isrc tests\chksum.c %MYLIB% -o chksum.exe
  35. if errorlevel 1 goto error
  36.  
  37. %CC% -s %CFLAGS% minilzo\*.c -o testmini.exe
  38. if errorlevel 1 goto error
  39.  
  40. echo Done.
  41. goto end
  42. :error
  43. echo error!
  44. :end
  45.