home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
lzo100.zip
/
lzo-1.00
/
b
/
dos32
/
emx.bat
< prev
next >
Wrap
DOS Batch File
|
1997-07-02
|
1KB
|
45 lines
rem /* DOS 32 bit - gcc 2.7.2 (emx 0.9b)
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\dos32\emx.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\dos32\emx.rsp
if errorlevel 1 goto error
set CFLAGS=@b\gcc.opt @b\dos32\emx.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