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 >
Wrap
OS/2 REXX Batch file
|
1997-07-07
|
1KB
|
45 lines
rem /* OS/2 32 bit - gcc 2.7.2 (emx 0.9b - A.OUT)
rem * a very simple make driver
rem * Copyright (C) 1996, 1997 Markus F.X.J. Oberhumer
rem */
@if "%LZO_ECHO%"=="n" echo off
set EXTRA_CFLAGS=
REM set EXTRA_CFLAGS=-fbounds-checking
set CC=gcc
set CFLAGS=@b\gcc.opt @b\os2\emx_aout.opt @b\gcc_lzo.opt %EXTRA_CFLAGS%
set ASFLAGS=-x assembler-with-cpp -Wall
set MYLIB=lzo.a
echo Compiling, please be patient...
%CC% %CFLAGS% -c src\*.c
if errorlevel 1 goto error
%CC% %ASFLAGS% -c src\i386\src\*.s
if errorlevel 1 goto error
if exist %MYLIB% del %MYLIB%
ar rcs %MYLIB% @b\os2\emx_aout.rsp
if errorlevel 1 goto error
set CFLAGS=@b\gcc.opt @b\os2\emx_aout.opt %EXTRA_CFLAGS%
%CC% -s %CFLAGS% lzo_test.c %MYLIB% -o lzo_test.exe
if errorlevel 1 goto error
%CC% -s %CFLAGS% examples\simple.c %MYLIB% -o simple.exe
if errorlevel 1 goto error
%CC% -s %CFLAGS% -Isrc tests\align.c %MYLIB% -o align.exe
if errorlevel 1 goto error
%CC% -s %CFLAGS% -Isrc tests\chksum.c %MYLIB% -o chksum.exe
if errorlevel 1 goto error
%CC% -s %CFLAGS% minilzo\*.c -o testmini.exe
if errorlevel 1 goto error
echo Done.
goto end
:error
echo error!
:end