home *** CD-ROM | disk | FTP | other *** search
/ Computer Select (Limited Edition) / Computer Select.iso / dobbs / v16n10 / embedcp.exe / CODE.EXE / BUILD-C0.BAT next >
Encoding:
DOS Batch File  |  1991-05-14  |  1.3 KB  |  48 lines

  1. @echo off
  2. if not "%TASM%"=="" goto skip
  3. set tasm=tasm
  4. :skip
  5.  
  6. if not %3.==. goto noobjdir
  7. set objdir=.
  8. goto objdirset
  9. :noobjdir
  10. set objdir=%3
  11. :objdirset
  12.  
  13. if not %2.==. goto noc0dir
  14. set c0dir=.
  15. goto c0dirset
  16. :noc0dir
  17. set c0dir=%2
  18. :c0dirset
  19.  
  20. :mio
  21. echo Building MIO startups
  22. cd %c0dir%
  23. %TASM% /M /MX /Q /T /D__TINY__    c0, %objdir%\c0t
  24. %TASM% /M /MX /Q /T /D__SMALL__   c0, %objdir%\c0s
  25. %TASM% /M /MX /Q /T /D__COMPACT__ c0, %objdir%\c0c
  26. %TASM% /M /MX /Q /T /D__MEDIUM__  c0, %objdir%\c0m
  27. %TASM% /M /MX /Q /T /D__LARGE__   c0, %objdir%\c0l
  28.  
  29. %TASM% /M /MX /Q /T /D__TINY__    /D_DSSTACK_ c0, %objdir%\c0ft
  30. %TASM% /M /MX /Q /T /D__SMALL__   /D_DSSTACK_ c0, %objdir%\c0fs
  31. %TASM% /M /MX /Q /T /D__COMPACT__ /D_DSSTACK_ c0, %objdir%\c0fc
  32. %TASM% /M /MX /Q /T /D__MEDIUM__  /D_DSSTACK_ c0, %objdir%\c0fm
  33. %TASM% /M /MX /Q /T /D__LARGE__   /D_DSSTACK_ c0, %objdir%\c0fl
  34.  
  35. if not %c0dir%==. cd ..
  36. goto exit
  37.  
  38. :error
  39. echo BUILD-C0.BAT
  40. echo Usage: build-c0 libtype [srcdir [objdir]]
  41. echo  libtype   mio (Mundane I/O processor)
  42. echo  srcdir    source subdirectory (default is ".")
  43. echo  objdir    object subdirectory relative to srcdir (default is ".")
  44. echo Example: build-c0 clib startup ..\lib
  45. echo This batch file builds the C startup module (or modules) for
  46. echo the Mundane I/O processor.  All memory models are built.
  47. :exit
  48.