home *** CD-ROM | disk | FTP | other *** search
- echo off
-
- rem check syntax
- if XX%1==XX goto usage
- if %1==S goto small
- if %1==s goto small
- if %1==D goto compact
- if %1==c goto compact
- if %1==P goto medium
- if %1==p goto medium
- if %1==L goto large
- if %1==l goto large
- echo ************
- echo SYNTAX ERROR
- echo ************
- :usage
- echo Program to build applications and application library for c-tree Netbios Server
- echo *****:
- echo usage: MAKEAPP {S or D or P or L}
- echo *****:
- echo where S=small, D=large data, P=large program, L=large
- echo The libary and object files are created in
- echo directory nAPP (eg. SAPP for small model).
- echo The lib file is named CTALIB.LIB
- goto done
- :small
- if not exist SAPP\*.* md SAPP
- make D=SAPP CM=-ms LM=\LC\S makeapp.mak
- goto done
- :compact
- if not exist DAPP\*.* md DAPP
- make D=DAPP CM=-mds LM=\LC\D makeapp.mak
- goto done
- :medium
- if not exist PAPP\*.* md PAPP
- make D=PAPP CM=-mp LM=\LC\P makeapp.mak
- goto done
- :large
- if not exist LAPP\*.* md LAPP
- make D=LAPP CM=-mls LM=\LC\L makeapp.mak
- goto done
- :done
-