home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / OTHERUTI / TCPP10-8.ZIP / CLASSSRC.ZIP / BUILD.BAT < prev    next >
DOS Batch File  |  1990-09-26  |  893b  |  39 lines

  1. echo off
  2. if %1.==.  goto usage
  3. if %1.==all.    build s c m l h
  4. if %1.==ALL.    build s c m l h
  5. :loop
  6. if %1.==s.      goto ok
  7. if %1.==S.      goto ok
  8. if %1.==c.      goto ok
  9. if %1.==C.      goto ok
  10. if %1.==m.      goto ok
  11. if %1.==M.      goto ok
  12. if %1.==l.      goto ok
  13. if %1.==L.      goto ok
  14. if %1.==h.      goto ok
  15. if %1.==H.      goto ok
  16. if %1.==.       goto done
  17. goto error
  18. :ok
  19.   tcc -P -c -m%1 -n..\lib -I..\include *.cpp
  20.   cd ..\lib
  21.   if exist tclass%1.lib del tclass%1.lib 
  22.   tlib tclass%1.lib @..\source\classlib.rsp
  23.   del *.obj
  24.   cd ..\source
  25.   shift
  26. goto loop
  27. :error
  28. echo Error: bad argument %1
  29. goto done
  30. :usage
  31. echo Usage:  BUILD model or all 
  32. echo         where model is any combination of [s c m l h]
  33. echo         Example:  BUILD s l   builds small and large models
  34. echo                   BUILD all   builds all of the memory models
  35. :done
  36.  
  37.  
  38.  
  39.