home *** CD-ROM | disk | FTP | other *** search
- echo off
-
- rem check syntax
- if XX%1==XX goto usage
-
- if XX%2==XX goto usage
- if %2==* goto df_tcd_action
- echo ---------- Turbo c directory is -- %2 --
- if not exist %2\*.* goto bad_name
- echo TCDIR=%2> mct.mac
- goto chk_3
-
- :df_tcd_action
- echo .
- echo ++++++++++ You have to specify the Turbo C directory path
- goto usage
-
- :chk_3
- if XX%3==XX goto df_rtd_msg
- if %3==* goto df_rtd_msg
- echo ---------- r-tree directory is -- %3 --
- if not exist %3\*.* goto bad_name
- echo RTREE=%3>> mct.mac
- goto chk_4
-
- :df_rtd_msg
- echo .
- echo Default r-tree directory in the 'make' files will be used
-
- :chk_4
- if XX%4==XX goto tc15msg
- echo .
- echo ---------------------------------------------------------
- echo This installation procedure assumes Turbo C 1.0 is in use
- echo ---------------------------------------------------------
- echo .
- echo TC10=x>> mct.mac
- goto install
-
- :tc15msg
- echo .
- echo ---------------------------------------------------------
- echo This installation procedure assumes Turbo C 1.5 or later
- echo ---------------------------------------------------------
- echo .
- goto install
-
- :bad_name
- echo ++++++++++ And I can't find it!!!
- echo .
- goto usage
-
- :install
- pause ===== Now go to make the libraries =====
-
- if %1==S goto small
- if %1==s goto small
- if %1==C goto compact
- if %1==c goto compact
- if %1==M goto medium
- if %1==m goto medium
- if %1==L goto large
- if %1==l goto large
-
- echo ************
- echo SYNTAX ERROR
- echo ************
-
- :usage
- echo . Program to build c-tree library, utilities, and sample programs
- echo . +---------+------+-------+--------+-----+
- echo " | | S or | Turbo | | | "
- echo " | MNETAPP | C or | C | r-tree | [x] | "
- echo " | | M or | path- | path | | "
- echo " | | L | name | | | "
- echo . +---------+------+-------+--------+-----+
- echo . examples:
- echo . MNETAPP L e:\turboc e:\rt11d2 x
- echo . MNETAPP L e:\tc
- echo .
- echo . where S = small, C = compact, M = medium, L = large memory model
- echo . Turbo C path - if Turbo C is not in the same drive, add drive name
- echo . r-tree path - r-tree main directory
- echo . x - optional. If x is NOT entered, Turbo C v1.5 or later
- echo . will be used, otherwise v1.0 setting will be selected.
- echo . * - === signifies default value will be used ===
- echo .
- echo .......................................................................
- echo The libary and object files are created in directory nAPP.net
- echo (eg. LAPP.net for large model)
- echo .......................................................................
- goto done
-
- :small
- if not exist SAPP.net\*.* md SAPP.net
- %2\make -DAM=small -DMM=s -fmnetapp.mak
- goto done
-
- :compact
- if not exist CAPP.net\*.* md CAPP.net
- %2\make -DAM=compact -DMM=c -fmnetapp.mak
- goto done
-
- :medium
- if not exist MAPP.net\*.* md MAPP.net
- %2\make -DAM=medium -DMM=m -fmnetapp.mak
- goto done
-
- :large
- if not exist LAPP.net\*.* md LAPP.net
- %2\make -DAM=large -DMM=l -fmnetapp.mak
- goto done
-
- :done
- REM if exist mct.mac del mct.mac
-