"Fossies" - the Fresh Open Source Software Archive

Member "mapm_4.9.5a/WINDOWS_DOS/mkallwat.bat" (21 Feb 2010, 1112 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 Watcom C 11.x compiler (flat mode)
    5 rem This should now work with Open Watcom 1.0
    6 rem =============================================================
    7 rem 
    8 rem (1) Prepare for compile
    9       del map*.obj
   10       del mapm.lib
   11 rem 
   12 rem (2) Compiles each map*.c and creates map*.obj:
   13 rem  
   14       for %%1 in (map*.c) do wcl386 -c -ox %%1
   15 rem 
   16 rem (3) Creates MAPM.LIB:
   17 rem
   18       for %%1 in (map*.obj) do wlib mapm.lib +%%1
   19 rem
   20       del map*.obj
   21 rem
   22 rem (4) Compiles and links validate.c, calc.c, primenum.c, cpp_demo.cpp:
   23 rem
   24 rem     Depending on your setup, you may not need the dos4g switch
   25 rem     If you have link errors, try deleting /l=dos4g and link again.
   26 rem 
   27       wcl386 -ox /l=dos4g validate.c mapm.lib
   28       wcl386 -ox /l=dos4g calc.c mapm.lib
   29       wcl386 -ox /l=dos4g primenum.c mapm.lib
   30       wcl386 -ox /l=dos4g cpp_demo.cpp mapm.lib
   31 rem
   32 rem (5) Final Cleaning
   33 rem 
   34       del *.obj
   35       del *.bak
   36 rem
   37 rem -------
   38 rem Andrew V. Stromnov, stromnov@mailru.com (using mkalltcc.bat as a template)
   39 rem