home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
fingercl.zip
/
make.in
< prev
next >
Wrap
Text File
|
1997-08-29
|
1KB
|
58 lines
@echo off
if "%1"=="" goto usage
if "%1" == "install" goto instal
if "%1" == "clean" goto clean
if "%2"=="" goto usage
if "%2" == "all" goto all
if "%2" == "finger" goto finger
if "%2" == "sf" goto sf
:all
:finger
:comp
@echo on
gcc %3 %4 %5 -I. -c *.c
@echo off
if "%3" == "-g" goto debug
@echo on
gcc -o finger.exe *.o -lsocket -s
@echo off
goto next
:debug
@echo on
gcc %3 -o finger.exe *.o -lsocket
@echo off
:next
if "%1"=="." goto next1
if not exist install.cmd goto a
@echo copy finger.exe %1 >> install.cmd
goto next1
:a
@echo copy finger.exe %1 > install.cmd
:next1
if "%2"=="finger" goto end
goto sf:
:usage
echo Usage: make installdir program [options] [flags]
echo .
echo program: one of [finger sf all]
echo options: (n)one of [-g -O]
echo flags: (n)one or both of [-DINFO_IS_DEFAULT -DERROR_HANDLER]
echo .
echo e.g: make c:\bin all
echo make . sf
echo .
echo .
echo make install will place the new executables in installdir
echo make clean will tidy up.
goto end
:instal
install
goto end
:clean
del *.o
del *.exe
del install.cmd
del sf\sf.h
del make.cmd
goto end