"Fossies" - the Fresh Open Source Software Archive

Member "mapm_4.9.5a/WINDOWS_DOS/mkallm51.bat" (21 Feb 2010, 1337 Bytes) of package /linux/misc/old/mapm-4.9.5a.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) MS DOS Batch source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 @echo off
    2 rem
    3 rem ============================================================
    4 rem   Creating MAPM.LIB with Micro$oft C 5.1 (16 bit .EXE)
    5 rem ============================================================
    6 rem
    7       del *.obj
    8       del mapm.lib
    9 rem
   10 rem (1) Compiles each map*.c and creates map*.obj:
   11 rem
   12       for %%1 in (map*.c) do cl /c /AL /NT MAPM_TEXT /Gs /Zl %%1
   13 rem
   14 rem
   15       del mapmfmul.obj
   16       del mapmutil.obj
   17 rem
   18 rem
   19 rem   if you are using Microsoft C 6.0 (16 BIT), delete
   20 rem   the /Oi options below if you have an internal 
   21 rem   compiler error.
   22 rem
   23       cl /c /AL /NT MAPM_TEXT /Oi /Gs /Zl mapmfmul.c
   24       cl /c /AL /NT MAPM_TEXT /Oi /Gs /Zl mapmutil.c
   25 rem
   26 rem (2) Creates MAPM.LIB:
   27 rem
   28       for %%1 in (map*.obj) do lib mapm.lib +%%1;
   29 rem
   30       del map*.obj
   31       del mapm.bak
   32 rem
   33 rem (3) Compiles and links validate.c, calc.c and primenum.c:
   34 rem
   35 rem
   36       cl /c /AL /Gs calc.c
   37       link /ST:4096 /NOI /CPARM:1 /MAP /FARCA /PACKCO calc,,,mapm.lib;
   38       del calc.obj
   39 rem
   40 rem
   41       cl /c /AL /Gs validate.c
   42       link /ST:4096 /NOI /CPARM:1 /MAP /FARCA /PACKCO validate,,,mapm.lib;
   43       del validate.obj
   44 rem
   45 rem
   46       cl /c /AL /Gs primenum.c
   47       link /ST:4096 /NOI /CPARM:1 /MAP /FARCA /PACKCO primenum,,,mapm.lib;
   48       del primenum.obj
   49 rem
   50 rem
   51 rem -------
   52 rem      by M. Ring using 'mkalltcc.bat' as template
   53 rem