home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
lzo100.zip
/
lzo-1.00
/
b
/
win32
/
mc100dll.bat
< prev
next >
Wrap
DOS Batch File
|
1997-07-09
|
1KB
|
44 lines
rem /* Windows NT (DLL) - Microsoft 32-bit C/C++ Compiler 10.0
rem * a very simple make driver
rem * Copyright (C) 1996, 1997 Markus F.X.J. Oberhumer
rem */
@if "%LZO_ECHO%"=="n" echo off
set _CC=cl -nologo -ML
set CFLAGS=-Iinclude -Ox -Gf -Gy -W3
set MYLIB=lzo.lib
set MYDLL=lzo.dll
echo Compiling, please be patient...
set CC=%_CC%
%CC% %CFLAGS% "-D__LZO_EXTERN1=__declspec(dllexport)" -c src\*.c
if errorlevel 1 goto error
if exist %MYDLL% del %MYDLL%
if exist %MYLIB% del %MYLIB%
link.exe @b\win32\mc100dll.def -implib:%MYLIB% -out:%MYDLL% @b\win32\mc100dll.rsp
if errorlevel 1 goto error
implib -nowep %MYLIB% %MYDLL%
if errorlevel 1 goto error
set CC=%_CC% -D__LZO_NO_ASM
%CC% %CFLAGS% "-D__LZO_EXTERN1=__declspec(dllimport)" lzo_test.c %MYLIB%
if errorlevel 1 goto error
%CC% %CFLAGS% "-D__LZO_EXTERN1=__declspec(dllimport)" examples\simple.c %MYLIB%
if errorlevel 1 goto error
%CC% %CFLAGS% "-D__LZO_EXTERN1=__declspec(dllimport)" -Isrc tests\align.c %MYLIB%
if errorlevel 1 goto error
%CC% %CFLAGS% "-D__LZO_EXTERN1=__declspec(dllimport)" -Isrc tests\chksum.c %MYLIB%
if errorlevel 1 goto error
%CC% %CFLAGS% -Fetestmini.exe minilzo\*.c
if errorlevel 1 goto error
echo Done.
goto end
:error
echo error!
:end